Skip to content

Commit

Permalink
Cwls (#3735)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbertucci47 authored Jul 18, 2024
1 parent 8303978 commit b4c8f9e
Show file tree
Hide file tree
Showing 18 changed files with 849 additions and 71 deletions.
3 changes: 3 additions & 0 deletions completion.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -2259,6 +2259,7 @@
<file>completion/lucmtime.cwl</file>
<file>completion/luctime.cwl</file>
<file>completion/lutabulartools.cwl</file>
<file>completion/luwiantype.cwl</file>
<file>completion/luximono.cwl</file>
<file>completion/lwarp.cwl</file>
<file>completion/lyluatex.cwl</file>
Expand Down Expand Up @@ -2686,6 +2687,7 @@
<file>completion/parselines.cwl</file>
<file>completion/parskip.cwl</file>
<file>completion/pascaltriangle.cwl</file>
<file>completion/passopt.cwl</file>
<file>completion/pas-cours.cwl</file>
<file>completion/pas-crosswords.cwl</file>
<file>completion/pas-cv.cwl</file>
Expand Down Expand Up @@ -3095,6 +3097,7 @@
<file>completion/quran-ur.cwl</file>
<file>completion/ragged2e.cwl</file>
<file>completion/raleway.cwl</file>
<file>completion/randbild.cwl</file>
<file>completion/randomlist.cwl</file>
<file>completion/randomwalk.cwl</file>
<file>completion/randtext.cwl</file>
Expand Down
9 changes: 8 additions & 1 deletion completion/beamerthememoloch.cwl
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
# moloch beamertheme
# Matthew Bertucci 2024/03/08 for v0.3.0
# Matthew Bertucci 2024/07/10 for v0.4.0

#include:etoolbox
#include:pgfopts
#include:calc
#include:tikz

#keyvals:\usetheme/moloch#c,\molochset
titleformat=#regular,smallcaps,allsmallcaps,allcaps
titleformat plain=#regular,smallcaps,allsmallcaps,allcaps
sectionpage=#none,simple,progressbar
subsectionpage=#none,simple,progressbar
numbering=#none,counter,fraction
progressbar=#none,head,frametitle,foot
block=#transparent,fill
background=#dark,light
titleformat title=#regular,smallcaps,allsmallcaps,allcaps
titleformat subtitle=#regular,smallcaps,allsmallcaps,allcaps
titleformat section=#regular,smallcaps,allsmallcaps,allcaps
titleformat frame=#regular,smallcaps,allsmallcaps,allcaps
#endkeyvals

\molochset{options%keyvals}
Expand Down
6 changes: 5 additions & 1 deletion completion/biblatex.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -8106,7 +8106,7 @@ biblabel=#superscript,brackets
\mkibid{arg}#*
#endif

### biblatex-publist v2.11 ###
### biblatex-publist v2.12 ###
#ifOption:style=publist
# from publist.bbx
\ExecutePublistOptions{options%keyvals}
Expand Down Expand Up @@ -8177,6 +8177,10 @@ plnumbering=#global,local,global-descending,local-descending,none
\citesecitem[postnote]{bibid}#*C
\citesecitem{bibid}#C
\citesecitem*{bibid}#C
\citeitemrange{bibid}{bibid}#C
\citesecitemrange{bibid}{bibid}#C
\citesecitemrange*{bibid}{bibid}#C
\itemrangesep#*
\shiftciteitem{integer}
\mkrefdesc{number}#*
\secitemsecref#*
Expand Down
6 changes: 4 additions & 2 deletions completion/chemformula-ru.cwl
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# chemformula-ru package
# Matthew Bertucci 2024/03/08 for v2024-03-01
# Matthew Bertucci 2024/07/10 for v2024-07-10

#include:chemformula

#keyvals:\usepackage/chemformula-ru#c
cosh2ch
ch2Ch
#endkeyvals
#endkeyvals
35 changes: 34 additions & 1 deletion completion/class-moderncv.cwl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# denisbitouze, 02.03.2013
# Matthew Bertucci updated 2/23/2022 for v2.3.1
# Matthew Bertucci updated 2024/07/10 for v2.4.0

#include:etoolbox
#include:ifthen
Expand Down Expand Up @@ -45,6 +45,7 @@ final
\born{date}
\email{address%URL}#U
\homepage{URL}#U
\homepage[protocol]{URL}#U
\phone{number}
\phone[type%keyvals]{number}
#keyvals:\phone
Expand Down Expand Up @@ -76,6 +77,17 @@ matrix
googlescholar
codeberg
discord
twitch
youtube
tiktok
instagram
soundcloud
steam
xbox
playstation
battlenet
arxiv
inspire
#endkeyvals
\extrainfo{extra info%text}
\listitemsymbol#*
Expand Down Expand Up @@ -105,6 +117,18 @@ discord
\signalsocialsymbol#*
\codebergsocialsymbol#*
\discordsocialsymbol#*
\twitchsocialsymbol#*
\youtubesocialsymbol#*
\tiktoksocialsymbol#*
\instagramsocialsymbol#*
\soundcloudsocialsymbol#*
\steamsocialsymbol#*
\xboxsocialsymbol#*
\playstationsocialsymbol#*
\battlenetsocialsymbol#*
\arxivsocialsymbol#*
\inspiresocialsymbol#*

\enclname#*
\makefooter
\moderncvstyle{style%keyvals}#n
Expand Down Expand Up @@ -160,6 +184,8 @@ tikz
\hintfont#*
\pagenumberfont#*
\namestyle{text}#*
\firstnamestyle{text}#*
\lastnamestyle{text}#*
\titlestyle{text}#*
\addressstyle{text}#*
\quotestyle{text}#*
Expand All @@ -179,6 +205,8 @@ tikz
\cvitem[spacing%l]{heading%text}{text}
\cvdoubleitem{heading1%text}{text1%text}{heading2%text}{text2%text}#n
\cvdoubleitem[spacing%l]{heading1%text}{text1%text}{heading2%text}{text2%text}#n
\cvtripleitem{heading1%text}{text1%text}{heading2%text}{text2%text}{heading3%text}{text3%text}#n
\cvtripleitem[spacing%l]{heading1%text}{text1%text}{heading2%text}{text2%text}{heading3%text}{text3%text}#n
\cvlistitem{item%text}#n
\cvlistitem[spacing%l]{item%text}#n
\cvlistdoubleitem{item1%text}{item2%text}#n
Expand Down Expand Up @@ -212,8 +240,10 @@ tikz
\bibindent#*
\bibliographyhead{title}#L2
\recipient{recipient}{recipient address}#n
\subject{subject%text}#n
\opening{opening%text}#n
\closing{closing%text}#n
\signature{scale}{imagefile}#g
\enclosure{enclosure%text}#n
\enclosure[alternative name%text]{enclosure%text}#n
\recomputeletterheadlengths#*
Expand All @@ -224,13 +254,16 @@ tikz
\makeletterhead#*
\makeletterfoot#*
\makeletterclosing#n
\hintscolumnwidth#*
\separatorcolumnwidth#*
\maincolumnwidth#*
\doubleitemcolumnwidth#*
\tripleitemcolumnwidth#*
\separatorrulewidth#*
\listitemsymbolwidth#*
\listitemcolumnwidth#*
\listdoubleitemcolumnwidth#*
\listitemsymbolspace#*
\cventryyearbox#*
\cventrytitleboxwidth#*

Expand Down
91 changes: 55 additions & 36 deletions completion/delimset.cwl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# delimset package
# Matthew Bertucci 2/6/2022 for v1.1
# Matthew Bertucci 2024/07/17 for v2.0

#include:amsmath
#include:keyval
Expand All @@ -10,17 +10,30 @@ extdef#true,false
scriptstyle#true,false
#endkeyvals

\delim{%<l%>}{%<r%>}%<size%>{%<expr%>}#m
\delimpair{%<l%>}{%<m%>}{%<r%>}%<size%>{%<expr1%>}{%<expr2%>}#m
\delimtriple{%<l%>}{%<m1%>}{%<m2%>}{%<r%>}%<size%>{%<expr1%>}{%<expr2%>}{%<expr3%>}#m
\delimsize#L
\kerndelim{width}

\usedelim

\delim{%<l%>}{%<r%>}%<flags%>{%<expr%>}#m
\delimpair{%<l%>}{%<m%>}{%<r%>}%<flags%>{%<expr1%>}{%<expr2%>}#m
\delimtriple{%<l%>}{%<m1%>}{%<m2%>}{%<r%>}%<flags%>{%<expr1%>}{%<expr2%>}{%<expr3%>}#m

\DeclareMathDelimiterSet{command}{definition}#d
\DeclareMathDelimiterSet{command}[args]{definition}#d
\selectdeliml{delim}
\selectdeliml*{delim}
\selectdelim{delim}
\selectdelim*{delim}
\selectdelim[class%plain]{delim}
\selectdelim[class%plain]*{delim}
\selectdelimr{delim}
\selectdelimr*{delim}
\DeclareMathDelimiterSel{command}{left-def%definition}{right-def%definition}#d
\parsedelimflags{compositor}{selector}

\brk%<size%>{%<expr%>}#m
\brk[%<type%>]%<size%>{%<expr%>}#m
\brk%<flags%>{%<expr%>}#m
\brk[%<type%>]%<flags%>{%<expr%>}#m
# following line allows for keyval completion even with
# odd syntax in lines above. Similarly for \eval, etc. below
\brk[%<options%>]#Sm
Expand All @@ -32,61 +45,63 @@ c
a
#endkeyvals

\eval%<size%>{%<expr%>}#m
\eval[%<type%>]%<size%>{%<expr%>}#m
\eval%<flags%>{%<expr%>}#m
\eval[%<type%>]%<flags%>{%<expr%>}#m
\eval[%<options%>]#Sm

#keyvals:\eval
v
s
#endkeyvals

\abs%<size%>{%<expr%>}#m
\norm%<size%>{%<expr%>}#m
\abs%<flags%>{%<expr%>}#m
\norm%<flags%>{%<expr%>}#m

#ifOption:extdef
\pair%<size%>{%<expr1%>}{%<expr2%>}#m
\set%<size%>{%<expr%>}#m
\setcond%<size%>{%<expr%>}{%<cond%>}#m
\intv%<size%>{%<expr1%>}{%<expr2%>}#m
\intv[%<type%>]%<size%>{%<expr1%>}{%<expr2%>}#m
\pair%<flags%>{%<expr1%>}{%<expr2%>}#m
\set%<flags%>{%<expr%>}#m
\setcond%<flags%>{%<expr%>}{%<cond%>}#m
\intv%<flags%>{%<expr1%>}{%<expr2%>}#m
\intv[%<type%>]%<flags%>{%<expr1%>}{%<expr2%>}#m
\intv[%<options%>]#Sm
#keyvals:\intv
c
o
l
r
#endkeyvals
\avg%<size%>{%<expr%>}#m
\corr%<size%>{%<expr%>}#m
\comm%<size%>{%<expr1%>}{%<expr2%>}#m
\acomm%<size%>{%<expr1%>}{%<expr2%>}#m
\bra%<size%>{%<expr%>}#m
\ket%<size%>{%<expr%>}#m
\setcond%<size%>{%<expr1%>}{%<expr2%>}#m
\avg%<flags%>{%<expr%>}#m
\corr%<flags%>{%<expr%>}#m
\comm%<flags%>{%<expr1%>}{%<expr2%>}#m
\acomm%<flags%>{%<expr1%>}{%<expr2%>}#m
\bra%<flags%>{%<expr%>}#m
\ket%<flags%>{%<expr%>}#m
\setcond%<flags%>{%<expr1%>}{%<expr2%>}#m
#endif

#ifOption:extdef=true
\pair%<size%>{%<expr1%>}{%<expr2%>}#m
\set%<size%>{%<expr%>}#m
\setcond%<size%>{%<expr%>}{%<cond%>}#m
\intv%<size%>{%<expr1%>}{%<expr2%>}#m
\intv[%<type%>]%<size%>{%<expr1%>}{%<expr2%>}#m
\pair%<flags%>{%<expr1%>}{%<expr2%>}#m
\set%<flags%>{%<expr%>}#m
\setcond%<flags%>{%<expr%>}{%<cond%>}#m
\intv%<flags%>{%<expr1%>}{%<expr2%>}#m
\intv[%<type%>]%<flags%>{%<expr1%>}{%<expr2%>}#m
\intv[%<options%>]#Sm
#keyvals:\intv
c
o
l
r
#endkeyvals
\avg%<size%>{%<expr%>}#m
\corr%<size%>{%<expr%>}#m
\comm%<size%>{%<expr1%>}{%<expr2%>}#m
\acomm%<size%>{%<expr1%>}{%<expr2%>}#m
\bra%<size%>{%<expr%>}#m
\ket%<size%>{%<expr%>}#m
\braket%<size%>{%<expr1%>}{%<expr2%>}#m
\setcond%<size%>{%<expr1%>}{%<expr2%>}#m
\avg%<flags%>{%<expr%>}#m
\corr%<flags%>{%<expr%>}#m
\comm%<flags%>{%<expr1%>}{%<expr2%>}#m
\acomm%<flags%>{%<expr1%>}{%<expr2%>}#m
\bra%<flags%>{%<expr%>}#m
\ket%<flags%>{%<expr%>}#m
\braket%<flags%>{%<expr1%>}{%<expr2%>}#m
\setcond%<flags%>{%<expr1%>}{%<expr2%>}#m
\lfrac%<flags%>{%<expr1%>}{%<expr2%>}#m
\lfrac[%<type%>]%<flags%>{%<expr1%>}{%<expr2%>}#m
#endif

\bigp#m
Expand All @@ -96,4 +111,8 @@ r
\Biggp#m
\Bigp#m
\biggb#m
\biggp#m
\biggp#m
\bigi#m
\Bigi#m
\biggi#m
\Biggi#m
3 changes: 2 additions & 1 deletion completion/dtk-url.cwl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# dtk-url package
# Matthew Bertucci 2024/02/15 for v1.8
# Matthew Bertucci 2024/07/11 for v1.9

#include:url
#include:xcolor
Expand All @@ -9,6 +9,7 @@
#include:atveryend
#include:embedfile

\File{file}
\CTANurl{URL}#*U
\ctanurl{URL}#U
\Email{email%URL}#U
Expand Down
11 changes: 8 additions & 3 deletions completion/etaremune.cwl
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# etaremune package
# Matthew Bertucci 11/13/2021 for v1.2
# Matthew Bertucci 2024/07/15 for v1.2

#include:xkeyval

\begin{etaremune}
\begin{etaremune}[options%keyvals]
\end{etaremune}

#keyvals:\begin{etaremune}
#keyvals:\begin{etaremune},\usepackage/etaremune#c
topsep=##L
partopsep=##L
itemsep=##L
Expand All @@ -18,4 +18,9 @@ listparindent=##L
itemindent=##L
labelwidth=##L
labelsep=##L
#endkeyvals
#endkeyvals

# env only
#keyvals:\begin{etaremune}
start=%<integer%>
#endkeyvals
10 changes: 9 additions & 1 deletion completion/luatexja-fontspec.cwl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# luatexja-fontspec package
# Matthew Bertucci 4/9/2022
# Matthew Bertucci 2024/07/15

#include:l3keys2e
#include:luatexja
Expand Down Expand Up @@ -35,8 +35,16 @@ silent
\renewjfontfamily{cmd}[font features%keyvals]{font}
\setjfontfamily{cmd}{font}#d
\setjfontfamily{cmd}[font features%keyvals]{font}#d
\providejfontfamily{cmd}{font}#d
\providejfontfamily{cmd}[font features%keyvals]{font}#d
\newjfontface{cmd}{font}#d
\newjfontface{cmd}[font features%keyvals]{font}#d
\renewjfontface{cmd}{font}
\renewjfontface{cmd}[font features%keyvals]{font}
\setjfontface{cmd}{font}#d
\setjfontface{cmd}[font features%keyvals]{font}#d
\providejfontface{cmd}{font}#d
\providejfontface{cmd}[font features%keyvals]{font}#d
\defaultjfontfeatures{font features%keyvals}
\defaultjfontfeatures[font name list]{font features%keyvals}
\addjfontfeatures{font features%keyvals}
Expand Down
Loading

0 comments on commit b4c8f9e

Please sign in to comment.