Skip to content

Commit 3f528cd

Browse files
authored
new cwls (#2511)
* Update plaintex.cwl * Update latex-dev.cwl * Update tex.cwl * Update latex-dev.cwl * Update optex.cwl * Add files via upload * Update projlib-math.cwl * Update uni-titlepage.cwl * Update create-theorem.cwl * Update caption.cwl
1 parent d91ab69 commit 3f528cd

File tree

13 files changed

+425
-82
lines changed

13 files changed

+425
-82
lines changed

completion/caption.cwl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,16 @@ config=%<file name%>
9999
#include:ragged2e
100100
#endif
101101

102-
\caption[list entry]{heading%text}
102+
\caption[list entry%text]{heading%text}
103103
\caption{heading%text}
104104
\caption*{heading%text}
105105

106-
\captionof{float type}[list entry]{heading%text}
106+
\captionof{float type}[list entry%text]{heading%text}
107107
\captionof{float type}{heading%text}
108108
\captionof*{float type}{heading%text}
109109

110-
\captionlistentry[float type]{list entry}
111-
\captionlistentry{list entry}
110+
\captionlistentry[float type]{list entry%text}
111+
\captionlistentry{list entry%text}
112112

113113
\ContinuedFloat
114114
\ContinuedFloat*

completion/create-theorem.cwl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Matthew Bertucci 2022-07-02 for release 2022-07-01
33

44
#include:crefthe
5+
#include:amsfonts
56

67
#keyvals:\usepackage/create-theorem#c
78
name as context
@@ -49,5 +50,5 @@ parent counter=%<counter%>
4950
shared counter=%<counter%>
5051
#endkeyvals
5152

52-
\SetTheoremBinding{envname}{internal-envname}#*
53+
\SetTheoremBinding{envname}{envname to bind with}
5354
\CreateTheoremAddLanguage{language}#*

completion/gchords.cwl

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# gchords package
2+
# Matthew Bertucci 2022/08/05 for v1.20
3+
4+
\chord{modifiers}{x1,x2,...}{name}
5+
\chords{chords}
6+
\upchord{chord}
7+
\strings
8+
\numfrets
9+
\chordsize
10+
\fingerfont
11+
\namefont
12+
\fretposfont
13+
\dampsymbol
14+
\fatsiz
15+
\normalsiz
16+
\fingsiz
17+
\fatfingsiz
18+
\topfretsiz
19+
\xoff
20+
\yoff
21+
\smallchords
22+
\mediumchords
23+
24+
# not documented
25+
\ascale#S
26+
\attest#S
27+
\basenote#S
28+
\btest#S
29+
\chline#S
30+
\chtext{arg1}#S
31+
\cotest#S
32+
\cpos#S
33+
\curfing#S
34+
\curnote#S
35+
\cvline#S
36+
\cwidth#S
37+
\dlen#S
38+
\etest#S
39+
\fatfingnote#S
40+
\fingnote#S
41+
\fnow#S
42+
\fnum#S
43+
\fpos#S
44+
\ftest#S
45+
\ghor#S
46+
\Ktest#S
47+
\Lnow
48+
\Ltest#S
49+
\mylength#S
50+
\myvpos#S
51+
\needsize#S
52+
\notelabel#S
53+
\ntest#S
54+
\opensymbol#S
55+
\otest#S
56+
\pnow#S
57+
\prevpos#S
58+
\ptest#S
59+
\putdots{arg1}{arg2}#S
60+
\ReturnAfterFi{arg1}#S
61+
\snow#S
62+
\stdnote#S
63+
\stest#S
64+
\stpos#S
65+
\topbar#S
66+
\topline#S
67+
\truewidth#S
68+
\ttest#S
69+
\xtest#S

completion/guitar.cwl

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# guitar package
2+
# Matthew Bertucci 2022/08/05 for v1.6
3+
4+
#include:toolbox
5+
6+
\guitarChord{chord}
7+
\begin{guitar}
8+
\end{guitar}
9+
\guitarOn
10+
\guitarOff
11+
\begin{guitarMagic}
12+
\end{guitarMagic}
13+
\guitarMagicOn
14+
\guitarMagicOff
15+
\begin{guitarCr}
16+
\end{guitarCr}
17+
\guitarCrOn
18+
\guitarCrOff
19+
\guitarFirstLeft
20+
\guitarFirstFlush
21+
\guitarSharp#*
22+
\guitarFlat#*
23+
\guitarEndLine#*
24+
\guitarEndPar#*
25+
\guitarEndDoublePar#*
26+
\guitarNoChord
27+
\guitarPreAccord#*
28+
\guitarAccord#*
29+
\guitarMagicOnHook#*
30+
\guitarMagicOffHook#*
31+
\guitarCrOnHook#*
32+
\guitarCrOffHook#*
33+
\guitarSplitDist#*
34+
\guitarSplitMerge#*
35+
\guitarCalcDim#*
36+
\guitarDim#*
37+
\guitarPut{arg}#*
38+
\guitarPutOnSpace#*
39+
\guitarPutDist{arg}#*
40+
\guitarPutMerge{arg}#*

completion/latex-dev.cwl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ debug={%<options%>}
527527
\pdfobj{object type spec}#*
528528
\pdfobjcompresslevel#*
529529
\pdfomitcharset#*
530+
\pdfomitinfodict#*
530531
\pdfoutline#*
531532
\pdfoutput#*
532533
\pdfpageattr{attributes}#*
@@ -556,7 +557,11 @@ debug={%<options%>}
556557
\pdfsetmatrix{matrix}#*
557558
\pdfsetrandomseed#*
558559
\pdfshellescape#*
560+
\pdfsnaprefpoint#*
561+
\pdfsnapy#*
562+
\pdfsnapycomp#*
559563
\pdfstartlink#*
564+
\pdfstartthread#*
560565
\pdfstrcmp{string1}{string2}#*
561566
\pdfsuppressptexinfo#*
562567
\pdfsuppresswarningdupdest#*
@@ -570,7 +575,6 @@ debug={%<options%>}
570575
\pdftracingfonts#*
571576
\pdftrailer{text%plain}#*
572577
\pdftrailerid{text%plain}#*
573-
\pdftstartthread#*
574578
\pdfunescapehex{string}#*
575579
\pdfuniformdeviate#*
576580
\pdfuniqueresname#*
@@ -609,7 +613,7 @@ debug={%<options%>}
609613
\ltfilehookversion#*
610614
\mathalpha#*
611615
\mathgroup#*
612-
\mathhexbox{number}{expr%formula}{expr%formula}#*
616+
\mathhexbox#*
613617
\mddefault#*
614618
\nobreakdashes#*
615619
\nobreakspace#*

completion/optex.cwl

Lines changed: 35 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# opTeX commands
2-
# Matthew Bertucci 2022/08/02 for v1.07
2+
# Matthew Bertucci 2022/08/05 for v1.08
33

44
#include:plaintex
55
#include:luatex
@@ -83,7 +83,7 @@
8383
\eqlines{code}
8484
\eqstyle{code}
8585
\loadboldmath{[bold-font-file]} \to {[normal-font-file]}
86-
\addUmathfont{cmd}{[normal-font]}{features}{[bold-font]}{features}{factor}#Sd
86+
\addUmathfont{cmd}{[normal-font]}{features}{[bold-font]}{features}{factor}#d
8787
\resetmathchars %<\famname ⟨list of sequences⟩%> ;
8888

8989
## Typical elements of the document ##
@@ -93,31 +93,31 @@
9393
\chap %<⟨Chapter title⟩%>#L1
9494
\chap[%<label%>] %<⟨Chapter title⟩%>#L1
9595
\chap{title}#SL1
96-
\chap[label]{title}#Sl
96+
\chap[label%labeldef]{title}#S
9797
\sec %<⟨Section title⟩%>#L2
9898
\sec[%<label%>] %<⟨Section title⟩%>#L2
9999
\sec{title}#SL2
100-
\sec[label]{title}#Sl
100+
\sec[label%labeldef]{title}#S
101101
\secc %<⟨Subsection title⟩%>#L3
102102
\secc[%<label%>] %<⟨Subsection title⟩%>#L3
103103
\secc{title}#SL3
104-
\secc[label]{title}#Sl
104+
\secc[label%labeldef]{title}#S
105105
\nl
106106
\nonum
107107
\notoc
108108
\eqmark
109-
\eqmark[label]#l
109+
\eqmark[label%labeldef]
110110
\caption/t %<⟨table caption⟩%>
111111
\caption/t [%<label%>] %<⟨table caption⟩%>
112112
\caption/f %<⟨figure caption⟩%>
113113
\caption/f [%<label%>] %<⟨figure caption⟩%>
114114
\cskip
115115
\numberedpar %<⟨letter⟩%>{%<text%>}
116-
\label[label]#l
117-
\ref[label]#r
118-
\ref[label]{text}#r
119-
\pgref[label]#r
120-
\pgref[label]{text}#r
116+
\label[label%labeldef]
117+
\ref[label%ref]
118+
\ref[label%ref]{text}
119+
\pgref[label%ref]
120+
\pgref[label%ref]{text}
121121
\wlabel{text}
122122
\showlabels
123123
\hyperlinks %<⟨color-in⟩ ⟨color-out⟩%>
@@ -454,13 +454,11 @@
454454
\CS#*
455455
\csplain#*
456456
\defaultoptsize
457-
\docfile#*
458457
\doloadmath
459458
\dunhill#*
460459
\ea#*
461460
\ED#*
462461
\EDN#*
463-
\enddocument#*
464462
\endlayers
465463
\eqboxsize
466464
\everycaptionf={%<code%>}
@@ -495,7 +493,6 @@
495493
\localcolor
496494
\mathsboff
497495
\mathsbon
498-
\maxlines
499496
\mfontsrule
500497
\mnoteindent
501498
\mnoteskip
@@ -530,8 +527,6 @@
530527
\plaintexcatcodes
531528
\plaintexsetting#*
532529
\PP#*
533-
\printdoc %<⟨filename⟩%>#*
534-
\printdoctail %<⟨filename⟩%>#*
535530
\promile#S
536531
\pshow%<⟨num⟩%>
537532
\ptmunit
@@ -549,8 +544,6 @@
549544
\runningfnotes#S
550545
\sans#*
551546
\scantoeol
552-
\seccc %<⟨subsubsection title⟩%>#*
553-
\secccc#*
554547
\secl%<⟨number⟩%>
555548
\setff{font-feature}
556549
\setfontcolor#S
@@ -586,7 +579,6 @@
586579
\uslang#S
587580
\uv#S
588581
\visiblesp
589-
\vitt{file}#*i
590582
\voidbox#*
591583
\VOL#*
592584
\wideformat
@@ -595,8 +587,24 @@
595587
\Xrefversion{version}#*
596588
\YEAR#*
597589

590+
# loaded by \load[doc]
591+
\bgverbcolor#S
592+
\docfile#S
593+
\enddocument#S
594+
\fnamecolor#S
595+
\lt#S
596+
\maxlines#S
597+
\mlinkcolor#S
598+
\printdoc %<⟨filename⟩%>#S
599+
\printdoctail %<⟨filename⟩%>#S
600+
\seccc %<⟨subsubsection title⟩%>#S
601+
\secccc#S
602+
\ulinkcolor#S
603+
\vitt{file}#Si
604+
598605
# availability depends on font
599606
\Adventor#S
607+
\alter#S
600608
\angular#S
601609
\Baskervald#S
602610
\Baskerville#S
@@ -635,6 +643,7 @@
635643
\medium#S
636644
\Merriweather#S
637645
\mono#S
646+
\Montserrat#S
638647
\NewCM#S
639648
\nocaps#S
640649
\nocond#S
@@ -643,6 +652,7 @@
643652
\noswash#S
644653
\onum#S
645654
\osize#S
655+
\Overlock#S
646656
\Pagella#S
647657
\Poltawski#S
648658
\Roboto#S
@@ -652,13 +662,17 @@
652662
\serif#S
653663
\Sourcepro#S
654664
\stencil#S
665+
\Stix#S
666+
\StixTwo#S
655667
\swash#S
656668
\Technika#S
657669
\Termes#S
658670
\tf#S
659671
\thin#S
660672
\ti#S
661673
\XCharter#S
674+
\Xits#S
675+
\xlight#S
662676

663677
## pdftex commands implemented in optex
664678
\ifpdfabsdim
@@ -695,7 +709,7 @@
695709
\pdfincludechars
696710
\pdfinclusioncopyfonts
697711
\pdfinclusionerrorlevel
698-
\pdfinfo
712+
\pdfinfo{info}
699713
\pdfinsertht
700714
\pdflastannot
701715
\pdflastlinedepth
@@ -3620,4 +3634,4 @@
36203634
\Green#*
36213635
\Grey#*
36223636
\Maroon#*
3623-
\Purple#*
3637+
\Purple#*

completion/plaintex.cwl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
\above#m
99
\abovedisplayshortskip
1010
\abovedisplayskip
11-
\abovewithdelims %<⟨deliim1⟩ ⟨deliim2⟩ ⟨dimen⟩%>#m
11+
\abovewithdelims %<⟨delim1⟩ ⟨delim2⟩ ⟨dimen⟩%>#m
1212
\accent%<⟨charcode⟩%>
1313
\active
1414
\acute{a}#m
@@ -35,7 +35,7 @@
3535
\ast#m
3636
\asymp#m
3737
\atop#m
38-
\atopwithdelims %<⟨deliim1⟩ ⟨deliim2⟩%>#m
38+
\atopwithdelims %<⟨delim1⟩ ⟨delim2⟩%>#m
3939
\b{o}
4040
\backslash#m
4141
\badness

0 commit comments

Comments
 (0)