File: keyvaltable.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 (164 lines) | stat: -rw-r--r-- 4,331 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
# keyvaltable package
# Matthew Bertucci 10/1/2021 for v2.2

#include:etoolbox
#include:xkeyval
#include:trimspaces
#include:xcolor
# loads table option of xcolor
#include:booktabs

\NewKeyValTable{table name}{colspecs}
\NewKeyValTable[options%keyvals]{table name}{colspecs}
\NewKeyValTable{table name}{colspecs}[layout]#*
\NewKeyValTable[options%keyvals]{table name}{colspecs}[layout]#*

\begin{KeyValTable}{table name}
\begin{KeyValTable}[options%keyvals]{table name}
\end{KeyValTable}

\Row{col=text,...}
\Row[options%keyvals]{col=text,...}

\NewCollectedTable{collection name}{table name}
\CollectRow{collection name}{col=text,...}
\CollectRow[options%keyvals]{collection name}{col=text,...}
\ShowCollectedTable{collection name}
\ShowCollectedTable[options%keyvals]{collection name}

\ShowKeyValTableFile{table name}{file}
\ShowKeyValTableFile[options%keyvals]{table name}{file}

\AddKeyValRow{table name}{col=text,...}#*
\AddKeyValRow{table name}[options%keyvals]{col=text,...}#*
\ShowKeyValTable{table name}#*
\ShowKeyValTable[options%keyvals]{table name}#*
\begin{KeyValTableContent}{table name}#*
\end{KeyValTableContent}#*

\thekvtRow
\thekvtTypeRow
\thekvtTotalRow

\kvtLabel{counter}{label}#l
\kvtLabel[options]{counter}{label}#*l

\kvtDeclareTableMacros{macro list}
\kvtDeclareTableCounters{counter list}
\kvtDeclareCtrFormatters{macro list}

\kvtNewTableStyle{name}{options%keyvals}
\kvtRenewTableStyle{name}{options%keyvals}

\kvtStrutted{arg}
\kvtStrutted[inner]{arg}

\kvtNewRowStyle{name}{options%keyvals}
\kvtRenewRowStyle{name}{options%keyvals}

\kvtTableOpt{option}#*

\kvtSet{options%keyvals}

#keyvals:\kvtSet
align=%<coltype%>
default=%<content%>
format=%<single-arg macro%>
head=%<content%>
hidden#true,false
#endkeyvals

#keyvals:\Row,\CollectRow,\AddKeyValRow,\kvtNewRowStyle,\kvtRenewRowStyle
uncounted#true,false
hidden#true,false
align=%<coltype%>
bg=#%color
format=%<cmd%>
format*=%<cmd%>
format!=%<cmd%>
headlike#true,false
above=##L
below=##L
around=##L
style=%<list of style names%>
expandonce#true,false
expand#true,false
#endkeyvals

#keyvals:\kvtSet
Row/uncounted#true,false
Row/hidden#true,false
Row/align=%<coltype%>
Row/bg=#%color
Row/format=%<cmd%>
Row/format*=%<cmd%>
Row/format!=%<cmd%>
Row/headlike#true,false
Row/above=##L
Row/below=##L
Row/around=##L
Row/style=%<list of style names%>
Row/expandonce#true,false
Row/expand#true,false
HeadCell/align=%<coltype%>
HeadCell/head=%<text%>
ColGroup/span=%<+ separated columns%>
ColGroup/align=%<coltype%>
ColGroup/format=%<single-arg macro%>
#endkeyvals

#keyvals:\begin{KeyValTable}
resume#true,false
resume*#true,false
caption=%<text%>
caption/lot=%<text%>
caption/alt=%<text%>
label=##l
#endkeyvals

#keyvals:\NewKeyValTable,\begin{KeyValTable},\ShowCollectedTable,\ShowKeyValTableFile,\ShowKeyValTable,\kvtSet,\kvtNewTableStyle,\kvtRenewTableStyle
backend=#tabular,tabularx,longtable,xltabular,tabu,longtabu
shape=#multipage,onepage
width=##L
valign=#t,c,b
halign=#l,c,r
showhead#true,false
showrules#true,false
norules#true,false
headalign=%<coltype%>
headbg=#%color
headformat=%<cmd%>
rowbg=#%color
norowbg#true,false
nobg#true,false
style=%<list of style names%>
captionpos=#t,b
#endkeyvals

# not in main documentation
\metatblRegisterEnv{envname}{properties}#*
\metatblRegistered{envname}{true}{false}#*
\metatblIsLong{envname}{true}{false}#*
\metatblIsTabu{envname}{true}{false}#*
\metatblHasWidth{envname}{true}{false}#*
\metatblHasCaption{envname}{true}{false}#*
\metatblCanVAlign{envname}{true}{false}#*
\metatblCanHAlign{envname}{true}{false}#*
\metatblUsePackage{envnames}#*
\metatblRequire{envnames}#*
\metatblAtEnd{envname}{code}#*

# from table option of xcolor
#include:colortbl
## double command as workaround for color args to be recognized properly as colors
\rowcolors{row}{odd-row-color}{even-row-color}
\rowcolors[commands]{row}{odd-row-color}{even-row-color}
\rowcolors{row}{color}{color}#S
\rowcolors[commands]{row}{color}{color}#S
\rowcolors*{row}{odd-row-color}{even-row-color}
\rowcolors*[commands]{row}{odd-row-color}{even-row-color}
\rowcolors*{row}{color}{color}#S
\rowcolors*[commands]{row}{color}{color}#S
\showrowcolors
\hiderowcolors
\rownum