File: chessboard.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 (323 lines) | stat: -rw-r--r-- 7,354 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
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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
# chessboard package
# Matthew Bertucci 10/4/2021 for v1.9

#include:chessfss
#include:xifthen
#include:ifpdf
#include:tikz
#include:etoolbox

\chessboard
\chessboard[options%keyvals]
\setchessboard{options%keyvals}
\storechessboardstyle{name}{options%keyvals}

#keyvals:\chessboard,\setchessboard,\storechessboardstyle,\newchessgame,\resumechessgame
style=%<style%>
maxfield=%<field%>
zero#true,false
clearboard#true,false
cleararea=%<area%>
clearfile=%<file%>
clearfiles=%<files%>
clearrank=%<rank%>
clearranks={%<list of ranks%>}
clearfield=%<field%>
clearfields={%<list of fields%>}
setpieces={%<list of positions%>}
addpieces={%<list of positions%>}
setwhite={%<list of positions%>}
addwhite={%<list of positions%>}
setblack={%<list of positions%>}
addblack={%<list of positions%>}
setfen=%<FEN%>
addfen=%<FEN%>
startfen=%<field%>
startfill=%<field%>
stopfill=%<field%>
fillarea=%<area%>
storefen=%<name%>
savefen=%<filename%>
startstore=%<field%>
stopstore=%<field%>
storearea=%<area%>
mover=#w,b
castling=%<castling possibilies%>
enpassant=%<field%>
halfmove=%<integer%>
fullmove=%<integer%>
getpiecelists
restorefen=%<name%>
loadfen=%<name%>
language=%<language%>
marginleftwidth=##L
marginrightwidth=##L
margintopwidth=##L
marginbottomwidth=##L
hmarginwidth=##L
vmarginwidth=##L
marginwidth=##L
marginleft#true,false
marginright#true,false
margintop#true,false
marginbottom#true,false
hmargin#true,false
vmargin#true,false
margin#true,false
borderleftwidth=##L
borderrightwidth=##L
bordertopwidth=##L
borderbottomwidth=##L
hborderwidth=##L
vborderwidth=##L
borderwidth=##L
borderleft#true,false
borderright#true,false
bordertop#true,false
borderbottom#true,false
hborder#true,false
vborder#true,false
border#true,false
borderleftcolor=#%color
borderrightcolor=#%color
bordertopcolor=#%color
borderbottomcolor=#%color
hbordercolor=#%color
vbordercolor=#%color
bordercolor=#%color
boardfontsize=##L
fontsize=##L
tinyboard
smallboard
normalboard
largeboard
boardfontfamily=%<font family%>
boardfontseries=%<font series%>
boardfontencoding=%<font encoding%>
clearfontcolors
whitefieldmaskcolor=#%color
blackfieldmaskcolor=#%color
fieldmaskcolor=#%color
whitefieldcolor=#%color
blackfieldcolor=#%color
fieldcolor=#%color
whiteonwhitepiecemaskcolor=#%color
whiteonblackpiecemaskcolor=#%color
blackonwhitepiecemaskcolor=#%color
blackonblackpiecemaskcolor=#%color
whitepiecemaskcolor=#%color
blackpiecemaskcolor=#%color
onwhitepiecemaskcolor=#%color
onblackpiecemaskcolor=#%color
piecemaskcolor=#%color
whitepiececolor=#%color
blackpiececolor=#%color
piececolor=#%color
setfontcolors
addfontcolors
emphstyle=%<cmds%>
coloremph#true,false
coloremphstyle=%<cmds%>
emphboard
empharea=%<area%>
emphareas={%<list of areas%>}
emphfile=%<file%>
emphfiles={%<list of files%>}
emphrank=%<rank%>
emphranks={%<list of ranks%>}
emphfield=%<field%>
emphfields={%<list of fields%>}
labelleft#true,false
labelright#true,false
labeltop#true,false
labelbottom#true,false
hlabel#true,false
vlabel#true,false
label#true,false
labelleftwidth=##L
labelrightwidth=##L
hlabelwidth=##L
labelleftlift=##L
labelrightlift=##L
hlabellift=##L
labeltoplift=##L
labelbottomlift=##L
vlabellift=##L
labelleftfont=%<font cmd%>
labelrightfont=%<font cmd%>
labeltopfont=%<font cmd%>
labelbottomfont=%<font cmd%>
hlabelfont=%<font cmd%>
vlabelfont=%<font cmd%>
labelfont=%<font cmd%>
labelfontsize=##L
labelleftformat=%<cmds%>
labelrightformat=%<cmds%>
labeltopformat=%<cmds%>
labelbottomformat=%<cmds%>
hlabelformat=%<cmds%>
vlabelformat=%<cmds%>
labelformat=%<cmds%>
showmover#true,false
moversize=##L
moverlift=##L
movertoplift=##L
moverbottomlift=##L
movershift=##L
movertopshift=##L
moverbottomshift=##L
moverstyle=#circle,triangle,squarearrow,unknown
print#true,false
startprint=%<field%>
stopprint=%<field%>
printarea=%<field%>
inverse#true,false
hideboard
hidearea=%<area%>
hideareas={%<list of areas%>}
hidefile=%<file%>
hidefiles={%<list of files%>}
hiderank=%<rank%>
hideranks={%<list of ranks%>}
hidefield=%<field%>
hidefields{%<list of fields%>}
hidepiece=%<piece char%>
hidepieces={%<list of piece chars%>}
hidewhite
hideblack
hideall
showboard
showarea=%<area%>
showareas={%<list of areas%>}
showfile=%<file%>
showfiles={%<list of files%>}
showrank=%<rank%>
showranks={%<list of ranks%>}
showfield=%<field%>
showfields={%<list of fields%>}
showpiece=%<piece char%>
showpieces={%<list of piece chars%>}
showwhite
showblack
showall
pgf#true,false
markboard
markarea=%<area%>
markareas={%<list of areas%>}
markfile=%<file%>
markfiles={%<list of files%>}
markrank=%<rank%>
markranks={%<list of ranks%>}
markfield=%<field%>
markfields={%<list of fields%>}
backboard
backarea=%<area%>
backareas={%<list of areas%>}
backfile=%<file%>
backfiles={%<list of files%>}
backrank=%<rank%>
backranks={%<list of ranks%>}
backfield=%<field%>
backfields={%<list of fields%>}
markregions={%<list of regions%>}
markregion={%<list of regions%>}
backregions={%<list of regions%>}
backregion={%<list of regions%>}
markmoves={%<list of moves%>}
markmove={%<list of moves%>}
backmoves={%<list of moves%>}
backmove={%<list of moves%>}
markstyle=%<style%>
markstyle=[%<options%>]%<style%>
backstyle=%<style%>
backstyle=[%<options%>]%<style%>
pgfstyle=%<style%>
pgfstyle=[%<options%>]%<style%>
color=#%color
pgfcolor=#%color
opacity=%<factor%>
pgfopacity=%<factor%>
fillopacity=%<factor%>
pgffillopacity=%<factor%>
strokeopacity=%<factor%>
pgfstrokeopacity=%<factor%>
padding=##L
pgfpadding=##L
arrow=%<arrow type%>
pgfarrow=%<arrow type%>
shortenstart=##L
pgfshortenstart=##L
shortenend=##L
pgfshortenend=##L
shorten=##L
pgfshorten=##L
linewidth=##L
pgflinewidth=##L
marklinewidth=##L
backlinewidth=##L
cornerarc=##L
pgfcornerarc=##L
backcornerarc=##L
addpgf=%<pgf cmds%>
usepgf
usepgf=#back,mark,all,both,none
pgfborder
pgfborder=%<area%>
colorbackboard
colorbackarea=%<area%>
colorbackareas={%<list of areas%>}
colorbackfile=%<file%>
colorbackfiles={%<list of files%>}
colorbackrank=%<rank%>
colorbackranks={%<list of ranks%>}
colorbackfield=%<field%>
colorbackfields={%<list of fields%>}
colorwhitebackfields={%<list of fields%>}
colorblackbackfields={%<list of fields%>}
clearpgf
clearbackpgf
clearmarkpgf
clip
clip=
markclip
markclip=
backclip
backclip=
trimarea
trimare=%<area%>
captrimtoprint#true,false
trim#true,false
trimtocolor=#white,black,false
psset#true,false
psskak#true,false
text=%<text%>
#endkeyvals

\cblistK
\cblistQ
\cblistR
\cblistB
\cblistN
\cblistP
\cblistk
\cblistq
\cblistr
\cblistb
\cblistn
\cblistp

\cbDefineLanguage{language}#*
\cbDefineTranslation{piece letter}{new piece letter}#*
\cbDefineMoverStyle{name}{white top}{white bot}{black top}{black bot}#*
\cbDefineMoverStyle[cmds]{name}{white top}{white bot}{black top}{black bot}#*
\cbDefinePgfFieldStyle{name}{definition}#*
\cbDefinePgfRegionStyle{name}{definition}#*
\cbDefinePgfMoveStyle{name}{definition}#*
\cbDefineNewPiece{color}{char}{on white}{on black}#*
\cbDefineNewPiece[game]{color}{char}{on white}{on black}#*
\printarea#*
\board#*
\currentbk#*
\currentbq#*
\currentwk#*
\currentwq#*