File: ifnextok.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 (34 lines) | stat: -rw-r--r-- 759 bytes parent folder | download | duplicates (2)
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
# ifnextok package
# Matthew Bertucci 11/26/2021 for v0.3

#keyvals:\usepackage/ifnextok#c
newline
center
tab
array
tabular
all
stdbreaks
#endkeyvals

\IfNextToken%<<match>%>{%<if%>}{%<else%>}#*
\NoNextSkipping#*
\RestoreNextSkipping#*
\INTpatch%<<replacer><macro>%>#*
\NextTestPatch%<<macro>%>#*
\INTstore%<<macro>%>#*
\INTrestore%<<macro>%>#*
\IfStarNextToken%<<token>%>#*
\StarTestPatch%<<macro>%>#*
\StoreStarSkipping#*
\RestoreStarSkipping#*
\NoStarSkipping#*
\IfNextSpace{if}{else}#*
\MakeNotSkipping{target}{on-space}#*
\StoreNewlineSkipping#*
\RestoreNewlineSkipping#*
\NoNewlineSkipping#*
\INTactOnEnv{action1}{action2}{envname}#*
\StoreSkippingCRs{envname}#*
\RestoreSkippingCRs{envname}#*
\NotSkippingCRs{envname}#*