Skip to content

Commit

Permalink
new cwls (#3538)
Browse files Browse the repository at this point in the history
* Update nicematrix.cwl

* Update exesheet.cwl

* Update class-jlreq.cwl

* Update gastex.cwl

* Update class-dtk.cwl

* Update dtk-url.cwl

* Update optex.cwl

* Update simpleicons.cwl

* Update tabularray.cwl

* Update pgf-PeriodicTable.cwl

* Update markdown.cwl

* Update updatemarks.cwl

* Update class-randexam.cwl

* Update polyglossia.cwl

* Update piton.cwl

* Update class-homework.cwl

* Update robust-externalize.cwl

* Update frenchmath.cwl

* Update class-langscibook.cwl

* Update class-langscibook.cwl

* Update langsci-affiliations.cwl

* Update mismath.cwl

* Update simpleicons.cwl

* Update se2packages.cwl

* Update class-se2thesis.cwl

* Update tex4ebook.cwl

* Update class-dtk.cwl

* Update newtx.cwl

* Update newtxmath.cwl

* Update completion.qrc

* Add files via upload
  • Loading branch information
mbertucci47 authored Feb 27, 2024
1 parent 9aa0a5b commit 9e80616
Show file tree
Hide file tree
Showing 29 changed files with 397 additions and 72 deletions.
2 changes: 2 additions & 0 deletions completion.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,7 @@
<file>completion/ClearSans.cwl</file>
<file>completion/clefval.cwl</file>
<file>completion/cleveref.cwl</file>
<file>completion/cleveref-forward.cwl</file>
<file>completion/cleveref-usedon.cwl</file>
<file>completion/clicks.cwl</file>
<file>completion/clipboard.cwl</file>
Expand Down Expand Up @@ -4014,6 +4015,7 @@
<file>completion/web.cwl</file>
<file>completion/wedn.cwl</file>
<file>completion/weekday.cwl</file>
<file>completion/weiqi.cwl</file>
<file>completion/wela.cwl</file>
<file>completion/wesa.cwl</file>
<file>completion/wesu.cwl</file>
Expand Down
4 changes: 3 additions & 1 deletion completion/class-dtk.cwl
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# dtk class
# Matthew Bertucci 2023/07/31 for v2.10a
# Matthew Bertucci 2024/02/26 for v2.10e

#include:hyphsubst
#include:iftex
#include:xkeyval
#include:dtk-url
#include:hvqrurl
#include:class-scrbook
#include:scrhack
#include:listings
Expand Down Expand Up @@ -123,6 +124,7 @@ color#true,false
\fullwidth#*
\ifDTKrecord#*
\journalname
\Klasse{class}#*
\Macro{csname}
\ORIGprintbibliography#S
\Package{package%plain}
Expand Down
6 changes: 4 additions & 2 deletions completion/class-homework.cwl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# homework class
# Matthew Bertucci 2023/10/05 for v2023/10/01b
# Matthew Bertucci 2024/02/21 for v2024-02-21

#include:class-einfart
#include:ProjLib
Expand All @@ -15,6 +15,8 @@

\pretitle{text}

\ManualNumbering{envname}{number}

# not documented
\begin{soluenumerate}#S
\begin{soluenumerate}[options]#S
Expand All @@ -26,4 +28,4 @@
\IfSolutionTF{true}{false}#S
\IfAnswerT{true}#S
\IfAnswerF{false}#S
\IfAnswerTF{true}{false}#S
\IfAnswerTF{true}{false}#S
5 changes: 4 additions & 1 deletion completion/class-jlreq.cwl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# jlreq class
# Matthew Bertucci 2022/11/28 for release 2022/11/28
# Matthew Bertucci 2024-02-15 for release 2024-02-13

#include:l3keys2e
#include:etoolbox
Expand All @@ -9,6 +9,7 @@
#include:everyhook
#include:lmodern
#include:jlreq-complements
#include:stfloats

#keyvals:\documentclass/jlreq#c
uplatex
Expand Down Expand Up @@ -147,6 +148,8 @@ appendix_counter={%<counter%>={value=%<integer%>,the=%<code%>}%<,...%>}
appendix_heading={%<sectionname%>={%<settings%>}%<,...%>}
appendix_precode=%<code%>
appendix_postcode=%<code%>
abstract_with_maketitle#true,false
tableofcontents_twocolumn#true,false
#endkeyvals

\part{title}[subtitle%text]#L0
Expand Down
19 changes: 8 additions & 11 deletions completion/class-langscibook.cwl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# langscibook class
# Matthew Bertucci 2023/02/12 for v2023-02-08
# Matthew Bertucci 2024-02-21 for v2024-02-07

#include:xetex
#include:silence
Expand Down Expand Up @@ -27,7 +27,6 @@
#include:pst-barcode
#include:datetime
#include:scrlayer-scrpage
#include:epigraph
#include:babel
# loads english option of babel
#include:biblatex
Expand All @@ -46,7 +45,6 @@
#keyvals:\documentclass/langscibook#c
arabicfont
babelshorthands
biblatex
biblatexbackend=#bibtex,bibtex8,biber
booklanguage=%<language%>
chinesefont
Expand All @@ -61,9 +59,7 @@ japanesefont
koreanfont
minimal
multiauthors
newtxmath
nobabel
nonewtxmath
oldstylenumbers
openreview
output=#book,paper,minimal,guidelines
Expand All @@ -72,7 +68,6 @@ showindex
smallfont
spinewidth=##L
syriacfont
tblseight
infn
uniformtopskip
#endkeyvals
Expand Down Expand Up @@ -422,10 +417,6 @@ SuppressWarning#true,false
\krn
#endif

#ifOption:newtxmath
#include:newtxmath
#endif

#ifOption:proofs
#include:lineno
#endif
Expand Down Expand Up @@ -561,6 +552,9 @@ SuppressWarning#true,false
\lsDedication#*
\lsDedicationFont#*
\lsDetermineMultiauthors#*
\lsDeterminePaperAuthorAffiliationIndexing#*
\lsDetermineSpineWidth{arg}#*
\lsDetermineSpineWidth[opt]{arg}#*
\lsEditorPrefix#*
\lsEditorSuffix#*
\lsFontsize#*
Expand Down Expand Up @@ -621,6 +615,7 @@ SuppressWarning#true,false
\newlineTOC#*
\normalparindent#*
\openreviewer{name}
\orcid{ORCID}
\paperhivetext#*
\papernote{text}
\partref{label}#r
Expand Down Expand Up @@ -648,7 +643,6 @@ SuppressWarning#true,false
\subsubsubsubsection{title}#L6
\subsubsubsubsectionmark{code}
\tabref{label}#r
\tblseight#*
\tempnumber#S
\theappendixsection#*
\titleTemp#*
Expand Down Expand Up @@ -733,6 +727,9 @@ langscicol20#B
\citetv[prenote][postnote]{bibid}#C
\citetv[postnote]{bibid}#C
\citetv{bibid}#C
\citeyeartv[prenote][postnote]{bibid}#C
\citeyeartv[postnote]{bibid}#C
\citeyeartv{bibid}#C
\textcitetv[prenote][postnote]{bibid}#C
\textcitetv[postnote]{bibid}#C
\textcitetv{bibid}#C
Expand Down
42 changes: 32 additions & 10 deletions completion/class-randexam.cwl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# randexam class
# Matthew Bertucci 2024/02/04 for v2024D
# Matthew Bertucci 2024/02/19 for v2024E

#include:functional
#include:etoolbox
Expand All @@ -16,6 +16,8 @@
#include:zref-lastpage
#include:tabularx
#include:xcolor
#include:tabularray
#include:tabularraylibrarydiagbox

# loaded by default
#include:mathdesign
Expand All @@ -38,6 +40,7 @@ solidot
sourcehan
chinese
seed=%<integer%>
language=%<language%>
#endkeyvals

#ifOption:a3paper
Expand Down Expand Up @@ -65,13 +68,8 @@ seed=%<integer%>
#endif

#ifOption:moremath
#include:diagbox
#include:mathtools
#include:extarrows
\diagboxtwo{left}{right}#t
\diagboxtwo[options%keyvals]{left}{right}#t
\diagboxthree{left}{middle}{right}#t
\diagboxthree[options%keyvals]{left}{middle}{right}#t
\diff#m
\dx#m
\dy#m
Expand Down Expand Up @@ -234,6 +232,13 @@ seed=%<integer%>
#include:xeCJKfntef
#endif

#ifOption:language=chinese
#include:ctex
#include:CJKnumb
#include:CJKfntef
#include:iftex
#include:xeCJKfntef
#endif
#ifOption:chinese
#include:ctex
#include:CJKnumb
Expand Down Expand Up @@ -277,22 +282,41 @@ seed=%<integer%>
\answertable
\answertable[keyvals]
\DeclareExamTemplate{element}{name}{code}
\DeclareExamTheme{theme name}{code}
\DeclareExamTranslation{language}{keyvals}
\examdata{text}
\exampart{title%text}{note%text}
\ExamFillCdot
\ExamFillUline
\ExamFillUlinePhantom{text}
\ExamFillUlineText{text}
\exampart{title%text}
\exampart{title%text}[note%text]
\examtitle{keyvals}
\fillin{text}
\fillout{text}
\gradetable
\gradetable[keyvals]
\IfExamBoolF{bool name}{false code}
\IfExamBoolT{bool name}{true code}
\IfExamBoolTF{bool name}{true code}{false code}
\IfExamLanguageEqF{language}{false code}
\IfExamLanguageEqT{language}{true code}
\IfExamLanguageEqTF{language}{true code}{false code}
\IfExamValueEmptyF{module}{key%plain}{false code}
\IfExamValueEmptyT{module}{key%plain}{true code}
\IfExamValueEmptyTF{module}{key%plain}{true code}{false code}
\IfExamValueExistF{module}{key%plain}{false code}
\IfExamValueExistT{module}{key%plain}{true code}
\IfExamValueExistTF{module}{key%plain}{true code}{false code}
\NewExamBool{bool name}
\pickin{A|B|C|D}
\pickout{A|B|C|D}
\points{number}
\SelectExamTemplate{element}{name}
\SelectExamTheme{theme name}
\SelectExamTranslation{language}
\SetExamBoolFalse{bool name}
\SetExamBoolTrue{bool name}
\SetExamOption{options%keyvals}
\SetExamTranslation{keyvals}
\SetExamValue{module}{keyvals}
Expand All @@ -314,7 +338,6 @@ seed=%<integer%>
\begin{abcdreal}#S
\begin{questionreal}#S
\begin{solutionreal}#S
\cdotfill#S
\DeclareExamValue{arg1}{arg2}#S
\end{abcd*real}#S
\end{abcdreal}#S
Expand Down Expand Up @@ -349,7 +372,6 @@ seed=%<integer%>
\thequestionreal#S
\thetotalquestions#S
\tickin{arg}#S
\ulinefill{arg}#S
\underbox{arg1}{arg2}#S
\underparbox{arg1}{arg2}#S
\underspace{arg}#S
Expand All @@ -363,4 +385,4 @@ seed=%<integer%>
\end{itemize*}
\begin{description*}
\begin{description*}[options%keyvals]
\end{description*}
\end{description*}
4 changes: 2 additions & 2 deletions completion/class-se2thesis.cwl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# se2thesis class
# Matthew Bertucci 2023/09/12 for v3.2.0
# Matthew Bertucci 2024/02/26 for v3.3.1

#include:graphicx
#include:translations
Expand All @@ -15,7 +15,7 @@
class=#scrreprt,scrbook
paper=#a4,b5
logofile={%<path-to-file%>}
thesistype=#bachelor,bachelorproposal,master,masterproposal,phd,phdproposal
thesistype=#bachelor,bachelorproposal,master,masterproposal,phd,phdeng,phdproposal
colormode=#cmyk,rgb,bw
#endkeyvals

Expand Down
73 changes: 73 additions & 0 deletions completion/cleveref-forward.cwl
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# cleveref-forward package
# Matthew Bertucci 2024/02/25 for v2024/02/24

#include:cleveref
#include:iflang
#include:regexpatch

#keyvals:\usepackage/cleveref-forward#c
default=#used on,used by,used by and on
crefthe#true,false
#endkeyvals

#ifOption:crefthe
#include:crefthe
#endif
#ifOption:crefthe=true
#include:crefthe
#endif

\cref[option%keyvals]{labellist}#r
\cref*[option%keyvals]{labellist}#r
\Cref[option%keyvals]{labellist}#r
\Cref*[option%keyvals]{labellist}#r
\labelcref[option%keyvals]{labellist}#r

#keyvals:\cref#c,\cref*#c,\Cref#c,\Cref*#c,\labelcref#c
used on
used by
used by and on
no use
#endkeyvals

\SetUsedOnMessageText{text}
\SetUsedByMessageText{text}
\SetUsedByAndOnMessageText{text}
\SetForwardReferenceStyle{code}
\SetForwardReferenceStyleInsideMath{code}
\SetForwardReferenceStyleOutsideMath{code}
\SetForwardReferenceRefForm{code}
\SetForwardReferencePagerefForm{code}
\restorelabel{label}#r

# not documented
\UsedOnMessageText{arg}#S
\UsedByMessageText{arg}#S
\UsedByAndOnMessageText{arg1}{arg2}#S
\UsedOnMessageContent{arg}#S
\UsedByMessageContent{arg}#S
\UsedByAndOnMessageContent{arg1}{arg2}#S
\SetUsedOnMessageContent{arg}#S
\SetUsedByMessageContent{arg}#S
\SetUsedByAndOnMessageContent{arg}#S
\UsedOnMessage{arg}#S
\UsedByMessage{arg}#S
\UsedByAndOnMessage{arg1}{arg2}#S
\UsedOnMessageMath{arg}#S
\UsedByMessageMath{arg}#S
\UsedByAndOnMessageMath{arg1}{arg2}#S
\UsedOnMessageInsideMath{arg}#S
\UsedByMessageInsideMath{arg}#S
\UsedByAndOnMessageInsideMath{arg1}{arg2}#S
\UsedOnMessageOutsideMath{arg}#S
\UsedByMessageOutsideMath{arg}#S
\UsedByAndOnMessageOutsideMath{arg1}{arg2}#S
\SetUsedOnMessageStyle{arg}#S
\SetUsedByMessageStyle{arg}#S
\SetUsedByAndOnMessageStyle{arg}#S
\SetUsedOnMessageStyleInsideMath{arg}#S
\SetUsedByMessageStyleInsideMath{arg}#S
\SetUsedByAndOnMessageStyleInsideMath{arg}#S
\SetUsedOnMessageStyleOutsideMath{arg}#S
\SetUsedByMessageStyleOutsideMath{arg}#S
\SetUsedByAndOnMessageStyleOutsideMath{arg}#S
5 changes: 2 additions & 3 deletions completion/dtk-url.cwl
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# dtk-url package
# Matthew Bertucci 3/27/2022 for v1.5
# Matthew Bertucci 2024/02/15 for v1.8

#include:url
#include:xcolor
#include:xkeyval
#include:hvqrurl
#include:pdfescape
#include:ifpdf
#include:atveryend
Expand All @@ -14,4 +13,4 @@
\ctanurl{URL}#U
\Email{email%URL}#U
\license{license}
\URL{URL}#*U
\URL{URL}#*U
Loading

0 comments on commit 9e80616

Please sign in to comment.