File: etoolbox.cwl

package info (click to toggle)
texstudio 4.3.1%2Bds-2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 74,980 kB
  • sloc: cpp: 102,721; xml: 17,126; ansic: 8,143; sh: 194; javascript: 177; makefile: 28
file content (232 lines) | stat: -rw-r--r-- 7,535 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
# etoolbox package
# Martin Sievers 18 May 2018
# muzimuzhi/29 Aug 2019 for etoolbox v2.5e

# etex package is only loaded for texlive 2014 or older
# #include:etex

## user commands - definitions
\newrobustcmd{cmd}{def}#d
\newrobustcmd{cmd}[args]{def}#d
\newrobustcmd{cmd}[args][default]{def}#d
\newrobustcmd*{cmd}{def}#d
\newrobustcmd*{cmd}[args]{def}#d
\newrobustcmd*{cmd}[args][default]{def}#d
\renewrobustcmd{cmd}{def}#d
\renewrobustcmd{cmd}[args]{def}#d
\renewrobustcmd{cmd}[args][default]{def}#d
\renewrobustcmd*{cmd}{def}#d
\renewrobustcmd*{cmd}[args]{def}#d
\renewrobustcmd*{cmd}[args][default]{def}#d
\providerobustcmd{cmd}{def}#d
\providerobustcmd{cmd}[args]{def}#d
\providerobustcmd{cmd}[args][default]{def}#d
\providerobustcmd*{cmd}{def}#d
\providerobustcmd*{cmd}[args]{def}#d
\providerobustcmd*{cmd}[args][default]{def}#d

## user commands - patching and protection
\robustify{command}
\protecting{code}

## user commands - length and counter assignments
\defcounter{counter}{integer expression}
\deflength{length%cmd}{glue expression}#d

## user commands - additional document hooks
\AfterPreamble{code}
\AtEndPreamble{code}
\AfterEndPreamble{code}
\AfterEndDocument{code}

## user commands - environment hooks
\AtBeginEnvironment{environment}{code}
\AtEndEnvironment{environment}{code}
\AfterEndEnvironment{environment}{code}
\BeforeBeginEnvironment{environment}{code}

## author commands - macro definitions
\csdef{%<csname%>}%<arguments%>{%<replacement text%>}
\csgdef{%<csname%>}%<arguments%>{%<replacement text%>}
\csedef{%<csname%>}%<arguments%>{%<replacement text%>}
\csxdef{%<csname%>}%<arguments%>{%<replacement text%>}
\protected@csedef{%<csname%>}%<arguments%>{%<replacement text%>}#*
\protected@csxdef{%<csname%>}%<arguments%>{%<replacement text%>}#*
\cslet{csname}{command}
\letcs{command}{csname}#d
\csletcs{csname}{csname}
\csuse{csname}
\undef{command}
\gundef{command}
\csundef{csname}
\csgundef{csname}
\csmeaning{csname}
\csshow{csname}

## author commands - arithmetic definitions
\numdef{command}{integer expression}#d
\numgdef{command}{integer expression}#d
\csnumdef{csname}{integer expression}
\csnumgdef{csname}{integer expression}
\dimdef{command}{dimen expression}#d
\dimgdef{command}{dimen expression}#d
\csdimdef{csname}{dimen expression}
\csdimgdef{csname}{dimen expression}
\gluedef{command}{glue expression}#d
\gluegdef{command}{glue expression}#d
\csgluedef{csname}{glue expression}
\csgluegdef{csname}{glue expression}
\mudef{command}{muglue expression}#d
\mugdef{command}{muglue expression}#d
\csmudef{csname}{muglue expression}
\csmugdef{csname}{muglue expression}

## author commands - expansion control
\expandonce{command}
\csexpandonce{csname}

## author commands - appending to a hook
\appto{hook%cmd}{code}#d
\gappto{hook%cmd}{code}#d
\eappto{hook%cmd}{code}#d
\xappto{hook%cmd}{code}#d
\protected@eappto{hook%cmd}{code}#*d
\protected@xappto{hook%cmd}{code}#*d
\csappto{csname}{code}
\csgappto{csname}{code}
\cseappto{csname}{code}
\csxappto{csname}{code}
\protected@cseappto{csname}{code}#*
\protected@csxappto{csname}{code}#*

## author commands - prepending to a hook
\preto{hook%cmd}{code}#d
\gpreto{hook%cmd}{code}#d
\epreto{hook%cmd}{code}#d
\xpreto{hook%cmd}{code}#d
\protected@epreto{hook%cmd}{code}#*d
\protected@xpreto{hook%cmd}{code}#*d
\cspreto{csname}{code}
\csgpreto{csname}{code}
\csepreto{csname}{code}
\csxpreto{csname}{code}
\protected@csepreto{csname}{code}#*
\protected@csxpreto{csname}{code}#*

## author commands - patching
\patchcmd{command}{search}{replace}{success}{failure}
\patchcmd[prefix]{command}{search}{replace}{success}{failure}
\ifpatchable{command}{search}{true}{false}
\ifpatchable*{command}{true}{false}
\apptocmd{command}{code}{success}{failure}
\pretocmd{command}{code}{success}{failure}
\tracingpatches

## author commands - tex boolean flags
\newbool{bool name}
\providebool{bool name}
\booltrue{bool name}
\boolfalse{bool name}
\setbool{bool name}{true|false}
\ifbool{bool name}{true}{false}
\notbool{bool name}{not true}{not false}

## author commands - latex toggle flags
\newtoggle{toggle name}
\providetoggle{toggle name}
\toggletrue{toggle name}
\togglefalse{toggle name}
\settoggle{toggle name}{true|false}
\iftoggle{toggle name}{true}{false}
\nottoggle{toggle name}{not true}{not false}

## author commands - macro tests
\ifdef{control sequence}{true}{false}
\ifcsdef{csname}{true}{false}
\ifundef{control sequence}{true}{false}
\ifcsundef{csname}{true}{false}
\ifdefmacro{control sequence}{true}{false}
\ifcsmacro{csname}{true}{false}
\ifdefparam{control sequence}{true}{false}
\ifcsparam{csname}{true}{false}
\ifdefprefix{control sequence}{true}{false}
\ifcsprefix{csname}{true}{false}
\ifdefprotected{control sequence}{true}{false}
\ifcsprotected{csname}{true}{false}
\ifdefltxprotect{control sequence}{true}{false}
\ifcsltxprotect{csname}{true}{false}
\ifdefempty{control sequence}{true}{false}
\ifcsempty{csname}{true}{false}
\ifdefvoid{control sequence}{true}{false}
\ifcsvoid{csname}{true}{false}
\ifdefequal{control sequence}{control sequence}{true}{false}
\ifcsequal{csname}{csname}{true}{false}
\ifdefstring{command}{string}{true}{false}
\ifcsstring{csname}{string}{true}{false}
\ifdefstrequal{command}{command}{true}{false}
\ifcsstrequal{csname}{csname}{true}{false}

## author commands - counter and length tests
\ifdefcounter{control sequence}{true}{false}
\ifcscounter{csname}{true}{false}
\ifltxcounter{counter}{true}{false}
\ifdeflength{control sequence}{true}{false}
\ifcslength{csname}{true}{false}
\ifdefdimen{control sequence}{true}{false}
\ifcsdimen{csname}{true}{false}

## author commands - string tests
\ifstrequal{string}{string}{true}{false}
\ifstrempty{string}{true}{false}
\ifblank{string}{true}{false}
\notblank{string}{true}{false}

## author commands - arithmetic tests
\ifnumcomp{integer expression}{relation}{integer expression}{true}{false}
\ifnumequal{integer expression}{integer expression}{true}{false}
\ifnumgreater{integer expression}{integer expression}{true}{false}
\ifnumless{integer expression}{integer expression}{true}{false}
\ifnumodd{integer expression}{true}{false}
\ifdimcomp{dimen expression}{relation}{dimen expression}{true}{false}
\ifdimequal{dimen expression}{dimen expression}{true}{false}
\ifdimgreater{dimen expression}{dimen expression}{true}{false}
\ifdimless{dimen expression}{true}{false}

## author commands - boolean expressions
\ifboolexpr{expression}{true}{false}
\ifboolexpe{expression}{true}{false}
\whileboolexpr{expression}{code}
\unlessboolexpr{expression}{code}

## author commands - list processing - user input
\DeclareListParser{command}{separator}#d
\DeclareListParser*{command}{separator}#d
\docsvlist{csvlist}
\listbreak
\forcsvlist{handler}{csvlist}

## author commands - list processing - internal lists
\listadd{list macro}{item}
\listgadd{list macro}{item}
\listeadd{list macro}{item}
\listxadd{list macro}{item}
\listcsadd{list csname}{item}
\listcsgadd{list csname}{item}
\listcseadd{list csname}{item}
\listcsxadd{list csname}{item}
\listremove{list macro}{item}
\listgremove{list macro}{item}
\listcsremove{list csname}{item}
\listcsgremove{list csname}{item}
\dolistloop{list macro}
\dolistcsloop{list csname}
\forlistloop{handler}{list macro}
\forlistcsloop{handler}{list csname}
\ifinlist{item}{list macro}{true}{false}
\xifinlist{item}{list macro}{true}{false}
\ifinlistcs{item}{list csname}{true}{false}
\xifinlistcs{item}{list csname}{true}{false}

## author commands - miscellaneous tools
\rmntonum{numeral}
\ifrmnum{string}{true}{false}