| 1 |
%<*chessboard> |
| 2 |
\NeedsTeXFormat{LaTeX2e} |
| 3 |
\ProvidesPackage{chessboard}[2024/11/07 version v2.0 print chessboards] |
| 4 |
|
| 5 |
%1.4: Changed to restore style key |
| 6 |
%1.5: corrected values for mover key (w/b instead of w/s) |
| 7 |
%1.6: corrected bug in \board@do@getpiecelists (def instead of xdef) |
| 8 |
% 14.3.2011: added \normallineskip=1pt\relax\normallineskiplimit=0pt\relax |
| 9 |
% (default latex values). |
| 10 |
% to avoid bad spacing in amsart.cls (see tex.stackexchange discussion) |
| 11 |
% 1.9. corrected area code, lists not always correctly processed |
| 12 |
\DeclareOption{skaknew}{}% |
| 13 |
\ProcessOptions |
| 14 |
|
| 15 |
\ifx\eTeXversion\@undefined |
| 16 |
\PackageError{chessboard} |
| 17 |
{This package may only be run using an\MessageBreak |
| 18 |
etex in extended mode} |
| 19 |
{Perhaps you forgot the `*' when making the format with (e)initex.} |
| 20 |
\fi |
| 21 |
|
| 22 |
\ifnum\eTeXversion<2 |
| 23 |
\PackageError{chessboard} |
| 24 |
{This package requires e-TeX V 2} |
| 25 |
{You are probably using the obsolete e-TeX V 1.} |
| 26 |
\fi |
| 27 |
|
| 28 |
\RequirePackage{chessfss}[2006/03/31] |
| 29 |
|
| 30 |
|
| 31 |
\RequirePackage{xkeyval}% |
| 32 |
\RequirePackage{xifthen}% |
| 33 |
\RequirePackage{ifpdf}% |
| 34 |
\RequirePackage{tikz}% |
| 35 |
\usepgfmodule{shapes} |
| 36 |
\ifpdf\else |
| 37 |
\RequirePackage{pst-node}% |
| 38 |
\fi |
| 39 |
\RequirePackage{etoolbox} |
| 40 |
%%%%%%% |
| 41 |
%% naming conventions |
| 42 |
%%%%%%% |
| 43 |
%% internal commands start with board@ |
| 44 |
%% counters starts with cnt@board |
| 45 |
%% length starts with len@board |
| 46 |
%% xkeyval commands gets the prefix UFCB (for chess key) |
| 47 |
%% and the families gloinit/locinit, gloset/locset or glofill/locfill |
| 48 |
%% ARGEND is used to end/delimiters inputs |
| 49 |
%%%%%%%% |
| 50 |
|
| 51 |
%%%% |
| 52 |
%% New lengths |
| 53 |
%%% |
| 54 |
|
| 55 |
\newlength\len@board@tempx |
| 56 |
\newlength\len@board@tempy |
| 57 |
|
| 58 |
\newcommand\board@do@getsquaresize[1]{%#1=game |
| 59 |
\cfss@getsquaresize{\csname board@#1@refpiece\endcsname}} |
| 60 |
|
| 61 |
\newcommand\board@do@globalgetsquaresize[1]{%#1=game |
| 62 |
\cfss@globalgetsquaresize{\csname board@#1@refpiece\endcsname}} |
| 63 |
|
| 64 |
%% \settowidth{\global\len@cfss@squarewidth}{\csname board@#1@refpiece\endcsname}% |
| 65 |
%% \settodepth{\global\len@cfss@squaredepth}{\csname board@#1@refpiece\endcsname}% |
| 66 |
%% \settoheight{\global\len@cfss@squaretotalheight}{\raisebox{\depth}{\csname board@#1@refpiece\endcsname}}}% |
| 67 |
%% |
| 68 |
|
| 69 |
%%% |
| 70 |
%% New counters |
| 71 |
%%% |
| 72 |
|
| 73 |
%% counters for interating throught files and ranks |
| 74 |
%% Temporary counters, never rely on a value when not set at the start of the loop/command! |
| 75 |
\newcounter{cnt@board@file}% |
| 76 |
\newcounter{cnt@board@rank}% |
| 77 |
\newcounter{cnt@board}% |
| 78 |
|
| 79 |
%% User counters for printing the file and rank numbers. |
| 80 |
\newcounter{filelabel}% |
| 81 |
\renewcommand\thefilelabel{\alph{filelabel}}% |
| 82 |
\newcounter{ranklabel}% |
| 83 |
\renewcommand\theranklabel{\arabic{ranklabel}} |
| 84 |
|
| 85 |
%%%%% |
| 86 |
%% various tools |
| 87 |
%%%%% |
| 88 |
|
| 89 |
%% New setkeys command for inner keys, stolen from xkeyval.tex |
| 90 |
|
| 91 |
\def\board@do@setsinglekeys{\XKV@testopta{\XKV@testoptc\board@XKVsetsinglekeys}}% |
| 92 |
\def\board@XKVsetsinglekeys[#1]#2{% |
| 93 |
\XKV@checksanitizea{#2}\XKV@resb |
| 94 |
\let\XKV@naa\@empty |
| 95 |
\XKV@for@o\XKV@resb\XKV@tempa{% |
| 96 |
\expandafter\XKV@g@tkeyname\XKV@tempa=\@nil\XKV@tempa |
| 97 |
\XKV@addtolist@x\XKV@naa\XKV@tempa}% |
| 98 |
\expandafter\XKV@s@tkeys\expandafter{\XKV@resb}{#1}}% |
| 99 |
|
| 100 |
|
| 101 |
\newcommand\board@do@setsavedkey[2]{%#1 = argument (so that it can be better expanded) |
| 102 |
% #2=key |
| 103 |
\board@do@setsinglekeys*[UFCB]{locfill}{#2=#1}}% |
| 104 |
|
| 105 |
%%% local addto |
| 106 |
|
| 107 |
\newcommand{\board@do@l@addto@macro}[2]{% |
| 108 |
\edef#1{\unexpanded\expandafter{#1#2}}} |
| 109 |
|
| 110 |
%%% alphabetic numbering with zero, adapted from latex.ltx |
| 111 |
|
| 112 |
\newcommand\zeroalph{} |
| 113 |
|
| 114 |
\def\zeroalph#1{\expandafter\@zeroalph\csname c@#1\endcsname}% |
| 115 |
|
| 116 |
\def\@zeroalph#1{% |
| 117 |
\ifcase#1Z\or a\or b\or c\or d\or e\or f\or g\or h\or i\or j\or |
| 118 |
k\or l\or m\or n\or o\or p\or q\or r\or s\or t\or u\or v\or w\or x\or |
| 119 |
y\or z\else\@ctrerr\fi}% |
| 120 |
|
| 121 |
%% expanded @namedef |
| 122 |
\def\board@enamedef#1{\expandafter\edef\csname #1\endcsname}% |
| 123 |
|
| 124 |
%% new tests |
| 125 |
|
| 126 |
\newtest{\board@test@isonactivecolor}[2]{%filenr, ranknr b2={2}{2} |
| 127 |
\(\board@test@iswhitefield{#1}{#2} |
| 128 |
\AND |
| 129 |
\boolean{UFCB@locfill@useonwhite}\) |
| 130 |
\OR |
| 131 |
\( |
| 132 |
\(\NOT\board@test@iswhitefield{#1}{#2}\) |
| 133 |
\AND |
| 134 |
\boolean{UFCB@locfill@useonblack}\)} |
| 135 |
|
| 136 |
\newtest{\board@test@iswhitefield}[2]{%filenr, ranknr b2={2}{2} |
| 137 |
\isodd{\number\numexpr #1+#2\relax}} |
| 138 |
|
| 139 |
\newtest{\board@test@isfieldintrimarea}[2]{%%filenr, ranknr |
| 140 |
\NOT \(#1<\board@val@starttrimfilenum\) \AND |
| 141 |
\NOT \(#1>\board@val@stoptrimfilenum\) \AND |
| 142 |
\NOT \(#2>\board@val@starttrimranknum\) \AND |
| 143 |
\NOT \(#2<\board@val@stoptrimranknum\)} |
| 144 |
|
| 145 |
\newtest{\board@test@isareaintrimarea}[4]{%%startfilenr, ranknr |
| 146 |
%%stopfilenr, ranknr |
| 147 |
\NOT \(#1<\board@val@starttrimfilenum\) \AND |
| 148 |
\NOT \(#3>\board@val@stoptrimfilenum\) \AND |
| 149 |
\NOT \(#2>\board@val@starttrimranknum\) \AND |
| 150 |
\NOT \(#4<\board@val@stoptrimranknum\)} |
| 151 |
|
| 152 |
%%%%% |
| 153 |
%% converting commands |
| 154 |
%%%%% |
| 155 |
|
| 156 |
%%% command to get a (input) char from a number |
| 157 |
\newcommand*\board@conv@numbertochar[1]{{\uccode`!=#1\relax\uppercase{\gdef\board@temp@char{!}}}}% |
| 158 |
|
| 159 |
%% converts a filechar to a number and stores the value in counter #2 |
| 160 |
%% in simple case use \number `#1 |
| 161 |
\newcommand*\board@conv@filechartonumber[2]{% |
| 162 |
\setcounter{#2}{\number`#1 }% |
| 163 |
\ifthenelse |
| 164 |
{\value{#2} = 90}% |
| 165 |
% char =Z |
| 166 |
{\addtocounter{#2}{-90}}% |
| 167 |
{\ifthenelse |
| 168 |
{\value{#2} >96 \AND \value{#2} <123}% |
| 169 |
%char a-z |
| 170 |
{\addtocounter{#2}{-96}}% |
| 171 |
{\PackageError{chessboard}% |
| 172 |
{Wrong field input}% |
| 173 |
{chars for files should be Z (for zero) or between a-z}}}}% |
| 174 |
|
| 175 |
%% converts a char to the lower case (to set white and black pieces) |
| 176 |
\newcommand*\board@conv@chartolowerchar[1]{% #1 char |
| 177 |
\setcounter{cnt@board}{\number`#1 }% |
| 178 |
\ifthenelse |
| 179 |
{\value{cnt@board} > 64 \AND \value{cnt@board} < 91}% |
| 180 |
% char between A-Z |
| 181 |
{\addtocounter{cnt@board}{+32}% |
| 182 |
\board@conv@numbertochar{\the\c@cnt@board}}% |
| 183 |
{\def\board@temp@char{#1}}}% |
| 184 |
|
| 185 |
%% converts a char to the upper case (to set white and black pieces) |
| 186 |
\newcommand*\board@conv@chartoupperchar[1]{% #1 char, |
| 187 |
\setcounter{cnt@board}{\number`#1 }% |
| 188 |
\ifthenelse |
| 189 |
{\value{cnt@board} > 96 \AND \value{cnt@board} < 123}% |
| 190 |
% char between a-z |
| 191 |
{\addtocounter{cnt@board}{-32}% |
| 192 |
\board@conv@numbertochar{\the\c@cnt@board}}% |
| 193 |
{\def\board@temp@char{#1}}}% |
| 194 |
|
| 195 |
%%%%% |
| 196 |
%% splitting commands |
| 197 |
%%%%% |
| 198 |
|
| 199 |
%% split piece positions like Ka1, Qb3 or Rz20: |
| 200 |
%% use as \board@split@pieceposition Ka10ARGEND |
| 201 |
\def\board@split@pieceposition#1#2#3ARGEND{% |
| 202 |
\edef\board@temp@curpiece{#1}% |
| 203 |
\edef\board@temp@curfilechar{#2}% |
| 204 |
\edef\board@temp@curranknum{\number#3}% |
| 205 |
\board@conv@filechartonumber{#2}{cnt@board}% |
| 206 |
\edef\board@temp@curfilenum{\the\value{cnt@board}}}% |
| 207 |
|
| 208 |
%% split fields like a1, b3 or z20: |
| 209 |
%% use as \board@split@field a1ARGEND |
| 210 |
\def\board@split@field#1#2ARGEND{% |
| 211 |
\edef\board@temp@curfilechar{#1}% |
| 212 |
\edef\board@temp@curranknum{\number#2}% |
| 213 |
\board@conv@filechartonumber{#1}{cnt@board}% |
| 214 |
\edef\board@temp@curfilenum{\the\value{cnt@board}}}% |
| 215 |
|
| 216 |
%% split area like a1-b3 |
| 217 |
\def\board@split@area#1-#2ARGEND{% |
| 218 |
\expandafter\board@split@field#1ARGEND% |
| 219 |
\let\board@temp@curstartfilenum\board@temp@curfilenum |
| 220 |
\let\board@temp@curstartranknum\board@temp@curranknum |
| 221 |
\let\board@temp@curstartfilechar\board@temp@curfilechar |
| 222 |
\edef\board@temp@curstartfield{\board@temp@curstartfilechar\board@temp@curstartranknum}% |
| 223 |
\expandafter\board@split@field#2ARGEND% |
| 224 |
\let\board@temp@curstopfilenum\board@temp@curfilenum |
| 225 |
\let\board@temp@curstopranknum\board@temp@curranknum% |
| 226 |
\let\board@temp@curstopfilechar\board@temp@curfilechar |
| 227 |
\edef\board@temp@curstopfield{\board@temp@curstopfilechar\board@temp@curstopranknum}% |
| 228 |
}% |
| 229 |
|
| 230 |
%% split and sorts areas like a1-b3 |
| 231 |
\def\board@split@areasort#1-#2ARGEND{% |
| 232 |
\expandafter\board@split@field#1ARGEND% |
| 233 |
\let\board@temp@curstartfilenum\board@temp@curfilenum |
| 234 |
\let\board@temp@curstartranknum\board@temp@curranknum |
| 235 |
\let\board@temp@curstartfilechar\board@temp@curfilechar |
| 236 |
\expandafter\board@split@field#2ARGEND% |
| 237 |
\ifthenelse% |
| 238 |
{\board@temp@curstartfilenum<\board@temp@curfilenum}% |
| 239 |
{\let\board@temp@curstopfilenum\board@temp@curfilenum |
| 240 |
\let\board@temp@curstopfilechar\board@temp@curfilechar}% |
| 241 |
{\let\board@temp@curstopfilenum\board@temp@curstartfilenum |
| 242 |
\let\board@temp@curstopfilechar\board@temp@curstartfilechar |
| 243 |
\let\board@temp@curstartfilenum\board@temp@curfilenum |
| 244 |
\let\board@temp@curstartfilechar\board@temp@curfilechar}% |
| 245 |
\ifthenelse% |
| 246 |
{\board@temp@curstartranknum>\board@temp@curranknum}% |
| 247 |
{\let\board@temp@curstopranknum\board@temp@curranknum}% |
| 248 |
{\let\board@temp@curstopranknum\board@temp@curstartranknum |
| 249 |
\let\board@temp@curstartranknum\board@temp@curranknum}% |
| 250 |
\edef\board@temp@curstartfield{\board@temp@curstartfilechar\board@temp@curstartranknum}% |
| 251 |
\edef\board@temp@curstopfield{\board@temp@curstopfilechar\board@temp@curstopranknum}% |
| 252 |
}% |
| 253 |
|
| 254 |
\newcommand\board@do@cliparea[1]{% |
| 255 |
\expandafter\board@split@areasort#1ARGEND% |
| 256 |
\ifthenelse% |
| 257 |
{\board@temp@curstartfilenum<\board@val@startprintfilenum}% |
| 258 |
{\let\board@temp@curstartfilechar\board@val@startprintfilechar% |
| 259 |
\let\board@temp@curstartfilenum\board@val@startprintfilenum}% |
| 260 |
{}% |
| 261 |
\ifthenelse% |
| 262 |
{\board@temp@curstartranknum>\board@val@startprintranknum}% |
| 263 |
{\let\board@temp@curstartranknum\board@val@startprintranknum}% |
| 264 |
{}% |
| 265 |
\ifthenelse% |
| 266 |
{\board@temp@curstopranknum<\board@val@stopprintranknum}% |
| 267 |
{\let\board@temp@curstopranknum\board@val@stopprintranknum}% |
| 268 |
{}% |
| 269 |
\ifthenelse% |
| 270 |
{\board@temp@curstopfilenum>\board@val@stopprintfilenum}% |
| 271 |
{\let\board@temp@curstopfilechar\board@val@stopprintfilechar |
| 272 |
\let\board@temp@curstopfilenum\board@val@stopprintfilenum}% |
| 273 |
{}% |
| 274 |
\ifthenelse{\board@temp@curstopfilenum<\board@temp@curstartfilenum}% |
| 275 |
{\edef\board@temp@curcliparea{}}% |
| 276 |
{\ifthenelse{\board@temp@curstartranknum<\board@temp@curstopranknum}% |
| 277 |
{\edef\board@temp@curcliparea{}}% |
| 278 |
{\edef\board@temp@curcliparea{% |
| 279 |
\board@temp@curstartfilechar\board@temp@curstartranknum-% |
| 280 |
\board@temp@curstopfilechar\board@temp@curstopranknum}}}} |
| 281 |
|
| 282 |
%%% Making lists |
| 283 |
|
| 284 |
\newcommand\board@do@getfieldcolorlists{% |
| 285 |
\setcounter{cnt@board@file}{\board@val@startprintfilenum}% |
| 286 |
\def\board@val@blackfieldlist{}% |
| 287 |
\def\board@val@whitefieldlist{}% |
| 288 |
\whiledo% |
| 289 |
{\value{cnt@board@file}< \numexpr\board@val@stopprintfilenum+1\relax}% |
| 290 |
{\setcounter{cnt@board@rank}{\board@val@stopprintranknum}% |
| 291 |
\whiledo% |
| 292 |
{\value{cnt@board@rank}<\numexpr\board@val@startprintranknum + 1\relax}% |
| 293 |
{\setcounter{cnt@board}{\numexpr \the\c@cnt@board@file+\the\c@cnt@board@rank\relax}% |
| 294 |
\ifthenelse% |
| 295 |
{\isodd{\value{cnt@board}}} |
| 296 |
{\ifthenelse% |
| 297 |
{\equal{\board@val@whitefieldlist}{}}% |
| 298 |
{\edef\board@val@whitefieldlist{\zeroalph{cnt@board@file}\number\value{cnt@board@rank}}}% |
| 299 |
{\edef\board@temp@curfield{\zeroalph{cnt@board@file}\number\value{cnt@board@rank}}% |
| 300 |
\expandafter\board@do@l@addto@macro\expandafter\board@val@whitefieldlist\expandafter{\expandafter,\board@temp@curfield}}}% |
| 301 |
{\ifthenelse% |
| 302 |
{\equal{\board@val@blackfieldlist}{}}% |
| 303 |
{\edef\board@val@blackfieldlist{\zeroalph{cnt@board@file}\number\value{cnt@board@rank}}}% |
| 304 |
{\edef\board@temp@curfield{\zeroalph{cnt@board@file}\number\value{cnt@board@rank}}% |
| 305 |
\expandafter\board@do@l@addto@macro\expandafter\board@val@blackfieldlist\expandafter{\expandafter,\board@temp@curfield}}}% |
| 306 |
\addtocounter{cnt@board@rank}{1}}% |
| 307 |
\addtocounter{cnt@board@file}{1}}}% |
| 308 |
|
| 309 |
%% getting the list of fields where pieces resides |
| 310 |
%% added 2007-12-11, version 1.5. |
| 311 |
%% the piecelists are stored in cblist<english! char of piece> |
| 312 |
|
| 313 |
\newcommand\board@do@getpiecelists{% |
| 314 |
\setcounter{cnt@board@file}{\board@val@minfilenum}% |
| 315 |
\setcounter{cnt@board@rank}{\board@val@minranknum}% |
| 316 |
\edef\board@temp@curlist{% |
| 317 |
\csname board@\board@val@game @piececharlist\endcsname}% |
| 318 |
\@for\board@temp@piecechar:=\board@temp@curlist |
| 319 |
\do {% |
| 320 |
\expandafter\xdef\csname cblist\board@temp@piecechar\endcsname{}% |
| 321 |
\expandafter\xdef\csname board@temp@\board@temp@piecechar @comma\endcsname{}}% |
| 322 |
\xdef\cblistempty{}% |
| 323 |
\def\board@temp@empty@comma{}% |
| 324 |
\whiledo |
| 325 |
{\value{cnt@board@file}<\numexpr \board@val@maxfilenum+1\relax}% |
| 326 |
{\whiledo |
| 327 |
{\value{cnt@board@rank}<\numexpr \board@val@maxranknum+1\relax}% |
| 328 |
{\edef\board@temp@piecechar{% |
| 329 |
\csname |
| 330 |
board@val@f\the\c@cnt@board@file r\the\c@cnt@board@rank @piecechar\endcsname}% |
| 331 |
\edef\board@temp@curlist{% |
| 332 |
\csname cblist\board@temp@piecechar\endcsname}% |
| 333 |
\edef\board@temp@comma{% |
| 334 |
\csname board@temp@\board@temp@piecechar @comma\endcsname}% |
| 335 |
\expandafter\xdef\csname cblist\board@temp@piecechar \endcsname{% |
| 336 |
\board@temp@curlist |
| 337 |
\board@temp@comma |
| 338 |
\alph{cnt@board@file}\the\c@cnt@board@rank}% |
| 339 |
\expandafter\def |
| 340 |
\csname board@temp@\board@temp@piecechar @comma\endcsname |
| 341 |
{,}% |
| 342 |
\stepcounter{cnt@board@rank}}% |
| 343 |
\setcounter{cnt@board@rank}{\board@val@minranknum}% |
| 344 |
\stepcounter{cnt@board@file}}} |
| 345 |
|
| 346 |
|
| 347 |
|
| 348 |
%%splitting an FEN in pieces, |
| 349 |
%%% use as \board@split@fen <arg>X X X X X X ARGEND |
| 350 |
%%% or as \board@split@fen <arg> X X X X X X ARGEND |
| 351 |
\def\board@split@fen#1 #2 #3 #4 #5 #6 #7ARGEND{% |
| 352 |
\def\board@val@position{#1}% |
| 353 |
\ifthenelse{\equal{#2}{X}}% |
| 354 |
{}% |
| 355 |
{\def\board@val@mover{#2}}% |
| 356 |
\ifthenelse{\equal{#3}{X}}% |
| 357 |
{}% |
| 358 |
{\def\board@val@castling{#3}}% |
| 359 |
\ifthenelse{\equal{#4}{X}}% |
| 360 |
{}% |
| 361 |
{\def\board@val@enpassant{#4}}% |
| 362 |
\ifthenelse{\equal{#5}{X}}% |
| 363 |
{}% |
| 364 |
{\def\board@val@halfmove{#5}}% |
| 365 |
\ifthenelse{\equal{#6}{X}}% |
| 366 |
{}% |
| 367 |
{\def\board@val@fullmove{#6}}% |
| 368 |
}% |
| 369 |
|
| 370 |
\input{chessboard-keys-main.sty}% |
| 371 |
\input{chessboard-keys-pgf.sty}% |
| 372 |
\input{chessboard-pgf.sty} |
| 373 |
|
| 374 |
%%% command to store the piece for a field |
| 375 |
%%% the input char of the piece is translated to english first |
| 376 |
%%% the char is stored in the command |
| 377 |
%%% board@val@f<filenum>r<ranknum>@piecechar |
| 378 |
|
| 379 |
\newcommand\board@do@storepieceonfield[3]{%#1 piece #2file #3 rank |
| 380 |
\ifcsname board@val@lang\board@val@curlang @#1\endcsname |
| 381 |
\expandafter\edef\csname board@val@f#2r#3@piecechar\endcsname{% |
| 382 |
\csname board@val@lang\board@val@curlang @#1\endcsname}% |
| 383 |
\else |
| 384 |
\PackageError{chessboard}% |
| 385 |
{Char #1 unknown in input language \board@val@curlang!}% |
| 386 |
{You either misspelled the char for the piece or forgot to define it for the current language}% |
| 387 |
\fi}% |
| 388 |
|
| 389 |
%%% Command to get the piece of a field. Don't know if needed |
| 390 |
|
| 391 |
\newcommand\board@do@getpieceoffield[2]{%#1 file, #2 rank |
| 392 |
\@nameuse{board@val@f#1r#2@piecechar}}% |
| 393 |
|
| 394 |
%%% Commands to print (or not print) the piece of a field: |
| 395 |
|
| 396 |
%%% prints an empty field |
| 397 |
\newcommand\board@do@printfieldempty[2]{%fileNr, rankNr |
| 398 |
\ifthenelse% |
| 399 |
{\board@test@iswhitefield{#1}{#2}}%white field |
| 400 |
{\@nameuse{board@\board@val@game @piece@empty@white}}% |
| 401 |
{\@nameuse{board@\board@val@game @piece@empty@black}}} |
| 402 |
|
| 403 |
%%% the command to print the content of a single field |
| 404 |
\newcommand\board@do@printfieldcontent[2]{%% 1=fileNr 2=rankNr |
| 405 |
\ifcsname board@val@f#1r#2@piecechar\endcsname |
| 406 |
\ifthenelse{\board@test@iswhitefield{#1}{#2}}%white field |
| 407 |
{\@nameuse{board@the@piece@\@nameuse{board@val@f#1r#2@piecechar}@white}}% |
| 408 |
{\@nameuse{board@the@piece@\@nameuse{board@val@f#1r#2@piecechar}@black}}% |
| 409 |
|
| 410 |
%% {\@nameuse{board@\board@val@game @piece@\@nameuse{board@val@f#1r#2@piecechar}@white}}% |
| 411 |
%% {\@nameuse{board@\board@val@game @piece@\@nameuse{board@val@f#1r#2@piecechar}@black}}% |
| 412 |
\else |
| 413 |
\board@do@printfieldempty{#1}{#2}% |
| 414 |
\fi}% |
| 415 |
|
| 416 |
%%% the command to print a fieldbox |
| 417 |
\newcommand\board@do@printfieldbox[2]{% 1=fileNr 2=rank |
| 418 |
\def\board@temp@curfilenum{#1}% |
| 419 |
\def\board@temp@curranknum{#2}% |
| 420 |
\raisebox{\len@cfss@squaredepth}[\len@cfss@squaretotalheight][0pt]{% |
| 421 |
\makebox[\len@cfss@squarewidth][r]{% |
| 422 |
%% can be used to color only the piece in fonts with masks |
| 423 |
% deleted 01.06.2006 |
| 424 |
%\def\cfss@piececolor{\csname board@val@f#1r#2@color\endcsname}% |
| 425 |
%\csname board@val@f#1r#2@color\endcsname |
| 426 |
\csname board@val@f#1r#2@emph\endcsname % eg. for color, bfseries |
| 427 |
\makebox[\len@cfss@squarewidth]{% |
| 428 |
\vphantom{\csname board@\board@val@game @refpiece\endcsname}% |
| 429 |
\ifcsname board@the@f#1r#2\endcsname |
| 430 |
\csname board@the@f#1r#2\endcsname |
| 431 |
\else |
| 432 |
\board@do@printfieldcontent{#1}{#2}% |
| 433 |
\fi}}}}% |
| 434 |
|
| 435 |
%%% command to print a rank/row from firstfile to lastfile |
| 436 |
\newcommand\board@do@printrank[3]%#1 rank/rownumber #2 firstfile, #3 lastfile |
| 437 |
{\begingroup |
| 438 |
\ifUFCB@locset@labelleft |
| 439 |
\board@do@printlabelleftfield{#1}% |
| 440 |
\fi |
| 441 |
\ifthenelse{#2<#3}% |
| 442 |
{\setcounter{cnt@board@file}{#2}%% #2<#3: 1->n/normal |
| 443 |
\whiledo% |
| 444 |
{\value{cnt@board@file}<#3 |
| 445 |
\OR |
| 446 |
\value{cnt@board@file}=#3}% |
| 447 |
{\board@do@printfieldbox{\number\value{cnt@board@file}}{#1}% |
| 448 |
\stepcounter{cnt@board@file}}}% |
| 449 |
{\setcounter{cnt@board@file}{#2}%% #2>#3 n->1/inverse |
| 450 |
\whiledo% |
| 451 |
{\value{cnt@board@file}>#3 |
| 452 |
\OR |
| 453 |
\value{cnt@board@file}=#3}% |
| 454 |
{\board@do@printfieldbox{\number\value{cnt@board@file}}{#1}% |
| 455 |
\addtocounter{cnt@board@file}{-1}}}% |
| 456 |
\ifUFCB@locset@labelright |
| 457 |
\board@do@printlabelrightfield{#1}% |
| 458 |
\fi |
| 459 |
\endgroup}% |
| 460 |
|
| 461 |
%%% command to hide /show a fields content: |
| 462 |
|
| 463 |
\newcommand*\board@do@showfield[2]{% |
| 464 |
\@namedef{board@the@f#1r#2}{\board@do@printfieldcontent{#1}{#2}}} |
| 465 |
|
| 466 |
\newcommand*\board@do@showarea[1]{% |
| 467 |
\expandafter\board@split@areasort#1ARGEND% |
| 468 |
%% initialisation |
| 469 |
\setcounter{cnt@board@file}{\board@temp@curstartfilenum}% |
| 470 |
\setcounter{cnt@board@rank}{\board@temp@curstartranknum}% |
| 471 |
% |
| 472 |
\whiledo |
| 473 |
{\value{cnt@board@rank}>\numexpr \board@temp@curstopranknum-1\relax}% |
| 474 |
{\setcounter{cnt@board@file}{\board@temp@curstartfilenum}% |
| 475 |
\whiledo |
| 476 |
{\value{cnt@board@file}<\numexpr \board@temp@curstopfilenum+1\relax}% |
| 477 |
{\board@do@showfield{\number\value{cnt@board@file}}{\number\value{cnt@board@rank}}% |
| 478 |
\addtocounter{cnt@board@file}{1}% |
| 479 |
}% |
| 480 |
\addtocounter{cnt@board@rank}{-1}}}% |
| 481 |
|
| 482 |
\newcommand*\board@do@hidefield[2]{% |
| 483 |
\@namedef{board@the@f#1r#2}{% |
| 484 |
\board@do@printfieldempty{#1}{#2}}} |
| 485 |
|
| 486 |
\newcommand*\board@do@hidearea[1]{% |
| 487 |
\expandafter\board@split@areasort#1ARGEND% |
| 488 |
%% initialisation |
| 489 |
\setcounter{cnt@board@file}{\board@temp@curstartfilenum}% |
| 490 |
\setcounter{cnt@board@rank}{\board@temp@curstartranknum}% |
| 491 |
% |
| 492 |
\whiledo |
| 493 |
{\value{cnt@board@rank}>\numexpr \board@temp@curstopranknum-1\relax}% |
| 494 |
{\setcounter{cnt@board@file}{\board@temp@curstartfilenum}% |
| 495 |
\whiledo |
| 496 |
{\value{cnt@board@file}<\numexpr \board@temp@curstopfilenum+1\relax}% |
| 497 |
{\board@do@hidefield{\number\value{cnt@board@file}}{\number\value{cnt@board@rank}}% |
| 498 |
\addtocounter{cnt@board@file}{1}% |
| 499 |
}% |
| 500 |
\addtocounter{cnt@board@rank}{-1}}}% |
| 501 |
|
| 502 |
%% Command to hide a piece type |
| 503 |
|
| 504 |
\newcommand*\board@do@hidetype[1]{% char or empty |
| 505 |
\ifthenelse% |
| 506 |
{\equal{#1}{empty}}% |
| 507 |
{\def\board@temp@char{empty}}% |
| 508 |
{\board@do@strip #1 ARGEND}% |
| 509 |
\ifcsname board@val@lang\board@val@curlang @\board@temp@char\endcsname |
| 510 |
\edef\board@temp@curpiece{% |
| 511 |
\csname board@val@lang\board@val@curlang @\board@temp@char\endcsname}% |
| 512 |
\else |
| 513 |
\PackageError{chessboard}% |
| 514 |
{Char #1 unknown in input language \board@val@curlang!}% |
| 515 |
{You either misspelled the char for the piece or forgot to define it for the current language}% |
| 516 |
\fi |
| 517 |
\@namedef{board@the@piece@\board@temp@curpiece @white}{% |
| 518 |
\@nameuse{board@\board@val@game @piece@empty@white}}% |
| 519 |
\@namedef{board@the@piece@\board@temp@curpiece @black}{% |
| 520 |
\@nameuse{board@\board@val@game @piece@empty@black}}}% |
| 521 |
|
| 522 |
\newcommand*\board@do@hidetypelist[1]{% charlist |
| 523 |
\@for\board@temp@char:=#1\do |
| 524 |
{\expandafter\board@do@hidetype\expandafter{\board@temp@char}}} |
| 525 |
|
| 526 |
%% Command to show a piece type |
| 527 |
|
| 528 |
\def\board@do@strip #1#2ARGEND{\def\board@temp@char{#1}} |
| 529 |
|
| 530 |
\newcommand*\board@do@showtype[1]{% char or empty |
| 531 |
\ifthenelse% |
| 532 |
{\equal{#1}{empty}}% |
| 533 |
{\def\board@temp@char{empty}}% |
| 534 |
{\board@do@strip #1 ARGEND}% |
| 535 |
\ifcsname board@val@lang\board@val@curlang @\board@temp@char\endcsname |
| 536 |
\edef\board@temp@curpiece{% |
| 537 |
\csname board@val@lang\board@val@curlang @\board@temp@char\endcsname}% |
| 538 |
\else |
| 539 |
\PackageError{chessboard}% |
| 540 |
{Char #1 unknown in input language \board@val@curlang!}% |
| 541 |
{You either misspelled the char for the piece or forgot to define it for the current language}% |
| 542 |
\fi |
| 543 |
\board@enamedef{board@the@piece@\board@temp@curpiece @white}{% |
| 544 |
\noexpand\@nameuse{board@\noexpand\board@val@game @piece@\board@temp@curpiece @white}}% |
| 545 |
\board@enamedef{board@the@piece@\board@temp@curpiece @black}{% |
| 546 |
\noexpand\@nameuse{board@\noexpand\board@val@game @piece@\board@temp@curpiece @black}}}% |
| 547 |
|
| 548 |
\newcommand*\board@do@showtypelist[1]{% charlist |
| 549 |
\@for\board@temp@char:=#1\do |
| 550 |
{\expandafter\board@do@showtype\expandafter{\board@temp@char}}} |
| 551 |
|
| 552 |
%%% Clear area |
| 553 |
|
| 554 |
\newcommand\board@do@cleararea[1]{% |
| 555 |
\expandafter\board@split@areasort#1ARGEND% |
| 556 |
%% initialisation |
| 557 |
\setcounter{cnt@board@file}{\board@temp@curstartfilenum}% |
| 558 |
\setcounter{cnt@board@rank}{\board@temp@curstartranknum}% |
| 559 |
% |
| 560 |
\whiledo |
| 561 |
{\value{cnt@board@rank}>\numexpr \board@temp@curstopranknum-1\relax}% |
| 562 |
{\setcounter{cnt@board@file}{\board@temp@curstartfilenum}% |
| 563 |
\whiledo |
| 564 |
{\value{cnt@board@file}<\numexpr \board@temp@curstopfilenum+1\relax}% |
| 565 |
{\board@do@storepieceonfield{empty}{\number\value{cnt@board@file}}{\number\value{cnt@board@rank}}% |
| 566 |
\addtocounter{cnt@board@file}{1}}% |
| 567 |
\addtocounter{cnt@board@rank}{-1}}}% |
| 568 |
|
| 569 |
%%%%%% |
| 570 |
%% Scanning a FEN (only the first part) to set the fields |
| 571 |
%%%%%% |
| 572 |
|
| 573 |
\def\@usenone@until@nil#1\@nil{}% |
| 574 |
|
| 575 |
\newcommand\board@scan@fen[1]{% |
| 576 |
\setcounter{cnt@board@rank}{\board@val@startfenranknum}% |
| 577 |
\setcounter{cnt@board@file}{\board@val@startfenfilenum}% |
| 578 |
\expandafter\board@scan@fennext#1\relax\@nil}% |
| 579 |
|
| 580 |
\newcommand\board@scan@fennext[1]{% |
| 581 |
\ifx#1\relax \expandafter\@usenone@until@nil \fi |
| 582 |
\afterassignment\board@fork@feninput\count@ 0#1}% |
| 583 |
|
| 584 |
\newcommand\board@fork@feninput{% |
| 585 |
\ifnum\count@=\z@ |
| 586 |
\expandafter\board@do@process@fenchar |
| 587 |
\else |
| 588 |
\expandafter\board@do@process@fennumber |
| 589 |
\fi}% |
| 590 |
|
| 591 |
\newcommand\board@do@process@fennumber{% |
| 592 |
\whiledo% |
| 593 |
{\the\count@>0}% |
| 594 |
{\ifthenelse% |
| 595 |
{\(\value{cnt@board@file}>\board@val@startfillfilenum |
| 596 |
\OR |
| 597 |
\value{cnt@board@file}=\board@val@startfillfilenum\) |
| 598 |
\AND |
| 599 |
\(\value{cnt@board@file}<\board@val@stopfillfilenum |
| 600 |
\OR |
| 601 |
\value{cnt@board@file}=\board@val@stopfillfilenum\) |
| 602 |
\AND |
| 603 |
\(\value{cnt@board@rank}<\board@val@startfillranknum |
| 604 |
\OR |
| 605 |
\value{cnt@board@rank}=\board@val@startfillranknum\) |
| 606 |
\AND |
| 607 |
\(\value{cnt@board@rank}>\board@val@stopfillranknum |
| 608 |
\OR |
| 609 |
\value{cnt@board@rank}=\board@val@stopfillranknum\)} |
| 610 |
{\board@do@storepieceonfield{empty}{\the\value{cnt@board@file}}{\the\value{cnt@board@rank}}}% |
| 611 |
{}% |
| 612 |
\addtocounter{cnt@board@file}{1}% |
| 613 |
\advance\count@-1\relax}% |
| 614 |
\board@scan@fennext}% |
| 615 |
|
| 616 |
\newcommand\board@do@process@fenchar[1]{% |
| 617 |
\ifthenelse% |
| 618 |
{\equal{#1}{/}}% |
| 619 |
{\setcounter{cnt@board@file}{\board@val@startfenfilenum}% new row |
| 620 |
\addtocounter{cnt@board@rank}{-1}}% |
| 621 |
{\ifthenelse% |
| 622 |
%{\value{cnt@board@file}>\board@val@stopfillfilenum}% |
| 623 |
{\(\value{cnt@board@file}>\board@val@startfillfilenum |
| 624 |
\OR |
| 625 |
\value{cnt@board@file}=\board@val@startfillfilenum\) |
| 626 |
\AND |
| 627 |
\(\value{cnt@board@file}<\board@val@stopfillfilenum |
| 628 |
\OR |
| 629 |
\value{cnt@board@file}=\board@val@stopfillfilenum\) |
| 630 |
\AND |
| 631 |
\(\value{cnt@board@rank}<\board@val@startfillranknum |
| 632 |
\OR |
| 633 |
\value{cnt@board@rank}=\board@val@startfillranknum\) |
| 634 |
\AND |
| 635 |
\(\value{cnt@board@rank}>\board@val@stopfillranknum |
| 636 |
\OR |
| 637 |
\value{cnt@board@rank}=\board@val@stopfillranknum\)} |
| 638 |
% |
| 639 |
{\board@do@storepieceonfield{#1}{\the\value{cnt@board@file}}{\the\value{cnt@board@rank}}% |
| 640 |
\addtocounter{cnt@board@file}{1}}% |
| 641 |
{\addtocounter{cnt@board@file}{1}}% |
| 642 |
}% |
| 643 |
\board@scan@fennext}% |
| 644 |
|
| 645 |
%%% Command to add pieces |
| 646 |
|
| 647 |
\newcommand\board@do@addpieces[1]{% List |
| 648 |
\@for\board@temp@curpiecepos:=#1\do |
| 649 |
{\expandafter\board@split@pieceposition\board@temp@curpiecepos ARGEND% |
| 650 |
\board@do@storepieceonfield{\board@temp@curpiece}{\board@temp@curfilenum}{\board@temp@curranknum}}}% |
| 651 |
|
| 652 |
\newcommand\board@do@addwhitepieces[1]{% List |
| 653 |
\@for\board@temp@curpiecepos:=#1\do |
| 654 |
{\expandafter\board@split@pieceposition\board@temp@curpiecepos ARGEND% |
| 655 |
\expandafter\board@conv@chartoupperchar\board@temp@curpiece |
| 656 |
\board@do@storepieceonfield{\board@temp@char}{\board@temp@curfilenum}{\board@temp@curranknum}}}% |
| 657 |
|
| 658 |
\newcommand\board@do@addblackpieces[1]{% List |
| 659 |
\@for\board@temp@curpiecepos:=#1\do |
| 660 |
{\expandafter\board@split@pieceposition\board@temp@curpiecepos ARGEND% |
| 661 |
\expandafter\board@conv@chartolowerchar\board@temp@curpiece |
| 662 |
\board@do@storepieceonfield{\board@temp@char}{\board@temp@curfilenum}{\board@temp@curranknum}}}% |
| 663 |
|
| 664 |
%%% Command to save fen |
| 665 |
|
| 666 |
%%% goes through board and get the fen description of the position |
| 667 |
|
| 668 |
\newcommand*\board@do@getposition{% |
| 669 |
\setcounter{cnt@board@rank}{\board@val@startstoreranknum}% |
| 670 |
\board@do@getrankposition{\value{cnt@board@rank}}% |
| 671 |
\edef\board@val@position{\board@temp@currankposition}% |
| 672 |
\whiledo% |
| 673 |
{\value{cnt@board@rank}>\numexpr \board@val@stopstoreranknum\relax}% |
| 674 |
{\addtocounter{cnt@board@rank}{-1}% |
| 675 |
\board@do@getrankposition{\value{cnt@board@rank}}% |
| 676 |
\edef\board@val@position{\board@val@position/\board@temp@currankposition}}}% |
| 677 |
|
| 678 |
\newcommand*\board@do@getrankposition[1]{% |
| 679 |
\setcounter{cnt@board@file}{\board@val@startstorefilenum}% |
| 680 |
\setcounter{cnt@board}{0}% |
| 681 |
\edef\board@temp@currankposition{}% |
| 682 |
\whiledo% |
| 683 |
{\value{cnt@board@file}<\numexpr \board@val@stopstorefilenum+1\relax}% |
| 684 |
{\ifthenelse% |
| 685 |
{\equal{\csname board@val@f\the\c@cnt@board@file r#1@piecechar\endcsname}{empty}}% |
| 686 |
{\stepcounter{cnt@board}}% |
| 687 |
{\ifthenelse% |
| 688 |
{\value{cnt@board}>0}% |
| 689 |
{\edef\board@temp@currankposition{% |
| 690 |
\board@temp@currankposition |
| 691 |
\number\value{cnt@board}% |
| 692 |
\csname board@val@f\the\c@cnt@board@file r\the\c@cnt@board@rank @piecechar\endcsname}% |
| 693 |
\setcounter{cnt@board}{0}}% |
| 694 |
{\edef\board@temp@currankposition{% |
| 695 |
\board@temp@currankposition |
| 696 |
\csname board@val@f\the\c@cnt@board@file r\the\c@cnt@board@rank @piecechar\endcsname}}}% |
| 697 |
\addtocounter{cnt@board@file}{1}}% |
| 698 |
\ifthenelse% |
| 699 |
{\value{cnt@board}>0}% |
| 700 |
{\edef\board@temp@currankposition{% |
| 701 |
\board@temp@currankposition |
| 702 |
\number\value{cnt@board}}}% |
| 703 |
{}}% |
| 704 |
|
| 705 |
%% stores the fen in chessgame.<name> (as in skak.sty the \storegame command |
| 706 |
|
| 707 |
\newcommand*\board@do@storefen[1]{% |
| 708 |
\def\board@temp@curfen{}% |
| 709 |
\board@do@getposition |
| 710 |
\edef\board@temp@curfen{\board@val@position\space |
| 711 |
\board@val@mover\space |
| 712 |
\board@val@castling\space |
| 713 |
\board@val@enpassant\space |
| 714 |
\board@val@halfmove\space |
| 715 |
\board@val@fullmove}% |
| 716 |
\expandafter\xdef\csname chessgame.#1\endcsname{\board@temp@curfen}}% |
| 717 |
|
| 718 |
%% stores the fen in a file, as in skak.sty the \savegame command |
| 719 |
\newcommand*\board@do@savefen[1]{% |
| 720 |
\def\board@temp@curfen{}% |
| 721 |
\board@do@getposition |
| 722 |
\edef\board@temp@curfen{\board@val@position\space |
| 723 |
\board@val@mover\space |
| 724 |
\board@val@castling\space |
| 725 |
\board@val@enpassant\space |
| 726 |
\board@val@halfmove\space |
| 727 |
\board@val@fullmove}% |
| 728 |
\toks0=\expandafter{\board@temp@curfen}% |
| 729 |
\immediate\openout0=#1.fen% |
| 730 |
\immediate\write0{\the\toks0}% |
| 731 |
\immediate\closeout0}% |
| 732 |
|
| 733 |
\newcommand*\board@do@loadfen[1]{% |
| 734 |
\immediate\openin0=#1.fen\relax |
| 735 |
\ifeof0 |
| 736 |
\PackageError{chessboard}{File #1.fen not found}{}% |
| 737 |
\else |
| 738 |
\immediate\read0 to \board@temp@curfen% |
| 739 |
\fi |
| 740 |
\immediate\closein0\relax} |
| 741 |
|
| 742 |
%%%% |
| 743 |
%% Decoration |
| 744 |
%%%% |
| 745 |
|
| 746 |
%%% the command to print the mover |
| 747 |
|
| 748 |
\newcommand\board@do@printtopmover{% |
| 749 |
\raisebox% |
| 750 |
{\dimexpr |
| 751 |
\numexpr\board@val@startprintranknum-\board@val@stopprintranknum+1\relax\len@cfss@squaretotalheight |
| 752 |
-\board@val@movertoplift |
| 753 |
-\height |
| 754 |
\relax}[0pt][0pt]% |
| 755 |
{\makebox[0pt][l]{% |
| 756 |
\hspace*{\board@val@movertopshift}% |
| 757 |
\fontsize{\board@val@moversize}{\board@val@moversize}\selectfont |
| 758 |
\ifthenelse% |
| 759 |
{\equal{\board@val@mover}{w}}% |
| 760 |
{\ifUFCB@locset@inverse |
| 761 |
\board@val@moverwhitetop |
| 762 |
\fi}% |
| 763 |
{\ifUFCB@locset@inverse\else |
| 764 |
\board@val@moverblacktop |
| 765 |
\fi}}}}% |
| 766 |
|
| 767 |
\newcommand\board@do@printbottommover{%#1=color} |
| 768 |
\raisebox% |
| 769 |
{\board@val@moverbottomlift}[0pt][0pt]% |
| 770 |
{\makebox[0pt][l]{% |
| 771 |
\hspace*{\board@val@moverbottomshift}% |
| 772 |
\fontsize{\board@val@moversize}{\board@val@moversize}\selectfont |
| 773 |
\ifthenelse% |
| 774 |
{\equal{\board@val@mover}{w}}% |
| 775 |
{\ifUFCB@locset@inverse |
| 776 |
\else |
| 777 |
\board@val@moverwhitebottom |
| 778 |
\fi}% |
| 779 |
{\ifUFCB@locset@inverse |
| 780 |
\board@val@moverblackbottom |
| 781 |
\fi}}}}% |
| 782 |
|
| 783 |
\newcommand\cbDefineMoverStyle[6][]{% |
| 784 |
% #1 can be used for checks |
| 785 |
%#2name, #3=white top, #4=white bottom, #5=black top, #6=black bottom |
| 786 |
\@namedef{board@val@moverstyle@#2}{% |
| 787 |
#1\relax |
| 788 |
\def\board@val@moverwhitetop{#3}% |
| 789 |
\def\board@val@moverwhitebottom{#4}% |
| 790 |
\def\board@val@moverblacktop{#5}% |
| 791 |
\def\board@val@moverblackbottom{#6}}}% |
| 792 |
|
| 793 |
\cbDefineMoverStyle% |
| 794 |
{circle} |
| 795 |
{$\circ$} |
| 796 |
{$\circ$} |
| 797 |
{$\bullet$} |
| 798 |
{$\bullet$} |
| 799 |
|
| 800 |
\cbDefineMoverStyle% |
| 801 |
{square} |
| 802 |
{\tikz \draw[color=black] (0,0) rectangle (0.65em,0.65em);} |
| 803 |
{\tikz \draw[color=black] (0,0) rectangle (0.65em,0.65em);} |
| 804 |
{\tikz \fill[color=black] (0,0) rectangle (0.65em,0.65em);} |
| 805 |
{\tikz \fill[color=black] (0,0) rectangle (0.65em,0.65em);} |
| 806 |
|
| 807 |
\cbDefineMoverStyle% |
| 808 |
{triangle} |
| 809 |
{\tikz \draw[color=black] (0.6ex,0pt)--(0,1.25ex)--(1.2ex,1.25ex) --cycle;} |
| 810 |
{\tikz \draw[color=black] (0.6ex,1.25ex)--(0,0)--(1.2ex,0) --cycle;} |
| 811 |
{\tikz \fill[color=black] (0.6ex,0pt)--(0,1.25ex)--(1.2ex,1.25ex) --cycle;} |
| 812 |
{\tikz \fill[color=black] (0.6ex,1.25ex)--(0,0)--(1.2ex,0) --cycle;} |
| 813 |
|
| 814 |
|
| 815 |
\cbDefineMoverStyle% |
| 816 |
%#1: optional, can be used for checks |
| 817 |
%#2=style name, #3=white top, #4=white bottom, #5=black top, #6=black bottom |
| 818 |
[\@ifundefined% |
| 819 |
{rotatebox}% |
| 820 |
{\PackageError{chessboard}% |
| 821 |
{You must load the package graphics or graphicx |
| 822 |
if you want to use the mover style squarearrow}{}}% |
| 823 |
{}% |
| 824 |
\@ifundefined% |
| 825 |
{ding}% |
| 826 |
{\PackageError{chessboard}% |
| 827 |
{You must load the package pifont |
| 828 |
if you want to use the mover style squarearrow}{}}% |
| 829 |
{}] |
| 830 |
{squarearrow}% #2 |
| 831 |
{\rotatebox{-90}{$\square$\,\ding{222}}}% |
| 832 |
{\rotatebox{90}{$\square$\,\ding{222}}}% |
| 833 |
{\rotatebox{-90}{$\blacksquare$\,\ding{222}}}% |
| 834 |
{\rotatebox{90}{$\blacksquare$\,\ding{222}}}% |
| 835 |
|
| 836 |
%%% the command to print the labels text |
| 837 |
|
| 838 |
\newcommand\board@do@printlabelleftfield[1]{%rank |
| 839 |
\begingroup |
| 840 |
\setcounter{ranklabel}{#1}% |
| 841 |
\raisebox{\board@val@labelleftlift}[\len@cfss@squaretotalheight][0pt]{% |
| 842 |
\makebox[0pt][r]{% |
| 843 |
\makebox[\board@val@labelleftwidth][l]{% |
| 844 |
\cfss@sidefont |
| 845 |
\board@val@labelleftfont |
| 846 |
\selectfont |
| 847 |
\board@val@labelleftformat}}}% |
| 848 |
\endgroup}% |
| 849 |
|
| 850 |
\newcommand\board@do@printlabelrightfield[1]{%rank |
| 851 |
\begingroup |
| 852 |
\setcounter{ranklabel}{#1}% |
| 853 |
\raisebox{\board@val@labelrightlift}[\len@cfss@squaretotalheight][0pt]{% |
| 854 |
\makebox[0pt][l]{% |
| 855 |
\makebox[\board@val@labelrightwidth][r]{% |
| 856 |
\cfss@sidefont |
| 857 |
\board@val@labelrightfont |
| 858 |
\selectfont |
| 859 |
\board@val@labelrightformat}}}% |
| 860 |
\endgroup}% |
| 861 |
|
| 862 |
\newcommand\board@do@printlabelbottomfield{% |
| 863 |
\raisebox{-\board@val@labelbottomlift}[0pt][0pt]{\makebox[\len@cfss@squarewidth][c]{\board@val@labelbottomformat}}}% |
| 864 |
|
| 865 |
\newcommand\board@do@printlabeltopfield{% |
| 866 |
\raisebox{\dimexpr\len@cfss@squaretotalheight+\board@val@labeltoplift\relax}[0pt][0pt]% |
| 867 |
{\makebox[\len@cfss@squarewidth][c]{\board@val@labeltopformat}}}% |
| 868 |
|
| 869 |
\newcommand\board@do@printlabelbottom[2]{%#1 firstfile, #2 lastfile |
| 870 |
\begingroup |
| 871 |
\cfss@sidefont |
| 872 |
\board@val@labelbottomfont |
| 873 |
\selectfont |
| 874 |
\makebox[0pt][r]{% |
| 875 |
\setcounter{cnt@board@file}{#1}% |
| 876 |
\whiledo% |
| 877 |
{\board@print@sign\value{cnt@board@file}<\board@print@sign#2 |
| 878 |
\OR |
| 879 |
\value{cnt@board@file}=#2}% |
| 880 |
{\setcounter{filelabel}{\value{cnt@board@file}}% |
| 881 |
\board@do@printlabelbottomfield% |
| 882 |
\addtocounter{cnt@board@file}{\board@print@sign1}}}% |
| 883 |
\endgroup}% |
| 884 |
|
| 885 |
\newcommand\board@do@printlabeltop[2]{%#1 firstfile, #2 lastfile |
| 886 |
\begingroup |
| 887 |
\cfss@sidefont |
| 888 |
\board@val@labeltopfont |
| 889 |
\selectfont |
| 890 |
\makebox[0pt][l]{% |
| 891 |
\setcounter{cnt@board@file}{#1}% |
| 892 |
\whiledo% |
| 893 |
{\board@print@sign\value{cnt@board@file}<\board@print@sign#2 |
| 894 |
\OR |
| 895 |
\value{cnt@board@file}=#2}% |
| 896 |
{\setcounter{filelabel}{\value{cnt@board@file}}% |
| 897 |
\board@do@printlabeltopfield% |
| 898 |
\addtocounter{cnt@board@file}{\board@print@sign1}}}% |
| 899 |
\endgroup}% |
| 900 |
|
| 901 |
%%%%% |
| 902 |
%% highlighting |
| 903 |
|
| 904 |
%%% emphasize piece |
| 905 |
|
| 906 |
\newcommand\board@do@store@pieceemph[2]{%#1filenum, #2ranknum |
| 907 |
\@ifundefined{board@val@pieceemph}% |
| 908 |
{\def\board@val@pieceemph{}}% |
| 909 |
{}% |
| 910 |
\toks@=\expandafter{\board@val@pieceemph}% |
| 911 |
\ifUFCB@locfill@coloremph |
| 912 |
\@temptokena=\expandafter{\board@val@fontcolorstack}% |
| 913 |
\board@enamedef{% |
| 914 |
board@val@f#1r#2@emph}{% |
| 915 |
\the\toks@\the\@temptokena}% |
| 916 |
\else |
| 917 |
\board@enamedef{% |
| 918 |
board@val@f#1r#2@emph}{% |
| 919 |
\the\toks@}% |
| 920 |
\fi}% |
| 921 |
|
| 922 |
\newcommand\board@do@empharea[1]{% |
| 923 |
\expandafter\board@split@areasort#1ARGEND% |
| 924 |
%% initialisation |
| 925 |
\setcounter{cnt@board@file}{\board@temp@curstartfilenum}% |
| 926 |
\setcounter{cnt@board@rank}{\board@temp@curstartranknum}% |
| 927 |
% |
| 928 |
\whiledo |
| 929 |
{\value{cnt@board@rank}>\numexpr \board@temp@curstopranknum-1\relax}% |
| 930 |
{\setcounter{cnt@board@file}{\board@temp@curstartfilenum}% |
| 931 |
\whiledo |
| 932 |
{\value{cnt@board@file}<\numexpr \board@temp@curstopfilenum+1\relax}% |
| 933 |
{\board@do@store@pieceemph{\number\value{cnt@board@file}}{\number\value{cnt@board@rank}}% |
| 934 |
\addtocounter{cnt@board@file}{1}}% |
| 935 |
\addtocounter{cnt@board@rank}{-1}}}% |
| 936 |
|
| 937 |
%%% border of board |
| 938 |
|
| 939 |
\newcommand\board@print@border{% |
| 940 |
\raisebox{0pt}[0pt][0pt]{% |
| 941 |
\makebox[0pt][r]{%bottom |
| 942 |
\board@val@borderbottomcolor |
| 943 |
\rule[-\board@val@borderbottomwidth]% |
| 944 |
{\dimexpr |
| 945 |
\ifUFCB@locset@borderleft |
| 946 |
\board@val@borderleftwidth + |
| 947 |
\fi |
| 948 |
\numexpr\board@val@stopprintfilenum-\board@val@startprintfilenum+1\relax\len@cfss@squarewidth |
| 949 |
\ifUFCB@locset@borderright |
| 950 |
+\board@val@borderrightwidth |
| 951 |
\fi |
| 952 |
\relax}% |
| 953 |
{\ifUFCB@locset@borderbottom\board@val@borderbottomwidth\else0pt\fi}% |
| 954 |
\ifUFCB@locset@borderright |
| 955 |
\hspace*{-\board@val@borderrightwidth}% |
| 956 |
\fi}% |
| 957 |
\makebox[0pt][r]{%left |
| 958 |
\board@val@borderleftcolor |
| 959 |
\rule[\ifUFCB@locset@borderbottom-\board@val@borderbottomwidth\else0pt\fi]% |
| 960 |
{\ifUFCB@locset@borderleft |
| 961 |
\board@val@borderleftwidth |
| 962 |
\else |
| 963 |
0pt% |
| 964 |
\fi} |
| 965 |
{\dimexpr |
| 966 |
\ifUFCB@locset@borderbottom\board@val@borderbottomwidth +\fi |
| 967 |
\numexpr\board@val@startprintranknum-\board@val@stopprintranknum+1\relax\len@cfss@squaretotalheight |
| 968 |
\ifUFCB@locset@bordertop |
| 969 |
+\board@val@bordertopwidth |
| 970 |
\fi |
| 971 |
\relax}% |
| 972 |
\hspace*{\numexpr\board@val@stopprintfilenum-\board@val@startprintfilenum+1\relax\len@cfss@squarewidth}% |
| 973 |
}% |
| 974 |
%% |
| 975 |
\makebox[0pt][r]{%top |
| 976 |
\board@val@bordertopcolor |
| 977 |
\rule[\numexpr\board@val@startprintranknum-\board@val@stopprintranknum+1\relax\len@cfss@squaretotalheight]% |
| 978 |
{\dimexpr |
| 979 |
\ifUFCB@locset@borderleft |
| 980 |
\board@val@borderleftwidth + |
| 981 |
\fi |
| 982 |
\numexpr\board@val@stopprintfilenum-\board@val@startprintfilenum+1\relax\len@cfss@squarewidth |
| 983 |
\ifUFCB@locset@borderright |
| 984 |
+\board@val@borderrightwidth |
| 985 |
\fi |
| 986 |
\relax}% |
| 987 |
{\ifUFCB@locset@bordertop\board@val@bordertopwidth\else0pt\fi}% |
| 988 |
\ifUFCB@locset@borderright |
| 989 |
\hspace*{-\board@val@borderrightwidth}% |
| 990 |
\fi}% |
| 991 |
%% |
| 992 |
\makebox[0pt][l]{%right |
| 993 |
\board@val@borderrightcolor |
| 994 |
\rule[\ifUFCB@locset@borderbottom-\board@val@borderbottomwidth\else0pt\fi]% |
| 995 |
{\ifUFCB@locset@borderright |
| 996 |
\board@val@borderrightwidth |
| 997 |
\else |
| 998 |
0pt% |
| 999 |
\fi}% |
| 1000 |
{\dimexpr |
| 1001 |
\ifUFCB@locset@borderbottom\board@val@borderbottomwidth +\fi |
| 1002 |
\numexpr\board@val@startprintranknum-\board@val@stopprintranknum+1\relax\len@cfss@squaretotalheight |
| 1003 |
\ifUFCB@locset@bordertop |
| 1004 |
+\board@val@bordertopwidth |
| 1005 |
\fi |
| 1006 |
\relax}% |
| 1007 |
}}} |
| 1008 |
|
| 1009 |
\newcommand\board@do@setpsnode{% |
| 1010 |
\ifpdf\else |
| 1011 |
\ifUFCB@locset@psset |
| 1012 |
\ifUFCB@locset@inverse |
| 1013 |
\pnode(% |
| 1014 |
\dimexpr -1.5\len@cfss@squarewidth + |
| 1015 |
\board@val@startprintfilenum\len@cfss@squarewidth\relax, |
| 1016 |
\dimexpr |
| 1017 |
\board@val@startprintranknum\len@cfss@squaretotalheight |
| 1018 |
-7.5\len@cfss@squaretotalheight\relax){BM} |
| 1019 |
\else |
| 1020 |
\pnode(% |
| 1021 |
\dimexpr 7.5\len@cfss@squarewidth |
| 1022 |
-\board@val@stopprintfilenum\len@cfss@squarewidth\relax, |
| 1023 |
\dimexpr |
| 1024 |
-\board@val@stopprintranknum\len@cfss@squaretotalheight |
| 1025 |
+1.5\len@cfss@squaretotalheight\relax){BM} |
| 1026 |
\fi |
| 1027 |
\fi |
| 1028 |
\fi} |
| 1029 |
|
| 1030 |
%%%%%%% |
| 1031 |
%% the main commands |
| 1032 |
%%%%%% |
| 1033 |
|
| 1034 |
%%% The command that holds saved keys |
| 1035 |
|
| 1036 |
\def\board@val@savedkeylist{@null=@null}% |
| 1037 |
|
| 1038 |
\newcommand\storechessboardstyle[2]{%#1 name, #2 key-list |
| 1039 |
\@namedef{board@val@style#1keylist}{#2}}% |
| 1040 |
|
| 1041 |
\newcommand\setchessboard[1]{%changed 2007-07-03 |
| 1042 |
\def\board@temp@keylist{}% |
| 1043 |
\setkeys[UFCB]{@start}{board@expand={#1}}% |
| 1044 |
\toks@=\expandafter{\board@temp@keylist}% |
| 1045 |
\edef\board@temp@command{% |
| 1046 |
\noexpand\setkeys*[UFCB]{gloinit}{\the\toks@}}% |
| 1047 |
\board@temp@command |
| 1048 |
\setrmkeys*[UFCB]{gloset}% |
| 1049 |
\setrmkeys[UFCB]{glofill}}% |
| 1050 |
|
| 1051 |
\newcommand\chessboard[1][]{% |
| 1052 |
\begingroup |
| 1053 |
\normallineskip=1pt\relax\normallineskiplimit=0pt\relax%14.3.2011 |
| 1054 |
\savekeys[UFCB]{locset}{\global{psset},\global{psskak},\global{inverse}}% |
| 1055 |
%%% Initialisation |
| 1056 |
%% combine the the global keys and the keys in argument |
| 1057 |
\let\board@temp@keylist\board@val@savedkeylist |
| 1058 |
\setkeys[UFCB]{@start}{board@expand={#1}}% |
| 1059 |
\toks@=\expandafter{\board@temp@keylist}% |
| 1060 |
\edef\board@temp@command{% |
| 1061 |
\noexpand\setkeys*[UFCB]{locinit}{\the\toks@}}% |
| 1062 |
\board@temp@command |
| 1063 |
%\show\XKV@rm |
| 1064 |
\expandafter\board@do@showtypelist\expandafter{\csname board@\board@val@game @piececharlist\endcsname,empty}% |
| 1065 |
%% fills the board with the current position |
| 1066 |
%% getting the fen of the current position with the fencalculate command of the current game: |
| 1067 |
\csname board@\board@val@game @do@fencalculate\endcsname |
| 1068 |
%% saving the current language |
| 1069 |
\let\board@val@savelang\board@val@curlang |
| 1070 |
%% setting the fen of the current position and saving it |
| 1071 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 1072 |
language=english, |
| 1073 |
setfen=\board@val@fencalculate, |
| 1074 |
storefen=current, |
| 1075 |
language=\board@val@savelang}% |
| 1076 |
%\show\XKV@rm %test |
| 1077 |
%% setting the set keys |
| 1078 |
\setrmkeys*[UFCB]{locset}% |
| 1079 |
\edef\printarea{% |
| 1080 |
\board@val@startprintfilechar\board@val@startprintranknum-% |
| 1081 |
\board@val@stopprintfilechar\board@val@stopprintranknum}% |
| 1082 |
\edef\board{% |
| 1083 |
\board@val@maxfilechar\board@val@maxranknum-% |
| 1084 |
\board@val@minfilechar\board@val@minranknum}% |
| 1085 |
\ifUFCB@locset@inverse |
| 1086 |
\gdef\board@print@sign{-}% |
| 1087 |
\else |
| 1088 |
\gdef\board@print@sign{}% |
| 1089 |
\fi |
| 1090 |
%% to get the size of the fields |
| 1091 |
\ifUFCB@locset@psset |
| 1092 |
\expandafter\board@do@globalgetsquaresize\expandafter{\board@val@game}% |
| 1093 |
\else |
| 1094 |
\expandafter\board@do@getsquaresize\expandafter{\board@val@game}% |
| 1095 |
\fi |
| 1096 |
%% switch to board font an set ex and em |
| 1097 |
\cfss@boardfont |
| 1098 |
\fontdimen5\font=0.5\len@cfss@squarewidth |
| 1099 |
\fontdimen6\font=\len@cfss@squarewidth |
| 1100 |
%% initialisation of the pgf-pictures with the anchor and shifts |
| 1101 |
\board@pgf@init |
| 1102 |
\board@do@getfieldcolorlists |
| 1103 |
%% setting the fill keys |
| 1104 |
% \show\XKV@rm %test |
| 1105 |
\setrmkeys[UFCB]{locfill}% |
| 1106 |
%%% starting to print |
| 1107 |
\ifUFCB@locinit@print |
| 1108 |
%% setting the default font colors |
| 1109 |
\board@val@boardfontcolors |
| 1110 |
%% the left margin |
| 1111 |
\ifUFCB@locset@marginleft |
| 1112 |
\makebox[\board@val@marginleftwidth]{}% |
| 1113 |
\fi |
| 1114 |
%% the background picture |
| 1115 |
\ifUFCB@locset@pgf |
| 1116 |
\makebox[0pt]{% |
| 1117 |
\begin{tikzpicture}% |
| 1118 |
\board@pgf@background |
| 1119 |
\begin{pgfscope}% |
| 1120 |
\board@pgf@extrabackground |
| 1121 |
\end{pgfscope}% |
| 1122 |
\end{tikzpicture}}% |
| 1123 |
\fi |
| 1124 |
%% the board |
| 1125 |
\ifUFCB@locset@inverse |
| 1126 |
\setcounter{cnt@board@rank}{\board@val@stopprintranknum}% inv. |
| 1127 |
\parbox[b]{\numexpr\board@val@stopprintfilenum-\board@val@startprintfilenum+1\relax\len@cfss@squarewidth}% |
| 1128 |
{\parindent0pt\relax\baselineskip=\len@cfss@squaretotalheight\relax% |
| 1129 |
\nointerlineskip |
| 1130 |
%% top margin |
| 1131 |
\ifUFCB@locset@margintop |
| 1132 |
\rule{0pt}{\dimexpr\len@cfss@squaretotalheight+\board@val@margintopwidth\relax}% |
| 1133 |
\fi |
| 1134 |
\ifUFCB@locset@labeltop |
| 1135 |
\board@do@printlabeltop{\board@val@stopprintfilenum}{\board@val@startprintfilenum}% |
| 1136 |
\fi |
| 1137 |
%% the pieces and side labels |
| 1138 |
\whiledo |
| 1139 |
{\value{cnt@board@rank}<\numexpr\board@val@startprintranknum+1\relax}% inv |
| 1140 |
{\board@do@printrank% |
| 1141 |
{\number\value{cnt@board@rank}}% |
| 1142 |
{\board@val@stopprintfilenum}% |
| 1143 |
{\board@val@startprintfilenum}% |
| 1144 |
\hspace{0pt}% |
| 1145 |
\addtocounter{cnt@board@rank}{1}}%inv |
| 1146 |
%% bottom label |
| 1147 |
\ifUFCB@locset@labelbottom |
| 1148 |
\board@do@printlabelbottom{\board@val@stopprintfilenum}{\board@val@startprintfilenum}% |
| 1149 |
\fi}% end parbox |
| 1150 |
\else %not inverse |
| 1151 |
\setcounter{cnt@board@rank}{\board@val@startprintranknum}% |
| 1152 |
\parbox[b]{\numexpr\board@val@stopprintfilenum-\board@val@startprintfilenum+1\relax\len@cfss@squarewidth}% |
| 1153 |
{\parindent0pt\relax\baselineskip=\len@cfss@squaretotalheight\relax% |
| 1154 |
\nointerlineskip |
| 1155 |
%% top margin |
| 1156 |
\ifUFCB@locset@margintop |
| 1157 |
\rule{0pt}{\dimexpr\len@cfss@squaretotalheight+\board@val@margintopwidth\relax}% |
| 1158 |
\fi |
| 1159 |
\ifUFCB@locset@labeltop |
| 1160 |
\board@do@printlabeltop{\board@val@startprintfilenum}{\board@val@stopprintfilenum}% |
| 1161 |
\fi |
| 1162 |
%% the pieces and side labels |
| 1163 |
\whiledo |
| 1164 |
{\value{cnt@board@rank}>\numexpr\board@val@stopprintranknum-1\relax}% |
| 1165 |
{\board@do@printrank% |
| 1166 |
{\number\value{cnt@board@rank}}% |
| 1167 |
{\board@val@startprintfilenum}% |
| 1168 |
{\board@val@stopprintfilenum}% |
| 1169 |
\hspace{0pt}% |
| 1170 |
\addtocounter{cnt@board@rank}{-1}}% |
| 1171 |
%% bottom label |
| 1172 |
\ifUFCB@locset@labelbottom |
| 1173 |
\board@do@printlabelbottom{\board@val@startprintfilenum}{\board@val@stopprintfilenum}% |
| 1174 |
\fi}% end second parbox |
| 1175 |
\fi %end if inverse |
| 1176 |
%%the markground picture |
| 1177 |
\ifUFCB@locset@pgf |
| 1178 |
\makebox[0pt]{% |
| 1179 |
\begin{tikzpicture}% |
| 1180 |
\board@pgf@markground |
| 1181 |
\begin{pgfscope}% |
| 1182 |
\csname board@pgf@extramarkground\endcsname |
| 1183 |
\end{pgfscope}% |
| 1184 |
\end{tikzpicture}}% |
| 1185 |
\fi % end pgf |
| 1186 |
\board@do@setpsnode |
| 1187 |
%% |
| 1188 |
% Border |
| 1189 |
%%% |
| 1190 |
\board@print@border |
| 1191 |
%% Mover |
| 1192 |
\ifUFCB@locset@showmover |
| 1193 |
\ifcsname board@val@moverstyle@\board@val@moverstyle\endcsname |
| 1194 |
\csname board@val@moverstyle@\board@val@moverstyle\endcsname |
| 1195 |
\else |
| 1196 |
\PackageWarning{chessboard}% |
| 1197 |
{Moverstyle '\board@val@moverstyle' is not defined, I will use |
| 1198 |
type square instead}% |
| 1199 |
\board@val@moverstyle@square |
| 1200 |
\fi |
| 1201 |
\board@do@printbottommover% |
| 1202 |
\board@do@printtopmover |
| 1203 |
\fi |
| 1204 |
%% |
| 1205 |
\ifUFCB@locset@marginbottom |
| 1206 |
\rule[-\board@val@marginbottomwidth]{0pt}{\board@val@marginbottomwidth}% bottom margin |
| 1207 |
\fi |
| 1208 |
\ifUFCB@locset@marginright |
| 1209 |
\makebox[\board@val@marginrightwidth]{}%right margin |
| 1210 |
\fi |
| 1211 |
\fi %end if print |
| 1212 |
\endgroup%% Attention! Keys after the group must be global! |
| 1213 |
\ifpdf |
| 1214 |
\else |
| 1215 |
\ifthenelse% |
| 1216 |
{\boolean{\XKV@UFCB@locset@psset@value}}% |
| 1217 |
{\psset{xunit=\len@cfss@squarewidth,yunit=\len@cfss@squaretotalheight}}% |
| 1218 |
{}% |
| 1219 |
\ifthenelse% |
| 1220 |
{\boolean{\XKV@UFCB@locset@psskak@value}}% |
| 1221 |
{\let\set@special@psmarkers\board@skak@set@special@psmarkers% |
| 1222 |
\@ifundefined{theps@inverse}{}{% |
| 1223 |
\ifthenelse% |
| 1224 |
{\boolean{\XKV@UFCB@locset@inverse@value}}% |
| 1225 |
{\setcounter{ps@inverse}{180}}% |
| 1226 |
{\setcounter{ps@inverse}{0}}}}% |
| 1227 |
{}% |
| 1228 |
\fi %end ifpdf |
| 1229 |
}% end chessboard |
| 1230 |
|
| 1231 |
%%% Changing the input language |
| 1232 |
|
| 1233 |
\newcommand\cbDefineLanguage[1]{% |
| 1234 |
\ifcsname board@val@lang#1\endcsname |
| 1235 |
\PackageWarning{chessboard}% |
| 1236 |
{Language #1 already defined}% |
| 1237 |
\else |
| 1238 |
\global\@namedef{board@val@lang#1}{}% |
| 1239 |
\global\@namedef{board@val@lang#1@empty}{empty}% |
| 1240 |
\fi}% |
| 1241 |
|
| 1242 |
\newcommand\cbDefineTranslation[3]{%#1 language, #2 english, #3 translation |
| 1243 |
\global\@namedef{board@val@lang#1@#3}{#2}}% |
| 1244 |
|
| 1245 |
\cbDefineLanguage{german}% |
| 1246 |
\cbDefineTranslation{german}{K}{K}% |
| 1247 |
\cbDefineTranslation{german}{Q}{D}% |
| 1248 |
\cbDefineTranslation{german}{R}{T}% |
| 1249 |
\cbDefineTranslation{german}{B}{L}% |
| 1250 |
\cbDefineTranslation{german}{N}{S}% |
| 1251 |
\cbDefineTranslation{german}{P}{B}% |
| 1252 |
\cbDefineTranslation{german}{k}{k}% |
| 1253 |
\cbDefineTranslation{german}{q}{d}% |
| 1254 |
\cbDefineTranslation{german}{r}{t}% |
| 1255 |
\cbDefineTranslation{german}{b}{l}% |
| 1256 |
\cbDefineTranslation{german}{n}{s}% |
| 1257 |
\cbDefineTranslation{german}{p}{b}% |
| 1258 |
|
| 1259 |
\cbDefineLanguage{english}% |
| 1260 |
\cbDefineTranslation{english}{K}{K}% |
| 1261 |
\cbDefineTranslation{english}{Q}{Q}% |
| 1262 |
\cbDefineTranslation{english}{R}{R}% |
| 1263 |
\cbDefineTranslation{english}{B}{B}% |
| 1264 |
\cbDefineTranslation{english}{N}{N}% |
| 1265 |
\cbDefineTranslation{english}{P}{P}% |
| 1266 |
\cbDefineTranslation{english}{k}{k}% |
| 1267 |
\cbDefineTranslation{english}{q}{q}% |
| 1268 |
\cbDefineTranslation{english}{r}{r}% |
| 1269 |
\cbDefineTranslation{english}{b}{b}% |
| 1270 |
\cbDefineTranslation{english}{n}{n}% |
| 1271 |
\cbDefineTranslation{english}{p}{p}% |
| 1272 |
|
| 1273 |
%%% command to add pieces to the list |
| 1274 |
|
| 1275 |
\newcommand\board@add@chartocolorpiececharlist[3]{% #1 game, #2 color, #3 char |
| 1276 |
\ifcsname board@#1@#2piececharlist\endcsname |
| 1277 |
\ifthenelse% |
| 1278 |
{\equal{\csname board@#1@#2piececharlist\endcsname}{}} |
| 1279 |
{\@namedef{board@#1@#2piececharlist}{#3}} |
| 1280 |
{\expandafter\g@addto@macro\csname board@#1@#2piececharlist\endcsname{,#3}}% |
| 1281 |
\else |
| 1282 |
\@namedef{board@#1@piececharlist}{#3}% |
| 1283 |
\fi}% |
| 1284 |
|
| 1285 |
\newcommand\board@add@chartopiececharlist[2]{% #1 game, #2 char |
| 1286 |
\ifcsname board@#1@piececharlist\endcsname |
| 1287 |
\ifthenelse% |
| 1288 |
{\equal{\csname board@#1@piececharlist\endcsname}{}}% |
| 1289 |
{\@namedef{board@#1@piececharlist}{#2}}% |
| 1290 |
{\expandafter\g@addto@macro\csname board@#1@piececharlist\endcsname{,#2}}% |
| 1291 |
\else |
| 1292 |
\@namedef{board@#1@piececharlist}{#2}% |
| 1293 |
\fi}% |
| 1294 |
|
| 1295 |
%%% Adding new pieces |
| 1296 |
\newcommand\cbDefineNewPiece[5][skak]{%#1=optional=game, #2=color, #3=char, #4=on white, #5=on black |
| 1297 |
\ifcsname board@#1@piece@#3@white\endcsname |
| 1298 |
\PackageError{chessboard}{Piece #3 already defined!}{}% |
| 1299 |
\else |
| 1300 |
\board@add@chartocolorpiececharlist{#1}{#2}{#3}% |
| 1301 |
\board@add@chartopiececharlist{#1}{#3}% |
| 1302 |
\expandafter\gdef\csname board@#1@piece@#3@white\endcsname{#4}% |
| 1303 |
\expandafter\gdef\csname board@#1@piece@#3@black\endcsname{#5}% |
| 1304 |
\cbDefineTranslation{english}{#3}{#3}% |
| 1305 |
\fi}% |
| 1306 |
|
| 1307 |
%%% Adding new pieces |
| 1308 |
\newcommand\cbReDefineNewPiece[5][skak]{%#1=optional=game, #2=color, #3=char, #4=on white, #5=on black |
| 1309 |
\ifcsname board@#1@piece@#3@white\endcsname |
| 1310 |
\else |
| 1311 |
\PackageWarning{chessboard}{Piece #3 not yet defined! I will define it now}{}% |
| 1312 |
\fi |
| 1313 |
\board@add@chartocolorpiececharlist{#1}{#2}{#3}% |
| 1314 |
\board@add@chartopiececharlist{#1}{#3}% |
| 1315 |
\expandafter\gdef\csname board@#1@piece@#3@white\endcsname{#4}% |
| 1316 |
\expandafter\gdef\csname board@#1@piece@#3@black\endcsname{#5}% |
| 1317 |
\cbDefineTranslation{english}{#3}{#3}}% |
| 1318 |
|
| 1319 |
%%% Initialization the piece commands. |
| 1320 |
%% game: skak |
| 1321 |
|
| 1322 |
\newcommand\board@skak@piece@empty@white{\cfss@WhiteEmptySquare}% |
| 1323 |
\newcommand\board@skak@piece@empty@black{\cfss@BlackEmptySquare}% |
| 1324 |
\newcommand\board@skak@piece@K@white{\cfss@WhiteKingOnWhite}% |
| 1325 |
\newcommand\board@skak@piece@K@black{\cfss@WhiteKingOnBlack}% |
| 1326 |
\newcommand\board@skak@piece@k@white{\cfss@BlackKingOnWhite}% |
| 1327 |
\newcommand\board@skak@piece@k@black{\cfss@BlackKingOnBlack}% |
| 1328 |
\newcommand\board@skak@piece@Q@white{\cfss@WhiteQueenOnWhite}% |
| 1329 |
\newcommand\board@skak@piece@Q@black{\cfss@WhiteQueenOnBlack}% |
| 1330 |
\newcommand\board@skak@piece@q@white{\cfss@BlackQueenOnWhite}% |
| 1331 |
\newcommand\board@skak@piece@q@black{\cfss@BlackQueenOnBlack}% |
| 1332 |
\newcommand\board@skak@piece@R@white{\cfss@WhiteRookOnWhite}% |
| 1333 |
\newcommand\board@skak@piece@R@black{\cfss@WhiteRookOnBlack}% |
| 1334 |
\newcommand\board@skak@piece@r@white{\cfss@BlackRookOnWhite}% |
| 1335 |
\newcommand\board@skak@piece@r@black{\cfss@BlackRookOnBlack}% |
| 1336 |
\newcommand\board@skak@piece@B@white{\cfss@WhiteBishopOnWhite}% |
| 1337 |
\newcommand\board@skak@piece@B@black{\cfss@WhiteBishopOnBlack}% |
| 1338 |
\newcommand\board@skak@piece@b@white{\cfss@BlackBishopOnWhite}% |
| 1339 |
\newcommand\board@skak@piece@b@black{\cfss@BlackBishopOnBlack}% |
| 1340 |
\newcommand\board@skak@piece@N@white{\cfss@WhiteKnightOnWhite}% |
| 1341 |
\newcommand\board@skak@piece@N@black{\cfss@WhiteKnightOnBlack}% |
| 1342 |
\newcommand\board@skak@piece@n@white{\cfss@BlackKnightOnWhite}% |
| 1343 |
\newcommand\board@skak@piece@n@black{\cfss@BlackKnightOnBlack}% |
| 1344 |
\newcommand\board@skak@piece@P@white{\cfss@WhitePawnOnWhite}% |
| 1345 |
\newcommand\board@skak@piece@P@black{\cfss@WhitePawnOnBlack}% |
| 1346 |
\newcommand\board@skak@piece@p@white{\cfss@BlackPawnOnWhite}% |
| 1347 |
\newcommand\board@skak@piece@p@black{\cfss@BlackPawnOnBlack}% |
| 1348 |
|
| 1349 |
\newcommand\board@skak@refpiece{% |
| 1350 |
\begingroup |
| 1351 |
\fontsize{\cfss@boardfontsize}{\cfss@boardfontsize}% |
| 1352 |
\BlackEmptySquare |
| 1353 |
\endgroup}% |
| 1354 |
|
| 1355 |
\newcommand\board@skak@piececharlist{K,Q,R,B,N,P,k,q,r,b,n,p}% |
| 1356 |
\newcommand\board@skak@whitepiececharlist{K,Q,R,B,N,P}% |
| 1357 |
\newcommand\board@skak@blackpiececharlist{k,q,r,b,n,p}% |
| 1358 |
\AtBeginDocument{% |
| 1359 |
\@ifpackageloaded{skak}% |
| 1360 |
{%patch skak, see issue #1 |
| 1361 |
\patchcmd\Fen@handleA{\arabic}{\number\value}{}{}% |
| 1362 |
\patchcmd\Fen@handleA{\arabic}{\number\value}{}{}% |
| 1363 |
\patchcmd\Fen@handleA{\thehelpgobble}{\c@helpgobble}{}{}% |
| 1364 |
\patchcmd\Fen@handleA{\thehelpgobble}{\c@helpgobble}{}{}% |
| 1365 |
\patchcmd\Fen@calculate{\arabic}{\number\value}{}{}% |
| 1366 |
\patchcmd\Fen@calculate{\arabic}{\number\value}{}{}% |
| 1367 |
\def\board@skak@do@fencalculate{% |
| 1368 |
\Fen@calculate |
| 1369 |
\let\board@val@fencalculate\temp@board}% |
| 1370 |
\def\board@skak@set@special@psmarkers#1#2{% |
| 1371 |
\get@translation#1% |
| 1372 |
\setcounter{fileFrom}{\value{fileTo}}% |
| 1373 |
\setcounter{rankFrom}{\value{rankTo}}% |
| 1374 |
\get@translation#2% |
| 1375 |
\rput(BM){\pnode(-\number\value{fileFrom},\number\value{rankFrom}){From}}% |
| 1376 |
\rput(BM){\pnode(-\number\value{fileTo},\number\value{rankTo}){To}}}}% |
| 1377 |
{\def\board@skak@do@fencalculate{% |
| 1378 |
\def\board@val@fencalculate{8/8/8/8/8/8/8/8}}}}% |
| 1379 |
|
| 1380 |
%%% Initialization keys |
| 1381 |
|
| 1382 |
\setkeys*[UFCB]{gloinit}{print, |
| 1383 |
game=skak, |
| 1384 |
maxfield=h8, |
| 1385 |
zero=false, |
| 1386 |
moverdefault=W, |
| 1387 |
castlingdefault=KQkq, |
| 1388 |
enpassantdefault=-, |
| 1389 |
halfmovedefault=0, |
| 1390 |
fullmovedefault=1}% |
| 1391 |
|
| 1392 |
\setkeys*[UFCB]{gloset}{normalboard, |
| 1393 |
inverse=false, |
| 1394 |
startprint=\board@val@minfilechar\board@val@maxranknum, |
| 1395 |
stopprint=\board@val@maxfilechar\board@val@minranknum, |
| 1396 |
padding=0pt, |
| 1397 |
psset=false, |
| 1398 |
psskak=false, |
| 1399 |
pgf, |
| 1400 |
%labels |
| 1401 |
labelleft,labelbottom, |
| 1402 |
labelfont={}, %defaults from chessfss used |
| 1403 |
hlabelformat=\arabic{ranklabel}, |
| 1404 |
vlabelformat=\alph{filelabel}, |
| 1405 |
hlabellift=0.35em, |
| 1406 |
hlabelwidth=1ex, |
| 1407 |
labelbottomlift=1.1\baselineskip, |
| 1408 |
labeltoplift=0.2\baselineskip, |
| 1409 |
%margin |
| 1410 |
margin, |
| 1411 |
marginwidth=1em, |
| 1412 |
border, |
| 1413 |
borderwidth=0.04em, |
| 1414 |
bordercolor=black, |
| 1415 |
%mover |
| 1416 |
showmover, |
| 1417 |
moversize=1em,%0.5\len@cfss@squaretotalheight, |
| 1418 |
moverstyle=square, |
| 1419 |
moverlift=0pt, |
| 1420 |
movershift=1ex, |
| 1421 |
}% |
| 1422 |
|
| 1423 |
\def\board@pgf@linewidth{0.1em} |
| 1424 |
\def\board@pgf@arrow{latex} |
| 1425 |
\def\board@pgf@colorbackpadding{0pt} |
| 1426 |
\def\board@val@boardfontcolors{} |
| 1427 |
\def\board@val@fontcolorstack{} |
| 1428 |
\def\board@pgf@corner{0pt} |
| 1429 |
\def\board@pgf@shortenstart{0pt} |
| 1430 |
\def\board@pgf@shortenend{0pt} |
| 1431 |
\def\board@pgf@padding{0pt} |
| 1432 |
\setkeys[UFCB]{bez}{x1=1/3,x2=2/3,y1=1,y2=1,clockwise} |
| 1433 |
\def\currentfontcolors{\board@val@fontcolorstack} |
| 1434 |
\setkeys*[UFCB]{glofill}{language=english,trimtocolor=false,trimarea=\board,trim,usepgf=all,pgfstyle=none}% |
| 1435 |
\board@do@setsinglekeys*[UFCB]{locfill}{language=english}% |
| 1436 |
|
| 1437 |
%</chessboard> |
| 1438 |
%<*chessboard-pgf> |
| 1439 |
\ProvidesFile{chessboard-pgf.sty}[2024/11/07 version v2.0 pgf code for chessboard.sty] |
| 1440 |
%%$Date: 2011/01/11 14:07:20 $$Version: 3d9f59c743f1 $ |
| 1441 |
|
| 1442 |
\newcommand\board@pgf@extrabackground{}% |
| 1443 |
\newcommand\board@pgf@extramarkground{}% |
| 1444 |
|
| 1445 |
\newcommand\board@pgf@addbackground[1]{%#1 commands, |
| 1446 |
\expandafter\board@do@l@addto@macro\csname board@pgf@extrabackground\endcsname{#1}}% |
| 1447 |
|
| 1448 |
\newcommand\board@pgf@addmarkground[1]{%#1 commands |
| 1449 |
\expandafter\board@do@l@addto@macro\csname board@pgf@extramarkground\endcsname{#1}}% |
| 1450 |
|
| 1451 |
%% saving the markstyles with option |
| 1452 |
|
| 1453 |
\newcommand\board@do@savemarkstyle{% |
| 1454 |
\@ifnextchar[\board@do@savemarkstylewithopt\board@do@savemarkstylenoopt}% |
| 1455 |
|
| 1456 |
\def\board@do@savemarkstylewithopt[#1]#2ARGEND{% |
| 1457 |
\def\board@pgf@curstyleopt{#1}% |
| 1458 |
\def\board@pgf@curmarkstyle{#2}%added 2007.08.15 |
| 1459 |
\board@pgf@addmarkground{% |
| 1460 |
\def\board@pgf@curmarkstyle{#2}% |
| 1461 |
\def\board@pgf@curstyleopt{#1}}}% |
| 1462 |
|
| 1463 |
\def\board@do@savemarkstylenoopt#1ARGEND{% |
| 1464 |
\def\board@pgf@curstyleopt{}%added 2007.08.15 |
| 1465 |
\def\board@pgf@curmarkstyle{#1}% |
| 1466 |
\board@pgf@addmarkground{% |
| 1467 |
\def\board@pgf@curstyleopt{}% |
| 1468 |
\def\board@pgf@curmarkstyle{#1}}}% |
| 1469 |
|
| 1470 |
%% saving the backstyle with option |
| 1471 |
\newcommand\board@do@savebackstyle{% |
| 1472 |
\@ifnextchar[\board@do@savebackstylewithopt\board@do@savebackstylenoopt}% |
| 1473 |
|
| 1474 |
\def\board@do@savebackstylewithopt[#1]#2ARGEND{% |
| 1475 |
\def\board@pgf@curstyleopt{#1}% |
| 1476 |
\board@pgf@addbackground{% |
| 1477 |
\def\board@pgf@curbackstyle{#2}% |
| 1478 |
\def\board@pgf@curstyleopt{#1}}}% |
| 1479 |
|
| 1480 |
\def\board@do@savebackstylenoopt#1ARGEND{% |
| 1481 |
\def\board@pgf@curbackstyle{#1}% |
| 1482 |
\board@pgf@addbackground{% |
| 1483 |
\def\board@pgf@curstyleopt{}% |
| 1484 |
\def\board@pgf@curbackstyle{#1}}}% |
| 1485 |
|
| 1486 |
%% init/start pgf commands |
| 1487 |
|
| 1488 |
\newcommand\board@pgf@clippath{}% |
| 1489 |
|
| 1490 |
\newcommand\board@pgf@setunits{% |
| 1491 |
\pgfsetxvec{\pgfpoint{\len@cfss@squarewidth}{0cm}}% |
| 1492 |
\pgfsetyvec{\pgfpoint{0cm}{\len@cfss@squaretotalheight}}% |
| 1493 |
\pgfpathrectangle{\pgfpointorigin}{\pgfpointorigin}% |
| 1494 |
\pgfusepath{use as bounding box}}% |
| 1495 |
|
| 1496 |
\newcommand\board@pgf@addnode[2]{%#1= node name =field name, #2=mark or back |
| 1497 |
\expandafter\board@do@l@addto@macro\csname board@pgf@#2ground\endcsname{% |
| 1498 |
\pgfnode{coordinate}{center}{}{#1}{}{}% |
| 1499 |
\pgfusepath{fill}}}% |
| 1500 |
|
| 1501 |
\newcommand\board@pgf@gotonode[2]{% #1= node name =field name #2=mark or back |
| 1502 |
\expandafter\board@do@l@addto@macro\csname board@pgf@#2ground\endcsname{% |
| 1503 |
\pgftransformshift{\pgfpointanchor{#1}{center}}}}% |
| 1504 |
|
| 1505 |
\newcommand\board@pgf@setanchors[1]{% #1= mark or back |
| 1506 |
\setcounter{cnt@board@rank}{0}% |
| 1507 |
\setcounter{cnt@board@file}{0}% |
| 1508 |
\whiledo %nodes for files |
| 1509 |
{\value{cnt@board@file}<\numexpr\board@val@maxfilenum+1\relax}% |
| 1510 |
{\setcounter{cnt@board@rank}{0}% |
| 1511 |
\whiledo %nodes for on one field for each rank |
| 1512 |
{\value{cnt@board@rank}<\numexpr\board@val@maxranknum+1\relax}% |
| 1513 |
{\edef\board@temp{\zeroalph{cnt@board@file}\number\value{cnt@board@rank}}% |
| 1514 |
\expandafter\board@pgf@addnode\expandafter{\board@temp}{#1}% |
| 1515 |
\expandafter\board@do@l@addto@macro\csname board@pgf@#1ground\endcsname{% |
| 1516 |
\pgftransformshift{\pgfpointxy{0}{1}}}% |
| 1517 |
\addtocounter{cnt@board@rank}{1}}% |
| 1518 |
\edef\board@temp{\zeroalph{cnt@board@file}0}% |
| 1519 |
\expandafter\board@pgf@gotonode\expandafter{\board@temp}{#1}% |
| 1520 |
\addtocounter{cnt@board@file}{1}% |
| 1521 |
\expandafter\board@do@l@addto@macro\csname board@pgf@#1ground\endcsname{% one to the right |
| 1522 |
\pgftransformshift{\pgfpointxy{1}{0}}}}% |
| 1523 |
\expandafter\board@do@l@addto@macro\csname board@pgf@#1ground\endcsname{% |
| 1524 |
\csname board@pgf@#1clippath\endcsname}}% |
| 1525 |
|
| 1526 |
\newcommand\board@pgf@init{% |
| 1527 |
\def\board@pgf@background{% |
| 1528 |
\board@pgf@setunits |
| 1529 |
\ifUFCB@locset@inverse |
| 1530 |
\pgftransformshift{\pgfpointxy{\board@val@stopprintfilenum}{\board@val@startprintranknum}}% |
| 1531 |
\pgftransformshift{\pgfpointxy{0.5}{0.5}}% |
| 1532 |
\pgftransformrotate{180}% |
| 1533 |
\else |
| 1534 |
\pgftransformshift{\pgfpointxy{-\board@val@startprintfilenum}{-\board@val@stopprintranknum}}% |
| 1535 |
\pgftransformshift{\pgfpointxy{0.5}{0.5}}% |
| 1536 |
\fi}% |
| 1537 |
\board@pgf@setanchors{back}% |
| 1538 |
% |
| 1539 |
\def\board@pgf@markground{% |
| 1540 |
\board@pgf@setunits |
| 1541 |
\ifUFCB@locset@inverse |
| 1542 |
\pgftransformshift{\pgfpointxy{\board@val@startprintfilenum}{\board@val@startprintranknum}}% |
| 1543 |
\pgftransformshift{\pgfpointxy{-0.5}{0.5}}% |
| 1544 |
\pgftransformrotate{180}% |
| 1545 |
\else |
| 1546 |
\pgftransformshift{\pgfpointxy{-\board@val@stopprintfilenum}{-\board@val@stopprintranknum}}% |
| 1547 |
\pgftransformshift{\pgfpointxy{-0.5}{0.5}}% |
| 1548 |
\fi}% |
| 1549 |
\board@pgf@setanchors{mark}}% |
| 1550 |
|
| 1551 |
%% getting angles/length of a point: |
| 1552 |
%% the board len can be a decimal, so we need a better function than the primitive divide |
| 1553 |
\ExplSyntaxOn |
| 1554 |
\newcommand\board@divide@NN[2]{% |
| 1555 |
\dim_set:Nn#1 {#1*\dim_ratio:nn{1pt}{#2}}}% |
| 1556 |
\ExplSyntaxOff |
| 1557 |
|
| 1558 |
\newcommand\board@pgf@extractangle[2]{%#1 command, #2 pgfpoint |
| 1559 |
\pgfextracty{\len@board@tempy}{#2}% |
| 1560 |
\pgfextractx{\len@board@tempx}{#2}% |
| 1561 |
\ifdim\len@board@tempx=0pt\relax |
| 1562 |
%\len@board@tempy= 1 or unchanged? |
| 1563 |
\else |
| 1564 |
\board@divide@NN\len@board@tempy\len@board@tempx |
| 1565 |
\fi |
| 1566 |
\ifdim\len@board@tempx=0pt\relax |
| 1567 |
\ifdim\len@board@tempy=0pt\relax |
| 1568 |
\def#1{0}% |
| 1569 |
\else |
| 1570 |
\ifdim\len@board@tempy>0pt\relax |
| 1571 |
\def#1{90}% |
| 1572 |
\else |
| 1573 |
\def#1{-90}% |
| 1574 |
\fi |
| 1575 |
\fi |
| 1576 |
\fi |
| 1577 |
\ifdim\len@board@tempy=0pt\relax |
| 1578 |
\ifdim\len@board@tempx=0pt\relax |
| 1579 |
\def#1{0}% |
| 1580 |
\else |
| 1581 |
\ifdim\len@board@tempx>0pt\relax |
| 1582 |
\def#1{0}% |
| 1583 |
\else |
| 1584 |
\def#1{180}% |
| 1585 |
\fi |
| 1586 |
\fi |
| 1587 |
\fi |
| 1588 |
\ifdim\len@board@tempx>0pt\relax |
| 1589 |
\ifdim\len@board@tempy>0pt\relax |
| 1590 |
\pgfmathatan{\len@board@tempy}% |
| 1591 |
\edef#1{\pgfmathresult}% |
| 1592 |
\fi |
| 1593 |
\ifdim\len@board@tempy<0pt\relax |
| 1594 |
\pgfmathatan{\len@board@tempy}% |
| 1595 |
\edef#1{\pgfmathresult}% |
| 1596 |
\fi |
| 1597 |
\fi |
| 1598 |
\ifdim\len@board@tempx<0pt\relax |
| 1599 |
\ifdim\len@board@tempy>0pt\relax |
| 1600 |
\pgfmathatan{-\len@board@tempy}% |
| 1601 |
\pgfmathadd{-\pgfmathresult}{180}% |
| 1602 |
\edef#1{\pgfmathresult}% |
| 1603 |
\fi |
| 1604 |
\ifdim\len@board@tempy<0pt\relax |
| 1605 |
\pgfmathatan{\len@board@tempy}% |
| 1606 |
\pgfmathadd{\pgfmathresult}{180}% |
| 1607 |
\edef#1{\pgfmathresult}% |
| 1608 |
\fi |
| 1609 |
\fi |
| 1610 |
} |
| 1611 |
|
| 1612 |
|
| 1613 |
\newcommand\board@pgf@extractlength[2]{%#1 length, #2 pgfpoint |
| 1614 |
\pgfextracty{\len@board@tempy}{#2}% |
| 1615 |
\pgfextractx{\len@board@tempx}{#2}% |
| 1616 |
\pgfmathveclen{\len@board@tempx}{\len@board@tempy}% |
| 1617 |
#1=\pgfmathresult pt\relax} |
| 1618 |
|
| 1619 |
|
| 1620 |
%% Field decoration: |
| 1621 |
%% The command called by the markarea-key |
| 1622 |
|
| 1623 |
\newcommand*\board@pgf@add@fieldmarkstyletoarea[1]{% #1 =area |
| 1624 |
\expandafter\board@split@areasort#1ARGEND% |
| 1625 |
%% initialisation |
| 1626 |
\setcounter{cnt@board@file}{\board@temp@curstartfilenum}% |
| 1627 |
\setcounter{cnt@board@rank}{\board@temp@curstartranknum}% |
| 1628 |
% |
| 1629 |
\whiledo |
| 1630 |
{\value{cnt@board@rank}>\numexpr \board@temp@curstopranknum-1\relax}% |
| 1631 |
{\setcounter{cnt@board@file}{\board@temp@curstartfilenum}% |
| 1632 |
\whiledo |
| 1633 |
{\value{cnt@board@file}<\numexpr \board@temp@curstopfilenum+1\relax}% |
| 1634 |
{\edef\board@temp@curfield{\zeroalph{cnt@board@file}\number\value{cnt@board@rank}}% |
| 1635 |
\expandafter\board@pgf@addpgftofield\expandafter{\board@temp@curfield}{mark}% |
| 1636 |
\addtocounter{cnt@board@file}{1}}% |
| 1637 |
\addtocounter{cnt@board@rank}{-1}}}% |
| 1638 |
|
| 1639 |
%% The command called by the backarea-key |
| 1640 |
|
| 1641 |
\newcommand*\board@pgf@add@fieldbackstyletoarea[1]{% #1 =area |
| 1642 |
\expandafter\board@split@areasort#1ARGEND% |
| 1643 |
%% initialisation |
| 1644 |
\setcounter{cnt@board@file}{\board@temp@curstartfilenum}% |
| 1645 |
\setcounter{cnt@board@rank}{\board@temp@curstartranknum}% |
| 1646 |
% |
| 1647 |
\whiledo |
| 1648 |
{\value{cnt@board@rank}>\numexpr \board@temp@curstopranknum-1\relax}% |
| 1649 |
{\setcounter{cnt@board@file}{\board@temp@curstartfilenum}% |
| 1650 |
\whiledo |
| 1651 |
{\value{cnt@board@file}<\numexpr \board@temp@curstopfilenum+1\relax}% |
| 1652 |
{\edef\board@temp@curfield{\zeroalph{cnt@board@file}\number\value{cnt@board@rank}}% |
| 1653 |
\expandafter\board@pgf@addpgftofield\expandafter{\board@temp@curfield}{back}% |
| 1654 |
\addtocounter{cnt@board@file}{1}}% |
| 1655 |
\addtocounter{cnt@board@rank}{-1}}}% |
| 1656 |
|
| 1657 |
%% The command that puts the code in the picture. |
| 1658 |
\newcommand\board@pgf@addpgftofield[2]{% #1= node name =field name, #2=mark or back |
| 1659 |
\expandafter\board@split@field #1ARGEND% |
| 1660 |
\ifthenelse% |
| 1661 |
{\board@test@isfieldintrimarea{\board@temp@curfilenum}{\board@temp@curranknum}\AND |
| 1662 |
\board@test@isonactivecolor{\board@temp@curfilenum}{\board@temp@curranknum}}% |
| 1663 |
{\ifcsname board@pgf@fieldstyle\csname board@pgf@cur#2style\endcsname\endcsname |
| 1664 |
\csname board@pgf@add#2ground\endcsname{% |
| 1665 |
\def\currentarea{#1}% |
| 1666 |
\def\currentbq{#1}% |
| 1667 |
\def\currentbk{#1}% |
| 1668 |
\def\currentwq{#1}% |
| 1669 |
\def\currentwk{#1}% |
| 1670 |
\def\currentfrom{#1}% |
| 1671 |
\def\currentto{#1}% |
| 1672 |
\pgftransformshift{\pgfpointanchor{#1}{center}}% |
| 1673 |
\expandafter\let\expandafter\board@pgf@curpgfstyle |
| 1674 |
\csname board@pgf@fieldstyle\csname board@pgf@cur#2style\endcsname\endcsname |
| 1675 |
\edef\next{\noexpand\board@pgf@curpgfstyle |
| 1676 |
{#1}% |
| 1677 |
{\unexpanded\expandafter{\board@pgf@curstyleopt}}}% |
| 1678 |
\next}% |
| 1679 |
\else |
| 1680 |
\PackageWarning{chessboard}% |
| 1681 |
{#2 style '\csname board@pgf@cur#2style\endcsname' not defined for fields! |
| 1682 |
I will ignore the #2 commands}% |
| 1683 |
\fi}% |
| 1684 |
{}}% |
| 1685 |
|
| 1686 |
%% Region decoration |
| 1687 |
|
| 1688 |
|
| 1689 |
\def\board@pgf@backclipleftpadding{0pt} |
| 1690 |
\def\board@pgf@backcliptoppadding{0pt} |
| 1691 |
\def\board@pgf@backcliprightpadding{0pt} |
| 1692 |
\def\board@pgf@backclipbottompadding{0pt} |
| 1693 |
\def\board@pgf@markclipleftpadding{0pt} |
| 1694 |
\def\board@pgf@markcliptoppadding{0pt} |
| 1695 |
\def\board@pgf@markcliprightpadding{0pt} |
| 1696 |
\def\board@pgf@markclipbottompadding{0pt} |
| 1697 |
\def\board@pgf@usebackclippath{discard} |
| 1698 |
\def\board@pgf@usemarkclippath{discard} |
| 1699 |
|
| 1700 |
\def\board@pgf@markclippath{% |
| 1701 |
\pgfusepath{}% |
| 1702 |
\pgfpathrectanglecorners% |
| 1703 |
{\pgfpointadd% |
| 1704 |
{\pgfpointanchor{\board@val@stopprintfilechar\board@val@startprintranknum}{center}}% |
| 1705 |
{\pgfpointadd |
| 1706 |
{\pgfpointxy{0.5}{0.5}}% |
| 1707 |
{\pgfpoint{\board@pgf@markcliprightpadding}{\board@pgf@markcliptoppadding}}% |
| 1708 |
}}% |
| 1709 |
{\pgfpointadd% |
| 1710 |
{\pgfpointanchor{\board@val@startprintfilechar\board@val@stopprintranknum}{center}}% |
| 1711 |
{\pgfpointadd |
| 1712 |
{\pgfpointxy{-0.5}{-0.5}} |
| 1713 |
{\pgfpoint{-\board@pgf@markclipleftpadding}{-\board@pgf@markclipbottompadding}}% |
| 1714 |
}% |
| 1715 |
}% |
| 1716 |
\pgfusepath{\board@pgf@usemarkclippath}} |
| 1717 |
|
| 1718 |
\def\board@pgf@backclippath{% |
| 1719 |
\pgfusepath{}% |
| 1720 |
\pgfpathrectanglecorners% |
| 1721 |
{\pgfpointadd% |
| 1722 |
{\pgfpointanchor{\board@val@stopprintfilechar\board@val@startprintranknum}{center}}% |
| 1723 |
{\pgfpointadd |
| 1724 |
{\pgfpointxy{0.5}{0.5}}% |
| 1725 |
{\pgfpoint{\board@pgf@backcliprightpadding}{\board@pgf@backcliptoppadding}}% |
| 1726 |
}}% |
| 1727 |
{\pgfpointadd% |
| 1728 |
{\pgfpointanchor{\board@val@startprintfilechar\board@val@stopprintranknum}{center}}% |
| 1729 |
{\pgfpointadd |
| 1730 |
{\pgfpointxy{-0.5}{-0.5}} |
| 1731 |
{\pgfpoint{-\board@pgf@backclipleftpadding}{-\board@pgf@backclipbottompadding}}% |
| 1732 |
}% |
| 1733 |
}% |
| 1734 |
\pgfusepath{\board@pgf@usebackclippath}} |
| 1735 |
|
| 1736 |
%% the command called by the markregion key |
| 1737 |
%% the command puts the code directly in the pgf as no loop needed |
| 1738 |
|
| 1739 |
\newcommand\board@pgf@add@regionmarkstyle[2]{% #1=startfield (e.g. a8), #2=stopfield (e.g.h1) |
| 1740 |
\expandafter\board@split@areasort#1-#2ARGEND% |
| 1741 |
\ifthenelse% |
| 1742 |
{\board@test@isareaintrimarea |
| 1743 |
{\board@temp@curstartfilenum}{\board@temp@curstartranknum}% |
| 1744 |
{\board@temp@curstopfilenum}{\board@temp@curstopranknum}}% |
| 1745 |
{\ifcsname board@pgf@regionstyle\board@pgf@curmarkstyle\endcsname |
| 1746 |
\board@pgf@addmarkground{% |
| 1747 |
\def\currentarea{#1-#2}% |
| 1748 |
\expandafter\board@split@areasort#1-#2ARGEND% |
| 1749 |
\edef\currentbq{\board@temp@curstartfilechar\board@temp@curstartranknum}% |
| 1750 |
\edef\currentbk{\board@temp@curstopfilechar\board@temp@curstartranknum}% |
| 1751 |
\edef\currentwq{\board@temp@curstartfilechar\board@temp@curstopranknum}% |
| 1752 |
\edef\currentwk{\board@temp@curstopfilechar\board@temp@curstopranknum}% |
| 1753 |
\def\currentfrom{#1}% |
| 1754 |
\def\currentto{#2}% |
| 1755 |
\pgftransformshift{\pgfpointanchor{#1}{center}}% |
| 1756 |
\expandafter\let\expandafter\board@pgf@curpgfstyle |
| 1757 |
\csname board@pgf@regionstyle\csname board@pgf@curmarkstyle\endcsname\endcsname |
| 1758 |
\edef\next{\noexpand\board@pgf@curpgfstyle |
| 1759 |
{#2}% |
| 1760 |
{\unexpanded\expandafter{\board@pgf@curstyleopt}}}% |
| 1761 |
\next |
| 1762 |
%\csname board@pgf@regionstyle\board@pgf@curmarkstyle\endcsname{#2}% |
| 1763 |
}% |
| 1764 |
\else |
| 1765 |
\PackageWarning{chessboard}% |
| 1766 |
{mark style '\board@pgf@curmarkstyle' not defined for regions! |
| 1767 |
I will ignore the mark commands}% |
| 1768 |
\fi}{}}% |
| 1769 |
|
| 1770 |
%% the command called by the backregion key |
| 1771 |
%% the command puts the code directly in the pgf as no loop needed |
| 1772 |
|
| 1773 |
\newcommand\board@pgf@add@regionbackstyle[2]{% #1=startfield (e.g. a8), #2=stopfield (e.g.h1) |
| 1774 |
\expandafter\board@split@areasort#1-#2ARGEND% |
| 1775 |
\ifthenelse% |
| 1776 |
{\board@test@isareaintrimarea |
| 1777 |
{\board@temp@curstartfilenum}{\board@temp@curstartranknum}% |
| 1778 |
{\board@temp@curstopfilenum}{\board@temp@curstopranknum}}% |
| 1779 |
{\ifcsname board@pgf@regionstyle\board@pgf@curbackstyle\endcsname |
| 1780 |
\board@pgf@addbackground{% |
| 1781 |
\def\currentarea{#1-#2}% |
| 1782 |
\expandafter\board@split@areasort#1-#2ARGEND% |
| 1783 |
\edef\currentbq{\board@temp@curstartfilechar\board@temp@curstartranknum}% |
| 1784 |
\edef\currentbk{\board@temp@curstopfilechar\board@temp@curstartranknum}% |
| 1785 |
\edef\currentwq{\board@temp@curstartfilechar\board@temp@curstopranknum}% |
| 1786 |
\edef\currentwk{\board@temp@curstopfilechar\board@temp@curstopranknum}% |
| 1787 |
\def\currentfrom{#1}% |
| 1788 |
\def\currentto{#2}% |
| 1789 |
\pgftransformshift{\pgfpointanchor{#1}{center}}% |
| 1790 |
\expandafter\let\expandafter\board@pgf@curpgfstyle |
| 1791 |
\csname board@pgf@regionstyle\csname board@pgf@curbackstyle\endcsname\endcsname |
| 1792 |
\edef\next{\noexpand\board@pgf@curpgfstyle |
| 1793 |
{#2}% |
| 1794 |
{\unexpanded\expandafter{\board@pgf@curstyleopt}}}% |
| 1795 |
\next}% |
| 1796 |
\else |
| 1797 |
\PackageWarning{chessboard}% |
| 1798 |
{back style '\board@pgf@curbackstyle' not defined for regions! |
| 1799 |
I will ignore the back commands}% |
| 1800 |
\fi}{}}% |
| 1801 |
|
| 1802 |
%% Move decoration |
| 1803 |
%% the command called by the markmove key |
| 1804 |
%% the command put the code directly in the pgf as no loop needed |
| 1805 |
|
| 1806 |
\newcommand\board@pgf@add@movemarkstyle[2]{% #1=from field, #2=to field. |
| 1807 |
\expandafter\board@split@areasort#1-#2ARGEND% |
| 1808 |
\ifthenelse% |
| 1809 |
{\board@test@isareaintrimarea |
| 1810 |
{\board@temp@curstartfilenum}{\board@temp@curstartranknum}% |
| 1811 |
{\board@temp@curstopfilenum}{\board@temp@curstopranknum}}% |
| 1812 |
{\ifcsname board@pgf@movestyle\board@pgf@curmarkstyle\endcsname |
| 1813 |
\board@pgf@addmarkground{% |
| 1814 |
\def\currentarea{#1-#2}% |
| 1815 |
\expandafter\board@split@areasort#1-#2ARGEND% |
| 1816 |
\edef\currentbq{\board@temp@curstartfilechar\board@temp@curstartranknum}% |
| 1817 |
\edef\currentbk{\board@temp@curstopfilechar\board@temp@curstartranknum}% |
| 1818 |
\edef\currentwq{\board@temp@curstartfilechar\board@temp@curstopranknum}% |
| 1819 |
\edef\currentwk{\board@temp@curstopfilechar\board@temp@curstopranknum}% |
| 1820 |
\def\currentfrom{#1}% |
| 1821 |
\def\currentto{#2}% |
| 1822 |
\pgftransformshift{\pgfpointanchor{#1}{center}}% |
| 1823 |
\expandafter\let\expandafter\board@pgf@curpgfstyle |
| 1824 |
\csname board@pgf@movestyle\csname board@pgf@curmarkstyle\endcsname\endcsname |
| 1825 |
\edef\next{\noexpand\board@pgf@curpgfstyle |
| 1826 |
{#2}% |
| 1827 |
{\unexpanded\expandafter{\board@pgf@curstyleopt}}}% |
| 1828 |
\next |
| 1829 |
}% |
| 1830 |
\else |
| 1831 |
\PackageWarning{chessboard}% |
| 1832 |
{mark style '\board@pgf@curmarkstyle' not defined for moves! |
| 1833 |
I will ignore the mark commands}% |
| 1834 |
\fi}{}}% |
| 1835 |
|
| 1836 |
%% the command called by the backmove key |
| 1837 |
%% the command put the code directly in the pgf as no loop needed |
| 1838 |
|
| 1839 |
\newcommand\board@pgf@add@movebackstyle[2]{% #1=from field, #2=to field. |
| 1840 |
\expandafter\board@split@areasort#1-#2ARGEND% |
| 1841 |
\ifthenelse% |
| 1842 |
{\board@test@isareaintrimarea |
| 1843 |
{\board@temp@curstartfilenum}{\board@temp@curstartranknum}% |
| 1844 |
{\board@temp@curstopfilenum}{\board@temp@curstopranknum}}% |
| 1845 |
{\ifcsname board@pgf@movestyle\board@pgf@curbackstyle\endcsname |
| 1846 |
\board@pgf@addbackground{% |
| 1847 |
\def\currentarea{#1-#2}% |
| 1848 |
\def\currentarea{#1-#2}% |
| 1849 |
\expandafter\board@split@areasort#1-#2ARGEND% |
| 1850 |
\edef\currentbq{\board@temp@curstartfilechar\board@temp@curstartranknum}% |
| 1851 |
\edef\currentbk{\board@temp@curstopfilechar\board@temp@curstartranknum}% |
| 1852 |
\edef\currentwq{\board@temp@curstartfilechar\board@temp@curstopranknum}% |
| 1853 |
\edef\currentwk{\board@temp@curstopfilechar\board@temp@curstopranknum}% |
| 1854 |
\def\currentfrom{#1}% |
| 1855 |
\def\currentto{#2}% |
| 1856 |
\pgftransformshift{\pgfpointanchor{#1}{center}}% |
| 1857 |
\expandafter\let\expandafter\board@pgf@curpgfstyle |
| 1858 |
\csname board@pgf@movestyle\csname board@pgf@curbackstyle\endcsname\endcsname |
| 1859 |
\edef\next{\noexpand\board@pgf@curpgfstyle |
| 1860 |
{#2}% |
| 1861 |
{\unexpanded\expandafter{\board@pgf@curstyleopt}}}% |
| 1862 |
\next |
| 1863 |
}% |
| 1864 |
\else |
| 1865 |
\PackageWarning{chessboard}% |
| 1866 |
{back style '\board@pgf@curbackstyle' not defined for moves! |
| 1867 |
I will ignore the back commands}% |
| 1868 |
\fi}{}}% |
| 1869 |
|
| 1870 |
%%% User command to define pgf styles |
| 1871 |
\newcommand\cbDefinePgfFieldStyle[2]{%#1=name, #2=pgf-commands |
| 1872 |
\expandafter\def\csname board@pgf@fieldstyle#1\endcsname##1##2{% ##1=field |
| 1873 |
\begin{pgfscope}% % ##2=options |
| 1874 |
#2 |
| 1875 |
\end{pgfscope}}}% |
| 1876 |
|
| 1877 |
\newcommand\cbDefinePgfRegionStyle[2]{%#1=name, #2=pgf-commands |
| 1878 |
\expandafter\def\csname board@pgf@regionstyle#1\endcsname##1##2{% ##1=oposite corner |
| 1879 |
\begin{pgfscope}% % ##2=options |
| 1880 |
#2 |
| 1881 |
\end{pgfscope}}}% |
| 1882 |
|
| 1883 |
\newcommand\cbDefinePgfMoveStyle[2]{%#1=name, #2=pgf-commands |
| 1884 |
\expandafter\def\csname board@pgf@movestyle#1\endcsname##1##2{% ##1 =to corner |
| 1885 |
\begin{pgfscope}% % ##2 = options |
| 1886 |
#2 |
| 1887 |
\end{pgfscope}}}% |
| 1888 |
|
| 1889 |
\let\cbDefineMarkFieldStyle\cbDefinePgfFieldStyle |
| 1890 |
\let\cbDefineMarkRegionStyle\cbDefinePgfRegionStyle |
| 1891 |
\let\cbDefineMarkMoveStyle\cbDefinePgfMoveStyle |
| 1892 |
|
| 1893 |
%%% some predefined pgf styles |
| 1894 |
|
| 1895 |
%% style none, don't know if useful |
| 1896 |
|
| 1897 |
\cbDefinePgfFieldStyle{none}{\pgfusepath{discard}}% |
| 1898 |
\cbDefinePgfRegionStyle{none}{\pgfusepath{discard}}% |
| 1899 |
\cbDefinePgfMoveStyle{none}{\pgfusepath{discard}}% |
| 1900 |
|
| 1901 |
%% moves |
| 1902 |
\cbDefinePgfMoveStyle{straightmove}{% |
| 1903 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 1904 |
\setlength\len@board@tempx{\dimexpr 0.1em + \board@pgf@shortenstart \relax}% |
| 1905 |
\pgfsetshortenstart{\len@board@tempx}% |
| 1906 |
\setlength\len@board@tempx{\board@pgf@shortenend}% |
| 1907 |
\pgfsetshortenend{\len@board@tempx}% |
| 1908 |
\pgfsetarrowsend{\board@pgf@arrow}% |
| 1909 |
\pgfsetroundcap |
| 1910 |
\pgfpathmoveto{\pgfpointorigin}% |
| 1911 |
\pgfpathlineto{\pgfpointanchor{#1}{center}}% |
| 1912 |
\pgfusepath{stroke}}% |
| 1913 |
|
| 1914 |
\cbDefinePgfMoveStyle{knightmove}{% |
| 1915 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 1916 |
\pgfsetarrowsend{\board@pgf@arrow}% |
| 1917 |
\setlength\len@board@tempx{\dimexpr 0.3em + \board@pgf@shortenstart \relax}% |
| 1918 |
\pgfsetshortenstart{\len@board@tempx}% |
| 1919 |
\setlength\len@board@tempx{\board@pgf@shortenend}% |
| 1920 |
\pgfsetshortenend{\len@board@tempx}% |
| 1921 |
\pgfextractx{\len@board@tempx}{\pgfpointanchor{#1}{center}}% |
| 1922 |
\pgfextracty{\len@board@tempy}{\pgfpointanchor{#1}{center}}% |
| 1923 |
\pgfpathmoveto{\pgfpointorigin}% |
| 1924 |
\pgfpathcurveto% |
| 1925 |
{\pgfpoint{0pt}{0.8\len@board@tempy}}% |
| 1926 |
{\pgfpoint{0.2\len@board@tempx}{\len@board@tempy}}% |
| 1927 |
{\pgfpointanchor{#1}{center}}% |
| 1928 |
\pgfusepath{stroke}}% |
| 1929 |
|
| 1930 |
%new 1.5. |
| 1931 |
\newcommand\board@pgf@curvemove[2][]{ |
| 1932 |
\setkeys[UFCB]{bez}{#1}% |
| 1933 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 1934 |
\pgfsetarrowsend{\board@pgf@arrow}% |
| 1935 |
\setlength\len@board@tempx{\dimexpr 0.3em + \board@pgf@shortenstart \relax}% |
| 1936 |
\pgfsetshortenstart{\len@board@tempx}% |
| 1937 |
\setlength\len@board@tempx{\board@pgf@shortenend}% |
| 1938 |
\pgfsetshortenend{\len@board@tempx}% |
| 1939 |
\board@pgf@extractangle{\board@temp@angle}{#2}% |
| 1940 |
\board@pgf@extractlength{\len@board@tempy}{#2}% |
| 1941 |
\pgftransformrotate{\board@temp@angle}% |
| 1942 |
\pgfpathmoveto{\pgfpointorigin}% |
| 1943 |
\pgfpathcurveto |
| 1944 |
{\pgfpointadd{\pgfpoint{\board@val@bezxi*\len@board@tempy}{0cm}}% |
| 1945 |
{\pgfpointxy{0}{\board@val@pgfsign*\board@val@bezyi}}}% |
| 1946 |
{\pgfpointadd{\pgfpoint{\board@val@bezxii*\len@board@tempy}{0cm}}% |
| 1947 |
{\pgfpointxy{0}{\board@val@pgfsign*\board@val@bezyii}}}% |
| 1948 |
{\pgfpoint{\len@board@tempy}{0cm}}% |
| 1949 |
\pgfusepath{stroke}% |
| 1950 |
} |
| 1951 |
|
| 1952 |
\cbDefinePgfMoveStyle{curvemove}{% |
| 1953 |
\board@pgf@curvemove[#2]{\pgfpointanchor{#1}{center}}}% |
| 1954 |
|
| 1955 |
\def\board@pgf@curvemovestyle@knight{\setkeys[UFCB]{bez}{x1=1/2,x2=2/3,y1=0.5,y2=0.5}} |
| 1956 |
%% region |
| 1957 |
|
| 1958 |
\cbDefinePgfRegionStyle{text}{% |
| 1959 |
\pgfextractx{\len@board@tempx}{{\pgfpointanchor{#1}{center}}}% |
| 1960 |
\pgfextracty{\len@board@tempy}{{\pgfpointanchor{#1}{center}}}% |
| 1961 |
\pgftransformshift |
| 1962 |
{\pgfpointintersectionoflines |
| 1963 |
{\pgfpointxy{-0.5}{0.5}}% |
| 1964 |
{\pgfpointadd |
| 1965 |
{\pgfpoint{\len@board@tempx}{\len@board@tempy}}% |
| 1966 |
{\pgfpointxy{0.5}{-0.5}}}% |
| 1967 |
{\pgfpointadd |
| 1968 |
{\pgfpoint{\len@board@tempx}{0pt}}% |
| 1969 |
{\pgfpointxy{0.5}{0.5}}}% |
| 1970 |
{\pgfpointadd |
| 1971 |
{\pgfpoint{0pt}{\len@board@tempy}}% |
| 1972 |
{\pgfpointxy{-0.5}{-0.5}}}}% |
| 1973 |
\ifthenelse% |
| 1974 |
{\boolean{\XKV@UFCB@locset@inverse@value}}% |
| 1975 |
{\pgftext[rotate=180,#2]{\normalfont\board@pgf@curtext}}% |
| 1976 |
{\pgftext[#2]{\normalfont\board@pgf@curtext}}}% |
| 1977 |
|
| 1978 |
\cbDefinePgfRegionStyle{border}{% |
| 1979 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 1980 |
\pgfsetcornersarced{\pgfpoint{\board@pgf@corner}{\board@pgf@corner}}% |
| 1981 |
\pgfpathrectanglecorners% |
| 1982 |
{\pgfpointadd% |
| 1983 |
{\pgfpoint{-\board@pgf@padding}{\board@pgf@padding}}% |
| 1984 |
{\pgfpointxy{-0.5}{0.5}}}% |
| 1985 |
{\pgfpointadd% |
| 1986 |
{\pgfpointanchor{#1}{center}}% |
| 1987 |
{\pgfpointadd% |
| 1988 |
{\pgfpoint{\board@pgf@padding}{-\board@pgf@padding}}% |
| 1989 |
{\pgfpointxy{0.5}{-0.5}}}}% |
| 1990 |
\pgfusepath{stroke}}% |
| 1991 |
|
| 1992 |
\cbDefinePgfRegionStyle{color}{% |
| 1993 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 1994 |
\pgfsetcornersarced{\pgfpoint{\board@pgf@corner}{\board@pgf@corner}}% |
| 1995 |
\pgfpathrectanglecorners% |
| 1996 |
{\pgfpointadd% |
| 1997 |
{\pgfpoint{-\board@pgf@padding}{\board@pgf@padding}}% |
| 1998 |
{\pgfpointxy{-0.5}{0.5}}}% |
| 1999 |
{\pgfpointadd% |
| 2000 |
{\pgfpointanchor{#1}{center}}% |
| 2001 |
{\pgfpointadd% |
| 2002 |
{\pgfpoint{\board@pgf@padding}{-\board@pgf@padding}}% |
| 2003 |
{\pgfpointxy{0.5}{-0.5}}}}% |
| 2004 |
\pgfusepath{fill}}% |
| 2005 |
|
| 2006 |
\cbDefinePgfRegionStyle{leftborder}{% |
| 2007 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2008 |
\pgfsetshortenstart{\board@pgf@shortenstart}% |
| 2009 |
\pgfsetshortenend{\board@pgf@shortenend}% |
| 2010 |
\pgfextracty{\len@board@tempy}{{\pgfpointanchor{#1}{center}}}% |
| 2011 |
\pgfpathmoveto{% |
| 2012 |
\pgfpointadd{\pgfpointxy{-0.5}{-0.5}}{\pgfpoint{-\board@pgf@padding}{\len@board@tempy}}}% |
| 2013 |
\pgfpathlineto{% |
| 2014 |
\pgfpointadd{\pgfpointxy{-0.5}{0.5}}{\pgfpoint{-\board@pgf@padding}{0pt}}}% |
| 2015 |
\pgfusepath{stroke}}% |
| 2016 |
|
| 2017 |
\cbDefinePgfRegionStyle{topborder}{% |
| 2018 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2019 |
\pgfsetshortenstart{\board@pgf@shortenstart}% |
| 2020 |
\pgfsetshortenend{\board@pgf@shortenend}% |
| 2021 |
\pgfextractx{\len@board@tempx}{{\pgfpointanchor{#1}{center}}}% |
| 2022 |
\pgfpathmoveto{% |
| 2023 |
\pgfpointadd{\pgfpointxy{-0.5}{0.5}}{\pgfpoint{0pt}{\board@pgf@padding}}}% |
| 2024 |
\pgfpathlineto{% |
| 2025 |
\pgfpointadd{\pgfpointxy{0.5}{0.5}}{\pgfpoint{\len@board@tempx}{\board@pgf@padding}}}% |
| 2026 |
\pgfusepath{stroke}}% |
| 2027 |
|
| 2028 |
\cbDefinePgfRegionStyle{rightborder}{% |
| 2029 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2030 |
\pgfsetshortenstart{\board@pgf@shortenstart}% |
| 2031 |
\pgfsetshortenend{\board@pgf@shortenend}% |
| 2032 |
\pgfextractx{\len@board@tempx}{{\pgfpointanchor{#1}{center}}}% |
| 2033 |
\pgfextracty{\len@board@tempy}{{\pgfpointanchor{#1}{center}}}% |
| 2034 |
\pgfpathmoveto{% |
| 2035 |
\pgfpointadd |
| 2036 |
{\pgfpointxy{0.5}{0.5}}% |
| 2037 |
{\pgfpointadd |
| 2038 |
{\pgfpoint{\len@board@tempx}{0pt}}% |
| 2039 |
{\pgfpoint{\board@pgf@padding}{0pt}}}}% |
| 2040 |
\pgfpathlineto{% |
| 2041 |
\pgfpointadd |
| 2042 |
{\pgfpoint{\len@board@tempx}{\len@board@tempy}}% |
| 2043 |
{\pgfpointadd |
| 2044 |
{\pgfpointxy{0.5}{-0.5}}% |
| 2045 |
{\pgfpoint{\board@pgf@padding}{0pt}}}}% |
| 2046 |
\pgfusepath{stroke}}% |
| 2047 |
|
| 2048 |
\cbDefinePgfRegionStyle{bottomborder}{% |
| 2049 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2050 |
\pgfsetshortenstart{\board@pgf@shortenstart}% |
| 2051 |
\pgfsetshortenend{\board@pgf@shortenend}% |
| 2052 |
\pgfextractx{\len@board@tempx}{{\pgfpointanchor{#1}{center}}}% |
| 2053 |
\pgfextracty{\len@board@tempy}{{\pgfpointanchor{#1}{center}}}% |
| 2054 |
\pgfpathmoveto{% |
| 2055 |
\pgfpointadd |
| 2056 |
{\pgfpointanchor{#1}{center}}% |
| 2057 |
{\pgfpointadd |
| 2058 |
{\pgfpointxy{0.5}{-0.5}}% |
| 2059 |
{\pgfpoint{0pt}{-\board@pgf@padding}}}}% |
| 2060 |
\pgfpathlineto{% |
| 2061 |
\pgfpointadd |
| 2062 |
{\pgfpointxy{-0.5}{-0.5}}% |
| 2063 |
{\pgfpointadd |
| 2064 |
{\pgfpoint{0pt}{\len@board@tempy}}% |
| 2065 |
{\pgfpoint{0pt}{-\board@pgf@padding}}}}% |
| 2066 |
%\pgfpathlineto{{-\board@pgf@padding}{\len@board@tempy}}% |
| 2067 |
\pgfusepath{stroke}}% |
| 2068 |
|
| 2069 |
\cbDefinePgfRegionStyle{lefttopborder}{% |
| 2070 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2071 |
\pgfsetcornersarced{\pgfpoint{\board@pgf@corner}{\board@pgf@corner}}% |
| 2072 |
\pgfsetshortenstart{\board@pgf@shortenstart}% |
| 2073 |
\pgfsetshortenend{\board@pgf@shortenend}% |
| 2074 |
\pgfextracty{\len@board@tempy}{{\pgfpointanchor{#1}{center}}}% |
| 2075 |
\pgfextractx{\len@board@tempx}{{\pgfpointanchor{#1}{center}}}% |
| 2076 |
\pgfpathmoveto{% |
| 2077 |
\pgfpointadd{\pgfpointxy{-0.5}{-0.5}}{\pgfpoint{-\board@pgf@padding}{\len@board@tempy}}}% |
| 2078 |
\pgfpathlineto{% |
| 2079 |
\pgfpointadd{\pgfpointxy{-0.5}{0.5}}{\pgfpoint{-\board@pgf@padding}{\board@pgf@padding}}}% |
| 2080 |
\pgfpathlineto{% |
| 2081 |
\pgfpointadd |
| 2082 |
{\pgfpointxy{0.5}{0.5}}% |
| 2083 |
{\pgfpoint{\len@board@tempx}{\board@pgf@padding}}}% |
| 2084 |
\pgfusepath{stroke}}% |
| 2085 |
|
| 2086 |
\cbDefinePgfRegionStyle{lefttoprightborder}{% |
| 2087 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2088 |
\pgfsetcornersarced{\pgfpoint{\board@pgf@corner}{\board@pgf@corner}}% |
| 2089 |
\pgfsetshortenstart{\board@pgf@shortenstart}% |
| 2090 |
\pgfsetshortenend{\board@pgf@shortenend}% |
| 2091 |
\pgfextracty{\len@board@tempy}{{\pgfpointanchor{#1}{center}}}% |
| 2092 |
\pgfextractx{\len@board@tempx}{{\pgfpointanchor{#1}{center}}}% |
| 2093 |
\pgfpathmoveto{% |
| 2094 |
\pgfpointadd{\pgfpointxy{-0.5}{-0.5}}{\pgfpoint{-\board@pgf@padding}{\len@board@tempy}}}% |
| 2095 |
\pgfpathlineto{% |
| 2096 |
\pgfpointadd{\pgfpointxy{-0.5}{0.5}}{\pgfpoint{-\board@pgf@padding}{\board@pgf@padding}}}% |
| 2097 |
\pgfpathlineto{% |
| 2098 |
\pgfpointadd |
| 2099 |
{\pgfpointxy{0.5}{0.5}}% |
| 2100 |
{\pgfpointadd |
| 2101 |
{\pgfpoint{\len@board@tempx}{\board@pgf@padding}}% |
| 2102 |
{\pgfpoint{\board@pgf@padding}{0pt}}}}% |
| 2103 |
\pgfpathlineto{% |
| 2104 |
\pgfpointadd |
| 2105 |
{\pgfpointxy{0.5}{-0.5}}% |
| 2106 |
{\pgfpointadd |
| 2107 |
{\pgfpoint{\len@board@tempx}{\len@board@tempy}}% |
| 2108 |
{\pgfpoint{\board@pgf@padding}{0pt}}}}% |
| 2109 |
\pgfusepath{stroke}}% |
| 2110 |
|
| 2111 |
\cbDefinePgfRegionStyle{toprightborder}{% |
| 2112 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2113 |
\pgfsetcornersarced{\pgfpoint{\board@pgf@corner}{\board@pgf@corner}}% |
| 2114 |
\pgfsetshortenstart{\board@pgf@shortenstart}% |
| 2115 |
\pgfsetshortenend{\board@pgf@shortenend}% |
| 2116 |
\pgfextracty{\len@board@tempy}{{\pgfpointanchor{#1}{center}}}% |
| 2117 |
\pgfextractx{\len@board@tempx}{{\pgfpointanchor{#1}{center}}}% |
| 2118 |
\pgfpathmoveto{% |
| 2119 |
\pgfpointadd{\pgfpointxy{-0.5}{0.5}}{\pgfpoint{0pt}{\board@pgf@padding}}}% |
| 2120 |
\pgfpathlineto{% |
| 2121 |
\pgfpointadd |
| 2122 |
{\pgfpointxy{0.5}{0.5}}% |
| 2123 |
{\pgfpointadd |
| 2124 |
{\pgfpoint{\len@board@tempx}{\board@pgf@padding}}% |
| 2125 |
{\pgfpoint{\board@pgf@padding}{0pt}}}}% |
| 2126 |
\pgfpathlineto{% |
| 2127 |
\pgfpointadd |
| 2128 |
{\pgfpointxy{0.5}{-0.5}}% |
| 2129 |
{\pgfpointadd |
| 2130 |
{\pgfpoint{\len@board@tempx}{\len@board@tempy}}% |
| 2131 |
{\pgfpoint{\board@pgf@padding}{0pt}}}}% |
| 2132 |
\pgfusepath{stroke}}% |
| 2133 |
|
| 2134 |
\cbDefinePgfRegionStyle{toprightbottomborder}{% |
| 2135 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2136 |
\pgfsetcornersarced{\pgfpoint{\board@pgf@corner}{\board@pgf@corner}}% |
| 2137 |
\pgfsetshortenstart{\board@pgf@shortenstart}% |
| 2138 |
\pgfsetshortenend{\board@pgf@shortenend}% |
| 2139 |
\pgfextracty{\len@board@tempy}{{\pgfpointanchor{#1}{center}}}% |
| 2140 |
\pgfextractx{\len@board@tempx}{{\pgfpointanchor{#1}{center}}}% |
| 2141 |
\pgfpathmoveto{% |
| 2142 |
\pgfpointadd{\pgfpointxy{-0.5}{0.5}}{\pgfpoint{0pt}{\board@pgf@padding}}}% |
| 2143 |
\pgfpathlineto{% |
| 2144 |
\pgfpointadd |
| 2145 |
{\pgfpointxy{0.5}{0.5}}% |
| 2146 |
{\pgfpointadd |
| 2147 |
{\pgfpoint{\len@board@tempx}{\board@pgf@padding}}% |
| 2148 |
{\pgfpoint{\board@pgf@padding}{0pt}}}}% |
| 2149 |
\pgfpathlineto{% |
| 2150 |
\pgfpointadd |
| 2151 |
{\pgfpointxy{0.5}{-0.5}}% |
| 2152 |
{\pgfpointadd |
| 2153 |
{\pgfpoint{\len@board@tempx}{\len@board@tempy}}% |
| 2154 |
{\pgfpoint{\board@pgf@padding}{-\board@pgf@padding}}}}% |
| 2155 |
\pgfpathlineto{% |
| 2156 |
\pgfpointadd |
| 2157 |
{\pgfpointxy{-0.5}{-0.5}}% |
| 2158 |
{\pgfpointadd |
| 2159 |
{\pgfpoint{0pt}{\len@board@tempy}}% |
| 2160 |
{\pgfpoint{0pt}{-\board@pgf@padding}}}}% |
| 2161 |
\pgfusepath{stroke}}% |
| 2162 |
|
| 2163 |
\cbDefinePgfRegionStyle{rightbottomborder}{% |
| 2164 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2165 |
\pgfsetcornersarced{\pgfpoint{\board@pgf@corner}{\board@pgf@corner}}% |
| 2166 |
\pgfsetshortenstart{\board@pgf@shortenstart}% |
| 2167 |
\pgfsetshortenend{\board@pgf@shortenend}% |
| 2168 |
\pgfextractx{\len@board@tempx}{{\pgfpointanchor{#1}{center}}}% |
| 2169 |
\pgfextracty{\len@board@tempy}{{\pgfpointanchor{#1}{center}}}% |
| 2170 |
\pgfpathmoveto{% |
| 2171 |
\pgfpointadd |
| 2172 |
{\pgfpointxy{0.5}{0.5}}% |
| 2173 |
{\pgfpointadd |
| 2174 |
{\pgfpoint{\len@board@tempx}{0pt}}% |
| 2175 |
{\pgfpoint{\board@pgf@padding}{0pt}}}}% |
| 2176 |
\pgfpathlineto{% |
| 2177 |
\pgfpointadd |
| 2178 |
{\pgfpointxy{0.5}{-0.5}}% |
| 2179 |
{\pgfpointadd |
| 2180 |
{\pgfpoint{\len@board@tempx}{\len@board@tempy}}% |
| 2181 |
{\pgfpoint{\board@pgf@padding}{-\board@pgf@padding}}}}% |
| 2182 |
\pgfpathlineto{% |
| 2183 |
\pgfpointadd |
| 2184 |
{\pgfpointxy{-0.5}{-0.5}}% |
| 2185 |
{\pgfpointadd |
| 2186 |
{\pgfpoint{0pt}{\len@board@tempy}}% |
| 2187 |
{\pgfpoint{0pt}{-\board@pgf@padding}}}}% |
| 2188 |
\pgfusepath{stroke}}% |
| 2189 |
|
| 2190 |
\cbDefinePgfRegionStyle{rightbottomleftborder}{% |
| 2191 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2192 |
\pgfsetcornersarced{\pgfpoint{\board@pgf@corner}{\board@pgf@corner}}% |
| 2193 |
\pgfsetshortenstart{\board@pgf@shortenstart}% |
| 2194 |
\pgfsetshortenend{\board@pgf@shortenend}% |
| 2195 |
\pgfextractx{\len@board@tempx}{{\pgfpointanchor{#1}{center}}}% |
| 2196 |
\pgfextracty{\len@board@tempy}{{\pgfpointanchor{#1}{center}}}% |
| 2197 |
\pgfpathmoveto{% |
| 2198 |
\pgfpointadd |
| 2199 |
{\pgfpointxy{0.5}{0.5}}% |
| 2200 |
{\pgfpointadd |
| 2201 |
{\pgfpoint{\len@board@tempx}{0pt}}% |
| 2202 |
{\pgfpoint{\board@pgf@padding}{0pt}}}}% |
| 2203 |
\pgfpathlineto{% |
| 2204 |
\pgfpointadd |
| 2205 |
{\pgfpointxy{0.5}{-0.5}}% |
| 2206 |
{\pgfpointadd |
| 2207 |
{\pgfpoint{\len@board@tempx}{\len@board@tempy}}% |
| 2208 |
{\pgfpoint{\board@pgf@padding}{-\board@pgf@padding}}}}% |
| 2209 |
\pgfpathlineto{% |
| 2210 |
\pgfpointadd |
| 2211 |
{\pgfpointxy{-0.5}{-0.5}}% |
| 2212 |
{\pgfpointadd |
| 2213 |
{\pgfpoint{0pt}{\len@board@tempy}}% |
| 2214 |
{\pgfpoint{-\board@pgf@padding}{-\board@pgf@padding}}}}% |
| 2215 |
\pgfpathlineto{% |
| 2216 |
\pgfpointadd |
| 2217 |
{\pgfpointxy{-0.5}{0.5}}% |
| 2218 |
{\pgfpoint{-\board@pgf@padding}{0pt}}}% |
| 2219 |
\pgfusepath{stroke}}% |
| 2220 |
|
| 2221 |
\cbDefinePgfRegionStyle{bottomleftborder}{% |
| 2222 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2223 |
\pgfsetcornersarced{\pgfpoint{\board@pgf@corner}{\board@pgf@corner}}% |
| 2224 |
\pgfsetshortenstart{\board@pgf@shortenstart}% |
| 2225 |
\pgfsetshortenend{\board@pgf@shortenend}% |
| 2226 |
\pgfextractx{\len@board@tempx}{{\pgfpointanchor{#1}{center}}}% |
| 2227 |
\pgfextracty{\len@board@tempy}{{\pgfpointanchor{#1}{center}}}% |
| 2228 |
\pgfpathmoveto{% |
| 2229 |
\pgfpointadd |
| 2230 |
{\pgfpointanchor{#1}{center}}% |
| 2231 |
{\pgfpointadd |
| 2232 |
{\pgfpointxy{0.5}{-0.5}}% |
| 2233 |
{\pgfpoint{0pt}{-\board@pgf@padding}}}}% |
| 2234 |
\pgfpathlineto{% |
| 2235 |
\pgfpointadd |
| 2236 |
{\pgfpointxy{-0.5}{-0.5}}% |
| 2237 |
{\pgfpointadd |
| 2238 |
{\pgfpoint{0pt}{\len@board@tempy}}% |
| 2239 |
{\pgfpoint{-\board@pgf@padding}{-\board@pgf@padding}}}}% |
| 2240 |
\pgfpathlineto{% |
| 2241 |
\pgfpointadd |
| 2242 |
{\pgfpointxy{-0.5}{0.5}}% |
| 2243 |
{\pgfpoint{-\board@pgf@padding}{0pt}}}% |
| 2244 |
\pgfusepath{stroke}}% |
| 2245 |
|
| 2246 |
\cbDefinePgfRegionStyle{bottomlefttopborder}{% |
| 2247 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2248 |
\pgfsetcornersarced{\pgfpoint{\board@pgf@corner}{\board@pgf@corner}}% |
| 2249 |
\pgfsetshortenstart{\board@pgf@shortenstart}% |
| 2250 |
\pgfsetshortenend{\board@pgf@shortenend}% |
| 2251 |
\pgfextractx{\len@board@tempx}{{\pgfpointanchor{#1}{center}}}% |
| 2252 |
\pgfextracty{\len@board@tempy}{{\pgfpointanchor{#1}{center}}}% |
| 2253 |
\pgfpathmoveto{% |
| 2254 |
\pgfpointadd |
| 2255 |
{\pgfpointanchor{#1}{center}}% |
| 2256 |
{\pgfpointadd |
| 2257 |
{\pgfpointxy{0.5}{-0.5}}% |
| 2258 |
{\pgfpoint{0pt}{-\board@pgf@padding}}}}% |
| 2259 |
\pgfpathlineto{% |
| 2260 |
\pgfpointadd |
| 2261 |
{\pgfpointxy{-0.5}{-0.5}}% |
| 2262 |
{\pgfpointadd |
| 2263 |
{\pgfpoint{0pt}{\len@board@tempy}}% |
| 2264 |
{\pgfpoint{-\board@pgf@padding}{-\board@pgf@padding}}}}% |
| 2265 |
\pgfpathlineto{% |
| 2266 |
\pgfpointadd |
| 2267 |
{\pgfpointxy{-0.5}{0.5}}% |
| 2268 |
{\pgfpoint{-\board@pgf@padding}{\board@pgf@padding}}}% |
| 2269 |
\pgfpathlineto{% |
| 2270 |
\pgfpointadd |
| 2271 |
{\pgfpointxy{0.5}{0.5}}% |
| 2272 |
{\pgfpoint{\len@board@tempx}{\board@pgf@padding}}}% |
| 2273 |
\pgfusepath{stroke}}% |
| 2274 |
|
| 2275 |
%% Fields |
| 2276 |
\cbDefinePgfFieldStyle{cross}{% |
| 2277 |
\pgfsetroundcap |
| 2278 |
\setlength\len@board@tempx{\dimexpr 0.1em + \board@pgf@shortenstart \relax}% |
| 2279 |
\pgfsetshortenstart{\len@board@tempx}% |
| 2280 |
\setlength\len@board@tempx{\dimexpr 0.1em + \board@pgf@shortenend \relax}% |
| 2281 |
\pgfsetshortenend{\len@board@tempx}% |
| 2282 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2283 |
\pgfpathmoveto{\pgfpointxy{0.5}{0.5}}% |
| 2284 |
\pgfpathlineto{\pgfpointxy{-0.5}{-0.5}}% |
| 2285 |
\pgfusepath{stroke}% |
| 2286 |
\pgfpathmoveto{\pgfpointxy{-0.5}{0.5}}% |
| 2287 |
\pgfpathlineto{\pgfpointxy{0.5}{-0.5}}% |
| 2288 |
\pgfusepath{stroke}}% |
| 2289 |
|
| 2290 |
\cbDefinePgfFieldStyle{circle}{% |
| 2291 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2292 |
\setlength\len@board@tempx{\dimexpr 0.55em + \board@pgf@padding \relax}% |
| 2293 |
\pgfpathcircle{\pgfpointxy{0}{0}}{\len@board@tempx}% |
| 2294 |
\pgfusepath{stroke,#2}}% |
| 2295 |
|
| 2296 |
\cbDefinePgfFieldStyle{text}{% |
| 2297 |
\ifthenelse% |
| 2298 |
{\boolean{\XKV@UFCB@locset@inverse@value}}% |
| 2299 |
{\pgftext[rotate=180,#2]{\normalfont\board@pgf@curtext}}% |
| 2300 |
{\pgftext[#2]{\normalfont\board@pgf@curtext}}}% |
| 2301 |
|
| 2302 |
\cbDefinePgfFieldStyle{border}{% |
| 2303 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2304 |
\pgfsetcornersarced{\pgfpoint{\board@pgf@corner}{\board@pgf@corner}}% |
| 2305 |
\pgfpathrectanglecorners |
| 2306 |
{\pgfpointadd% |
| 2307 |
{\pgfpoint{-\board@pgf@padding}{-\board@pgf@padding}}% |
| 2308 |
{\pgfpointxy{-0.5}{-0.5}}}% |
| 2309 |
{\pgfpointadd% |
| 2310 |
{\pgfpoint{\board@pgf@padding}{\board@pgf@padding}}% |
| 2311 |
{\pgfpointxy{0.5}{0.5}}}% |
| 2312 |
\pgfusepath{stroke}}% |
| 2313 |
|
| 2314 |
\cbDefinePgfFieldStyle{color}{% |
| 2315 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2316 |
\pgfsetcornersarced{\pgfpoint{\board@pgf@corner}{\board@pgf@corner}}% |
| 2317 |
\pgfpathrectanglecorners |
| 2318 |
{\pgfpointadd% |
| 2319 |
{\pgfpoint{-\board@pgf@padding}{-\board@pgf@padding}}% |
| 2320 |
{\pgfpointxy{-0.5}{-0.5}}}% |
| 2321 |
{\pgfpointadd% |
| 2322 |
{\pgfpoint{\board@pgf@padding}{\board@pgf@padding}}% |
| 2323 |
{\pgfpointxy{0.5}{0.5}}}% |
| 2324 |
\pgfusepath{fill}}% |
| 2325 |
|
| 2326 |
\cbDefinePgfFieldStyle{leftborder}{% |
| 2327 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2328 |
\pgfsetshortenstart{\board@pgf@shortenstart}% |
| 2329 |
\pgfsetshortenend{\board@pgf@shortenend}% |
| 2330 |
\pgfpathmoveto{% |
| 2331 |
\pgfpointadd{\pgfpointxy{-0.5}{-0.5}}{\pgfpoint{-\board@pgf@padding}{0pt}}}% |
| 2332 |
\pgfpathlineto{% |
| 2333 |
\pgfpointadd{\pgfpointxy{-0.5}{0.5}}{\pgfpoint{-\board@pgf@padding}{0pt}}}% |
| 2334 |
\pgfusepath{stroke}}% |
| 2335 |
|
| 2336 |
\cbDefinePgfFieldStyle{topborder}{% |
| 2337 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2338 |
\pgfsetshortenstart{\board@pgf@shortenstart}% |
| 2339 |
\pgfsetshortenend{\board@pgf@shortenend}% |
| 2340 |
\pgfpathmoveto{% |
| 2341 |
\pgfpointadd{\pgfpointxy{-0.5}{0.5}}{\pgfpoint{0pt}{\board@pgf@padding}}}% |
| 2342 |
\pgfpathlineto{% |
| 2343 |
\pgfpointadd{\pgfpointxy{0.5}{0.5}}{\pgfpoint{0pt}{\board@pgf@padding}}}% |
| 2344 |
\pgfusepath{stroke}}% |
| 2345 |
|
| 2346 |
\cbDefinePgfFieldStyle{rightborder}{% |
| 2347 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2348 |
\pgfsetshortenstart{\board@pgf@shortenstart}% |
| 2349 |
\pgfsetshortenend{\board@pgf@shortenend}% |
| 2350 |
\pgfpathmoveto{% |
| 2351 |
\pgfpointadd |
| 2352 |
{\pgfpointxy{0.5}{0.5}}% |
| 2353 |
{\pgfpoint{\board@pgf@padding}{0pt}}}% |
| 2354 |
\pgfpathlineto{% |
| 2355 |
\pgfpointadd |
| 2356 |
{\pgfpointxy{0.5}{-0.5}}% |
| 2357 |
{\pgfpoint{\board@pgf@padding}{0pt}}}% |
| 2358 |
\pgfusepath{stroke}}% |
| 2359 |
|
| 2360 |
\cbDefinePgfFieldStyle{bottomborder}{% |
| 2361 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2362 |
\pgfsetshortenstart{\board@pgf@shortenstart}% |
| 2363 |
\pgfsetshortenend{\board@pgf@shortenend}% |
| 2364 |
\pgfpathmoveto{% |
| 2365 |
\pgfpointadd |
| 2366 |
{\pgfpointxy{0.5}{-0.5}}% |
| 2367 |
{\pgfpoint{0pt}{-\board@pgf@padding}}}% |
| 2368 |
\pgfpathlineto{% |
| 2369 |
\pgfpointadd |
| 2370 |
{\pgfpointxy{-0.5}{-0.5}}% |
| 2371 |
{\pgfpoint{0pt}{-\board@pgf@padding}}}% |
| 2372 |
\pgfusepath{stroke}}% |
| 2373 |
|
| 2374 |
\cbDefinePgfFieldStyle{lefttopborder}{% |
| 2375 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2376 |
\pgfsetcornersarced{\pgfpoint{\board@pgf@corner}{\board@pgf@corner}}% |
| 2377 |
\pgfsetshortenstart{\board@pgf@shortenstart}% |
| 2378 |
\pgfsetshortenend{\board@pgf@shortenend}% |
| 2379 |
\pgfpathmoveto{% |
| 2380 |
\pgfpointadd{\pgfpointxy{-0.5}{-0.5}}{\pgfpoint{-\board@pgf@padding}{0pt}}}% |
| 2381 |
\pgfpathlineto{% |
| 2382 |
\pgfpointadd{\pgfpointxy{-0.5}{0.5}}{\pgfpoint{-\board@pgf@padding}{\board@pgf@padding}}}% |
| 2383 |
\pgfpathlineto{% |
| 2384 |
\pgfpointadd |
| 2385 |
{\pgfpointxy{0.5}{0.5}}% |
| 2386 |
{\pgfpoint{0pt}{\board@pgf@padding}}}% |
| 2387 |
\pgfusepath{stroke}}% |
| 2388 |
|
| 2389 |
\cbDefinePgfFieldStyle{lefttoprightborder}{% |
| 2390 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2391 |
\pgfsetcornersarced{\pgfpoint{\board@pgf@corner}{\board@pgf@corner}}% |
| 2392 |
\pgfsetshortenstart{\board@pgf@shortenstart}% |
| 2393 |
\pgfsetshortenend{\board@pgf@shortenend}% |
| 2394 |
\pgfpathmoveto{% |
| 2395 |
\pgfpointadd{\pgfpointxy{-0.5}{-0.5}}{\pgfpoint{-\board@pgf@padding}{0pt}}}% |
| 2396 |
\pgfpathlineto{% |
| 2397 |
\pgfpointadd{\pgfpointxy{-0.5}{0.5}}{\pgfpoint{-\board@pgf@padding}{\board@pgf@padding}}}% |
| 2398 |
\pgfpathlineto{% |
| 2399 |
\pgfpointadd |
| 2400 |
{\pgfpointxy{0.5}{0.5}}% |
| 2401 |
{\pgfpointadd |
| 2402 |
{\pgfpoint{0pt}{\board@pgf@padding}}% |
| 2403 |
{\pgfpoint{\board@pgf@padding}{0pt}}}}% |
| 2404 |
\pgfpathlineto{% |
| 2405 |
\pgfpointadd |
| 2406 |
{\pgfpointxy{0.5}{-0.5}}% |
| 2407 |
{\pgfpoint{\board@pgf@padding}{0pt}}}% |
| 2408 |
\pgfusepath{stroke}}% |
| 2409 |
|
| 2410 |
\cbDefinePgfFieldStyle{toprightborder}{% |
| 2411 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2412 |
\pgfsetcornersarced{\pgfpoint{\board@pgf@corner}{\board@pgf@corner}}% |
| 2413 |
\pgfsetshortenstart{\board@pgf@shortenstart}% |
| 2414 |
\pgfsetshortenend{\board@pgf@shortenend}% |
| 2415 |
\pgfpathmoveto{% |
| 2416 |
\pgfpointadd{\pgfpointxy{-0.5}{0.5}}{\pgfpoint{0pt}{\board@pgf@padding}}}% |
| 2417 |
\pgfpathlineto{% |
| 2418 |
\pgfpointadd |
| 2419 |
{\pgfpointxy{0.5}{0.5}}% |
| 2420 |
{\pgfpointadd |
| 2421 |
{\pgfpoint{0pt}{\board@pgf@padding}}% |
| 2422 |
{\pgfpoint{\board@pgf@padding}{0pt}}}}% |
| 2423 |
\pgfpathlineto{% |
| 2424 |
\pgfpointadd |
| 2425 |
{\pgfpointxy{0.5}{-0.5}}% |
| 2426 |
{\pgfpointadd |
| 2427 |
{\pgfpoint{0pt}{0pt}}% |
| 2428 |
{\pgfpoint{\board@pgf@padding}{0pt}}}}% |
| 2429 |
\pgfusepath{stroke}}% |
| 2430 |
|
| 2431 |
\cbDefinePgfFieldStyle{toprightbottomborder}{% |
| 2432 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2433 |
\pgfsetcornersarced{\pgfpoint{\board@pgf@corner}{\board@pgf@corner}}% |
| 2434 |
\pgfsetshortenstart{\board@pgf@shortenstart}% |
| 2435 |
\pgfsetshortenend{\board@pgf@shortenend}% |
| 2436 |
\pgfpathmoveto{% |
| 2437 |
\pgfpointadd{\pgfpointxy{-0.5}{0.5}}{\pgfpoint{0pt}{\board@pgf@padding}}}% |
| 2438 |
\pgfpathlineto{% |
| 2439 |
\pgfpointadd |
| 2440 |
{\pgfpointxy{0.5}{0.5}}% |
| 2441 |
{\pgfpointadd |
| 2442 |
{\pgfpoint{0pt}{\board@pgf@padding}}% |
| 2443 |
{\pgfpoint{\board@pgf@padding}{0pt}}}}% |
| 2444 |
\pgfpathlineto{% |
| 2445 |
\pgfpointadd |
| 2446 |
{\pgfpointxy{0.5}{-0.5}}% |
| 2447 |
{\pgfpointadd |
| 2448 |
{\pgfpoint{0pt}{0pt}}% |
| 2449 |
{\pgfpoint{\board@pgf@padding}{-\board@pgf@padding}}}}% |
| 2450 |
\pgfpathlineto{% |
| 2451 |
\pgfpointadd |
| 2452 |
{\pgfpointxy{-0.5}{-0.5}}% |
| 2453 |
{\pgfpointadd |
| 2454 |
{\pgfpoint{0pt}{0pt}}% |
| 2455 |
{\pgfpoint{0pt}{-\board@pgf@padding}}}}% |
| 2456 |
\pgfusepath{stroke}}% |
| 2457 |
|
| 2458 |
\cbDefinePgfFieldStyle{rightbottomborder}{% |
| 2459 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2460 |
\pgfsetcornersarced{\pgfpoint{\board@pgf@corner}{\board@pgf@corner}}% |
| 2461 |
\pgfsetshortenstart{\board@pgf@shortenstart}% |
| 2462 |
\pgfsetshortenend{\board@pgf@shortenend}% |
| 2463 |
\pgfpathmoveto{% |
| 2464 |
\pgfpointadd |
| 2465 |
{\pgfpointxy{0.5}{0.5}}% |
| 2466 |
{\pgfpointadd |
| 2467 |
{\pgfpoint{0pt}{0pt}}% |
| 2468 |
{\pgfpoint{\board@pgf@padding}{0pt}}}}% |
| 2469 |
\pgfpathlineto{% |
| 2470 |
\pgfpointadd |
| 2471 |
{\pgfpointxy{0.5}{-0.5}}% |
| 2472 |
{\pgfpointadd |
| 2473 |
{\pgfpoint{0pt}{0pt}}% |
| 2474 |
{\pgfpoint{\board@pgf@padding}{-\board@pgf@padding}}}}% |
| 2475 |
\pgfpathlineto{% |
| 2476 |
\pgfpointadd |
| 2477 |
{\pgfpointxy{-0.5}{-0.5}}% |
| 2478 |
{\pgfpointadd |
| 2479 |
{\pgfpoint{0pt}{0pt}}% |
| 2480 |
{\pgfpoint{0pt}{-\board@pgf@padding}}}}% |
| 2481 |
\pgfusepath{stroke}}% |
| 2482 |
|
| 2483 |
\cbDefinePgfFieldStyle{rightbottomleftborder}{% |
| 2484 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2485 |
\pgfsetcornersarced{\pgfpoint{\board@pgf@corner}{\board@pgf@corner}}% |
| 2486 |
\pgfsetshortenstart{\board@pgf@shortenstart}% |
| 2487 |
\pgfsetshortenend{\board@pgf@shortenend}% |
| 2488 |
\pgfpathmoveto{% |
| 2489 |
\pgfpointadd |
| 2490 |
{\pgfpointxy{0.5}{0.5}}% |
| 2491 |
{\pgfpointadd |
| 2492 |
{\pgfpoint{0pt}{0pt}}% |
| 2493 |
{\pgfpoint{\board@pgf@padding}{0pt}}}}% |
| 2494 |
\pgfpathlineto{% |
| 2495 |
\pgfpointadd |
| 2496 |
{\pgfpointxy{0.5}{-0.5}}% |
| 2497 |
{\pgfpointadd |
| 2498 |
{\pgfpoint{0pt}{0pt}}% |
| 2499 |
{\pgfpoint{\board@pgf@padding}{-\board@pgf@padding}}}}% |
| 2500 |
\pgfpathlineto{% |
| 2501 |
\pgfpointadd |
| 2502 |
{\pgfpointxy{-0.5}{-0.5}}% |
| 2503 |
{\pgfpointadd |
| 2504 |
{\pgfpoint{0pt}{0pt}}% |
| 2505 |
{\pgfpoint{-\board@pgf@padding}{-\board@pgf@padding}}}}% |
| 2506 |
\pgfpathlineto{% |
| 2507 |
\pgfpointadd |
| 2508 |
{\pgfpointxy{-0.5}{0.5}}% |
| 2509 |
{\pgfpoint{-\board@pgf@padding}{0pt}}}% |
| 2510 |
\pgfusepath{stroke}}% |
| 2511 |
|
| 2512 |
\cbDefinePgfFieldStyle{bottomleftborder}{% |
| 2513 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2514 |
\pgfsetcornersarced{\pgfpoint{\board@pgf@corner}{\board@pgf@corner}}% |
| 2515 |
\pgfsetshortenstart{\board@pgf@shortenstart}% |
| 2516 |
\pgfsetshortenend{\board@pgf@shortenend}% |
| 2517 |
\pgfpathmoveto{% |
| 2518 |
\pgfpointadd |
| 2519 |
{\pgfpointxy{0.5}{-0.5}}% |
| 2520 |
{\pgfpoint{0pt}{-\board@pgf@padding}}}% |
| 2521 |
\pgfpathlineto{% |
| 2522 |
\pgfpointadd |
| 2523 |
{\pgfpointxy{-0.5}{-0.5}}% |
| 2524 |
{\pgfpointadd |
| 2525 |
{\pgfpoint{0pt}{0pt}}% |
| 2526 |
{\pgfpoint{-\board@pgf@padding}{-\board@pgf@padding}}}}% |
| 2527 |
\pgfpathlineto{% |
| 2528 |
\pgfpointadd |
| 2529 |
{\pgfpointxy{-0.5}{0.5}}% |
| 2530 |
{\pgfpoint{-\board@pgf@padding}{0pt}}}% |
| 2531 |
\pgfusepath{stroke}}% |
| 2532 |
|
| 2533 |
\cbDefinePgfFieldStyle{bottomlefttopborder}{% |
| 2534 |
\pgfsetlinewidth{\board@pgf@linewidth}% |
| 2535 |
\pgfsetcornersarced{\pgfpoint{\board@pgf@corner}{\board@pgf@corner}}% |
| 2536 |
\pgfsetshortenstart{\board@pgf@shortenstart}% |
| 2537 |
\pgfsetshortenend{\board@pgf@shortenend}% |
| 2538 |
\pgfpathmoveto{% |
| 2539 |
\pgfpointadd |
| 2540 |
{\pgfpointxy{0.5}{-0.5}}% |
| 2541 |
{\pgfpoint{0pt}{-\board@pgf@padding}}}% |
| 2542 |
\pgfpathlineto{% |
| 2543 |
\pgfpointadd |
| 2544 |
{\pgfpointxy{-0.5}{-0.5}}% |
| 2545 |
{\pgfpointadd |
| 2546 |
{\pgfpoint{0pt}{0pt}}% |
| 2547 |
{\pgfpoint{-\board@pgf@padding}{-\board@pgf@padding}}}}% |
| 2548 |
\pgfpathlineto{% |
| 2549 |
\pgfpointadd |
| 2550 |
{\pgfpointxy{-0.5}{0.5}}% |
| 2551 |
{\pgfpoint{-\board@pgf@padding}{\board@pgf@padding}}}% |
| 2552 |
\pgfpathlineto{% |
| 2553 |
\pgfpointadd |
| 2554 |
{\pgfpointxy{0.5}{0.5}}% |
| 2555 |
{\pgfpoint{0pt}{\board@pgf@padding}}}% |
| 2556 |
\pgfusepath{stroke}}% |
| 2557 |
|
| 2558 |
|
| 2559 |
%</chessboard-pgf> |
| 2560 |
%<*chessboard-keys-main> |
| 2561 |
\ProvidesFile{chessboard-keys-main.sty}[2024/11/07 version v2.0 key definitions for chessboard.sty] |
| 2562 |
%%$Date: 2011/03/23 08:42:57 $$Version: 66142533647c $ |
| 2563 |
|
| 2564 |
%%file=Linie=column=vertikal=al_f_abetisch= a-h |
| 2565 |
%%rank=Reihe=row=horizontal=numbe_r_=1-8 |
| 2566 |
|
| 2567 |
%%%%%%%%%%%%%%%%%%%%% |
| 2568 |
%%%% Keys |
| 2569 |
%%%%%%%%%%%%%%%%%%%%% |
| 2570 |
%%%% |
| 2571 |
%%% Nullkey, does nothing |
| 2572 |
%%%% |
| 2573 |
\define@key[UFCB]{locinit}{@null}{} |
| 2574 |
\define@key[UFCB]{locset}{@null}{} |
| 2575 |
\define@key[UFCB]{locfill}{@null}{} |
| 2576 |
\define@key[UFCB]{gloinit}{@null}{} |
| 2577 |
\define@key[UFCB]{gloset}{@null}{} |
| 2578 |
\define@key[UFCB]{glofill}{@null}{} |
| 2579 |
%%%% |
| 2580 |
|
| 2581 |
%% internal Keys to expand styles, added in 1.4. to repair xkeyval problem |
| 2582 |
|
| 2583 |
\define@key[UFCB]{@start}{style}{% |
| 2584 |
\toks@=\expandafter\expandafter\expandafter{\csname board@val@style#1keylist\endcsname}% |
| 2585 |
\edef\@@next{\noexpand\board@do@l@addto@macro\noexpand\board@temp@keylist{,\the\toks@}}% |
| 2586 |
\@@next} |
| 2587 |
|
| 2588 |
\define@key[UFCB]{@start}{board@expand}{% |
| 2589 |
\@for\board@temp@keypair:=#1\do |
| 2590 |
{\expandafter\XKV@g@tkeyname\board@temp@keypair=\@nil\board@temp@keyname |
| 2591 |
\edef\next{\noexpand\key@ifundefined[UFCB]{@start}{\board@temp@keyname}}% |
| 2592 |
\next{\expandafter\board@do@l@addto@macro\expandafter\board@temp@keylist\expandafter{\expandafter,\board@temp@keypair}}% |
| 2593 |
{\edef\@next{\noexpand\setkeys[UFCB]{@start}{\board@temp@keypair}}\@next}}}% |
| 2594 |
|
| 2595 |
|
| 2596 |
%%%%% |
| 2597 |
%%% Init keys |
| 2598 |
%%%% |
| 2599 |
|
| 2600 |
%%% |
| 2601 |
%% style, can contain any key, so should be processed at start (init). |
| 2602 |
%%% |
| 2603 |
|
| 2604 |
\define@key[UFCB]{locinit}{style}{% D |
| 2605 |
\csname board@use@locstyle@#1\endcsname} |
| 2606 |
|
| 2607 |
\define@key[UFCB]{gloinit}{style}{% D |
| 2608 |
\board@do@l@addto@macro\board@val@savedkeylist{,style=#1}} |
| 2609 |
|
| 2610 |
%%% |
| 2611 |
%% defaults, should only be set globally (don't make sense elsewhere) |
| 2612 |
%%% |
| 2613 |
|
| 2614 |
\define@choicekey*[UFCB]{gloinit}{moverdefault}[\board@val@mover]{w,b}{} |
| 2615 |
\define@key[UFCB]{gloinit}{castlingdefault}{\def\board@val@castling{#1}} |
| 2616 |
\define@key[UFCB]{gloinit}{enpassantdefault}{\def\board@val@enpassant{#1}} |
| 2617 |
\define@key[UFCB]{gloinit}{halfmovedefault}{\def\board@val@halfmove{#1}} |
| 2618 |
\define@key[UFCB]{gloinit}{fullmovedefault}{\def\board@val@fullmove{#1}} |
| 2619 |
|
| 2620 |
%%% Dimension of the board |
| 2621 |
%%% the right-top corner. Used from clearboard and to set pieces with position |
| 2622 |
|
| 2623 |
\define@key[UFCB]{locinit}{maxfield}{% D |
| 2624 |
\expandafter\board@split@field#1ARGEND% |
| 2625 |
\edef\board@val@maxfilechar{\board@temp@curfilechar}% |
| 2626 |
\edef\board@val@maxfilenum{\board@temp@curfilenum}% |
| 2627 |
\edef\board@val@maxranknum{\board@temp@curranknum}% |
| 2628 |
%% start rank numbers |
| 2629 |
\edef\board@val@startfenranknum{\board@temp@curranknum}% |
| 2630 |
\edef\board@val@startfillranknum{\board@temp@curranknum}% |
| 2631 |
\edef\board@val@startprintranknum{\board@temp@curranknum}% |
| 2632 |
\edef\board@val@startstoreranknum{\board@temp@curranknum}% |
| 2633 |
%% stop file numbers |
| 2634 |
\edef\board@val@stopfillfilenum{\board@temp@curfilenum}% |
| 2635 |
\edef\board@val@stopprintfilenum{\board@temp@curfilenum}% |
| 2636 |
\edef\board@val@stopstorefilenum{\board@temp@curfilenum}% |
| 2637 |
%% stop file chars |
| 2638 |
\edef\board@val@stopfillfilechar{\board@temp@curfilechar}% |
| 2639 |
\edef\board@val@stopprintfilechar{\board@temp@curfilechar}% |
| 2640 |
\edef\board@val@stopstorefilechar{\board@temp@curfilechar}% |
| 2641 |
} |
| 2642 |
|
| 2643 |
\define@key[UFCB]{gloinit}{maxfield}{% D |
| 2644 |
\board@do@l@addto@macro\board@val@savedkeylist{,maxfield=#1}{}} |
| 2645 |
|
| 2646 |
%%% the left-bottom corner can be set to start with @0. |
| 2647 |
%%% Used from clearboard and to set pieces with fen |
| 2648 |
%%% boolean key, true is the default, that is zero is the same as zero=true |
| 2649 |
|
| 2650 |
\define@boolkey[UFCB]{locinit}{zero}[true]{% D |
| 2651 |
\ifUFCB@locinit@zero |
| 2652 |
\def\board@temp@char{Z}% |
| 2653 |
\def\board@temp@num{0}% |
| 2654 |
\else |
| 2655 |
\def\board@temp@char{a}% |
| 2656 |
\def\board@temp@num{1}% |
| 2657 |
\fi |
| 2658 |
\edef\board@val@minfilechar{\board@temp@char}% |
| 2659 |
\edef\board@val@minfilenum{\board@temp@num}% |
| 2660 |
\edef\board@val@minranknum{\board@temp@num}% |
| 2661 |
%% start file numbers |
| 2662 |
\edef\board@val@startfenfilenum{\board@temp@num}% |
| 2663 |
\edef\board@val@startfillfilenum{\board@temp@num}% |
| 2664 |
\edef\board@val@startprintfilenum{\board@temp@num}% |
| 2665 |
\edef\board@val@startstorefilenum{\board@temp@num}% |
| 2666 |
%% start file chars |
| 2667 |
\edef\board@val@startfenfilechar{\board@temp@char}% |
| 2668 |
\edef\board@val@startfillfilechar{\board@temp@char}% |
| 2669 |
\edef\board@val@startprintfilechar{\board@temp@char}% |
| 2670 |
\edef\board@val@startstorefilechar{\board@temp@char}% |
| 2671 |
%% stop rank numbers |
| 2672 |
\edef\board@val@stopfillranknum{\board@temp@num}% |
| 2673 |
\edef\board@val@stopprintranknum{\board@temp@num}% |
| 2674 |
\edef\board@val@stopstoreranknum{\board@temp@num}% |
| 2675 |
} |
| 2676 |
|
| 2677 |
\define@key[UFCB]{gloinit}{zero}[true]{% D |
| 2678 |
\board@do@l@addto@macro\board@val@savedkeylist{,zero=#1}{}} |
| 2679 |
|
| 2680 |
%%% disable the printing |
| 2681 |
\define@boolkey[UFCB]{locinit}{print}[true]{} %D |
| 2682 |
|
| 2683 |
\define@boolkey[UFCB]{gloinit}{print}[true]{% D |
| 2684 |
\board@do@l@addto@macro\board@val@savedkeylist{,print=#1}{}} |
| 2685 |
|
| 2686 |
%%%%%% |
| 2687 |
%% Set-keys |
| 2688 |
%%%%%% |
| 2689 |
%%% "print corner" |
| 2690 |
|
| 2691 |
\define@key[UFCB]{locset}{startprint}{% D |
| 2692 |
\expandafter\board@split@field#1ARGEND% |
| 2693 |
\let\board@val@startprintfilechar\board@temp@curfilechar |
| 2694 |
\let\board@val@startprintfilenum\board@temp@curfilenum |
| 2695 |
\let\board@val@startprintranknum\board@temp@curranknum} |
| 2696 |
|
| 2697 |
\define@key[UFCB]{gloset}{startprint}{% D |
| 2698 |
\board@do@l@addto@macro\board@val@savedkeylist{,startprint=#1}{}} |
| 2699 |
|
| 2700 |
\define@key[UFCB]{locset}{stopprint}{% D |
| 2701 |
\expandafter\board@split@field#1ARGEND% |
| 2702 |
\let\board@val@stopprintfilechar\board@temp@curfilechar |
| 2703 |
\let\board@val@stopprintfilenum\board@temp@curfilenum% |
| 2704 |
\let\board@val@stopprintranknum\board@temp@curranknum} |
| 2705 |
|
| 2706 |
\define@key[UFCB]{gloset}{stopprint}{% D |
| 2707 |
\board@do@l@addto@macro\board@val@savedkeylist{,stopprint=#1}{}} |
| 2708 |
|
| 2709 |
\define@key[UFCB]{locset}{printarea}{% a7-f1 % D |
| 2710 |
\expandafter\board@split@areasort#1ARGEND% |
| 2711 |
\board@do@setsinglekeys*[UFCB]{locset}{% |
| 2712 |
startprint=\board@temp@curstartfield, stopprint=\board@temp@curstopfield}}% |
| 2713 |
|
| 2714 |
\define@key[UFCB]{gloset}{printarea}{% a7-f1 % D |
| 2715 |
\board@do@l@addto@macro\board@val@savedkeylist{,printarea=#1}{}}% |
| 2716 |
|
| 2717 |
%%% print inverse |
| 2718 |
|
| 2719 |
\define@boolkey[UFCB]{locset}{inverse}[true]{} % D |
| 2720 |
|
| 2721 |
\define@boolkey[UFCB]{gloset}{inverse}[true]{% D |
| 2722 |
\board@do@l@addto@macro\board@val@savedkeylist{,inverse=#1}{}} |
| 2723 |
|
| 2724 |
%%% |
| 2725 |
%% margin |
| 2726 |
%%% |
| 2727 |
|
| 2728 |
\define@key[UFCB]{locset}{marginleftwidth}{% D |
| 2729 |
\def\board@val@marginleftwidth{#1}} |
| 2730 |
|
| 2731 |
\define@key[UFCB]{gloset}{marginleftwidth}{% D |
| 2732 |
\board@do@l@addto@macro\board@val@savedkeylist{,marginleftwidth=#1}{}} |
| 2733 |
|
| 2734 |
\define@key[UFCB]{locset}{marginrightwidth}{% D |
| 2735 |
\def\board@val@marginrightwidth{#1}} |
| 2736 |
|
| 2737 |
\define@key[UFCB]{gloset}{marginrightwidth}{% D |
| 2738 |
\board@do@l@addto@macro\board@val@savedkeylist{,marginrightwidth=#1}{}} |
| 2739 |
|
| 2740 |
\define@key[UFCB]{locset}{margintopwidth}{% D |
| 2741 |
\def\board@val@margintopwidth{#1}} |
| 2742 |
|
| 2743 |
\define@key[UFCB]{gloset}{margintopwidth}{% D |
| 2744 |
\board@do@l@addto@macro\board@val@savedkeylist{,margintopwidth=#1}{}} |
| 2745 |
|
| 2746 |
\define@key[UFCB]{locset}{marginbottomwidth}{% D |
| 2747 |
\def\board@val@marginbottomwidth{#1}} |
| 2748 |
|
| 2749 |
\define@key[UFCB]{gloset}{marginbottomwidth}{% D |
| 2750 |
\board@do@l@addto@macro\board@val@savedkeylist{,marginbottomwidth=#1}{}} |
| 2751 |
|
| 2752 |
\define@key[UFCB]{locset}{hmarginwidth}{% D |
| 2753 |
\board@do@setsinglekeys*[UFCB]{locset}{marginleftwidth=#1, marginrightwidth=#1}} |
| 2754 |
|
| 2755 |
\define@key[UFCB]{gloset}{hmarginwidth}{% D |
| 2756 |
\board@do@setsinglekeys*[UFCB]{gloset}{marginleftwidth=#1, marginrightwidth=#1}} |
| 2757 |
|
| 2758 |
\define@key[UFCB]{locset}{vmarginwidth}{% D |
| 2759 |
\board@do@setsinglekeys*[UFCB]{locset}{margintopwidth=#1, marginbottomwidth=#1}} |
| 2760 |
|
| 2761 |
\define@key[UFCB]{gloset}{vmarginwidth}{% D |
| 2762 |
\board@do@setsinglekeys*[UFCB]{gloset}{margintopwidth=#1, marginbottomwidth=#1}} |
| 2763 |
|
| 2764 |
\define@key[UFCB]{locset}{marginwidth}{% D |
| 2765 |
\board@do@setsinglekeys*[UFCB]{locset}{% |
| 2766 |
marginleftwidth=#1, marginrightwidth=#1, margintopwidth=#1, marginbottomwidth=#1}} |
| 2767 |
|
| 2768 |
\define@key[UFCB]{gloset}{marginwidth}{% D |
| 2769 |
\board@do@setsinglekeys*[UFCB]{gloset}{% |
| 2770 |
marginleftwidth=#1, marginrightwidth=#1, margintopwidth=#1, marginbottomwidth=#1}} |
| 2771 |
|
| 2772 |
\define@boolkey[UFCB]{locset}{marginleft}[true]{} %D |
| 2773 |
|
| 2774 |
\define@boolkey[UFCB]{gloset}{marginleft}[true]{% D |
| 2775 |
\board@do@l@addto@macro\board@val@savedkeylist{,marginleft=#1}{}} |
| 2776 |
|
| 2777 |
\define@boolkey[UFCB]{locset}{marginright}[true]{} %D |
| 2778 |
|
| 2779 |
\define@boolkey[UFCB]{gloset}{marginright}[true]{% D |
| 2780 |
\board@do@l@addto@macro\board@val@savedkeylist{,marginright=#1}{}} |
| 2781 |
|
| 2782 |
\define@boolkey[UFCB]{locset}{margintop}[true]{} %D |
| 2783 |
|
| 2784 |
\define@boolkey[UFCB]{gloset}{margintop}[true]{% D |
| 2785 |
\board@do@l@addto@macro\board@val@savedkeylist{,margintop=#1}{}} |
| 2786 |
|
| 2787 |
\define@boolkey[UFCB]{locset}{marginbottom}[true]{} %D |
| 2788 |
|
| 2789 |
\define@boolkey[UFCB]{gloset}{marginbottom}[true]{% D |
| 2790 |
\board@do@l@addto@macro\board@val@savedkeylist{,marginbottom=#1}{}} |
| 2791 |
|
| 2792 |
\define@boolkey[UFCB]{locset}{hmargin}[true]{% D |
| 2793 |
\board@do@setsinglekeys*[UFCB]{locset}{marginleft=#1, marginright=#1}} |
| 2794 |
|
| 2795 |
\define@boolkey[UFCB]{gloset}{hmargin}[true]{% D |
| 2796 |
\board@do@setsinglekeys*[UFCB]{gloset}{marginleft=#1, marginright=#1}} |
| 2797 |
|
| 2798 |
\define@boolkey[UFCB]{locset}{vmargin}[true]{% D |
| 2799 |
\board@do@setsinglekeys*[UFCB]{locset}{margintop=#1, marginbottom=#1}} |
| 2800 |
|
| 2801 |
\define@boolkey[UFCB]{gloset}{vmargin}[true]{% D |
| 2802 |
\board@do@setsinglekeys*[UFCB]{gloset}{margintop=#1, marginbottom=#1}} |
| 2803 |
|
| 2804 |
\define@boolkey[UFCB]{locset}{margin}[true]{% D |
| 2805 |
\board@do@setsinglekeys*[UFCB]{locset}{marginleft=#1, marginright=#1, margintop=#1, marginbottom=#1}} |
| 2806 |
|
| 2807 |
\define@boolkey[UFCB]{gloset}{margin}[true]{% D |
| 2808 |
\board@do@setsinglekeys*[UFCB]{gloset}{marginleft=#1, marginright=#1, margintop=#1, marginbottom=#1}} |
| 2809 |
|
| 2810 |
%% border |
| 2811 |
|
| 2812 |
\define@boolkey[UFCB]{locset}{borderleft}[true]{} % D |
| 2813 |
|
| 2814 |
\define@boolkey[UFCB]{gloset}{borderleft}[true]{% D |
| 2815 |
\board@do@l@addto@macro\board@val@savedkeylist{,borderleft=#1}{}} |
| 2816 |
|
| 2817 |
\define@boolkey[UFCB]{locset}{borderright}[true]{} % D |
| 2818 |
|
| 2819 |
\define@boolkey[UFCB]{gloset}{borderright}[true]{% D |
| 2820 |
\board@do@l@addto@macro\board@val@savedkeylist{,borderright=#1}{}} |
| 2821 |
|
| 2822 |
\define@boolkey[UFCB]{locset}{bordertop}[true]{} %D |
| 2823 |
|
| 2824 |
\define@boolkey[UFCB]{gloset}{bordertop}[true]{% D |
| 2825 |
\board@do@l@addto@macro\board@val@savedkeylist{,bordertop=#1}{}} |
| 2826 |
|
| 2827 |
\define@boolkey[UFCB]{locset}{borderbottom}[true]{} %D |
| 2828 |
|
| 2829 |
\define@boolkey[UFCB]{gloset}{borderbottom}[true]{% D |
| 2830 |
\board@do@l@addto@macro\board@val@savedkeylist{,borderbottom=#1}{}} |
| 2831 |
|
| 2832 |
\define@boolkey[UFCB]{locset}{hborder}[true]{% D |
| 2833 |
\board@do@setsinglekeys*[UFCB]{locset}{borderleft=#1, borderright=#1}} |
| 2834 |
|
| 2835 |
\define@boolkey[UFCB]{gloset}{hborder}[true]{% D |
| 2836 |
\board@do@setsinglekeys*[UFCB]{gloset}{borderleft=#1, borderright=#1}} |
| 2837 |
|
| 2838 |
\define@boolkey[UFCB]{locset}{vborder}[true]{% D |
| 2839 |
\board@do@setsinglekeys*[UFCB]{locset}{bordertop=#1, borderbottom=#1}} |
| 2840 |
|
| 2841 |
\define@boolkey[UFCB]{gloset}{vborder}[true]{% D |
| 2842 |
\board@do@setsinglekeys*[UFCB]{gloset}{bordertop=#1, borderbottom=#1}} |
| 2843 |
|
| 2844 |
\define@boolkey[UFCB]{locset}{border}[true]{% D |
| 2845 |
\board@do@setsinglekeys*[UFCB]{locset}{borderleft=#1, borderright=#1, bordertop=#1, borderbottom=#1}} |
| 2846 |
|
| 2847 |
\define@boolkey[UFCB]{gloset}{border}[true]{% D |
| 2848 |
\board@do@setsinglekeys*[UFCB]{gloset}{borderleft=#1, borderright=#1, bordertop=#1, borderbottom=#1}} |
| 2849 |
|
| 2850 |
\define@key[UFCB]{locset}{borderleftwidth}{% D |
| 2851 |
\def\board@val@borderleftwidth{#1}} |
| 2852 |
|
| 2853 |
\define@key[UFCB]{gloset}{borderleftwidth}{% D |
| 2854 |
\board@do@l@addto@macro\board@val@savedkeylist{,borderleftwidth=#1}{}} |
| 2855 |
|
| 2856 |
\define@key[UFCB]{locset}{borderrightwidth}{% D |
| 2857 |
\def\board@val@borderrightwidth{#1}} |
| 2858 |
|
| 2859 |
\define@key[UFCB]{gloset}{borderrightwidth}{% D |
| 2860 |
\board@do@l@addto@macro\board@val@savedkeylist{,borderrightwidth=#1}{}} |
| 2861 |
|
| 2862 |
\define@key[UFCB]{locset}{bordertopwidth}{% D |
| 2863 |
\def\board@val@bordertopwidth{#1}} |
| 2864 |
|
| 2865 |
\define@key[UFCB]{gloset}{bordertopwidth}{% D |
| 2866 |
\board@do@l@addto@macro\board@val@savedkeylist{,bordertopwidth=#1}{}} |
| 2867 |
|
| 2868 |
\define@key[UFCB]{locset}{borderbottomwidth}{% D |
| 2869 |
\def\board@val@borderbottomwidth{#1}} |
| 2870 |
|
| 2871 |
\define@key[UFCB]{gloset}{borderbottomwidth}{% D |
| 2872 |
\board@do@l@addto@macro\board@val@savedkeylist{,borderbottomwidth=#1}{}} |
| 2873 |
|
| 2874 |
\define@key[UFCB]{locset}{hborderwidth}{% D |
| 2875 |
\board@do@setsinglekeys*[UFCB]{locset}{borderleftwidth=#1, borderrightwidth=#1}} |
| 2876 |
|
| 2877 |
\define@key[UFCB]{gloset}{hborderwidth}{% D |
| 2878 |
\board@do@setsinglekeys*[UFCB]{gloset}{borderleftwidth=#1, borderrightwidth=#1}} |
| 2879 |
|
| 2880 |
\define@key[UFCB]{locset}{vborderwidth}{% D |
| 2881 |
\board@do@setsinglekeys*[UFCB]{locset}{bordertopwidth=#1, borderbottomwidth=#1}} |
| 2882 |
|
| 2883 |
\define@key[UFCB]{gloset}{vborderwidth}{% D |
| 2884 |
\board@do@setsinglekeys*[UFCB]{gloset}{bordertopwidth=#1, borderbottomwidth=#1}} |
| 2885 |
|
| 2886 |
\define@key[UFCB]{locset}{borderwidth}{% D |
| 2887 |
\board@do@setsinglekeys*[UFCB]{locset}{% |
| 2888 |
borderleftwidth=#1, borderrightwidth=#1, bordertopwidth=#1, borderbottomwidth=#1}} |
| 2889 |
|
| 2890 |
\define@key[UFCB]{gloset}{borderwidth}{% D |
| 2891 |
\board@do@setsinglekeys*[UFCB]{gloset}{% |
| 2892 |
borderleftwidth=#1, borderrightwidth=#1, bordertopwidth=#1, borderbottomwidth=#1}} |
| 2893 |
|
| 2894 |
%%% border color |
| 2895 |
|
| 2896 |
\define@key[UFCB]{locset}{borderleftcolor}{% D |
| 2897 |
\def\board@val@borderleftcolor{\color{#1}}} |
| 2898 |
|
| 2899 |
\define@key[UFCB]{gloset}{borderleftcolor}{% D |
| 2900 |
\board@do@l@addto@macro\board@val@savedkeylist{,borderleftcolor=#1}{}} |
| 2901 |
|
| 2902 |
\define@key[UFCB]{locset}{borderrightcolor}{% D |
| 2903 |
\def\board@val@borderrightcolor{\color{#1}}} |
| 2904 |
|
| 2905 |
\define@key[UFCB]{gloset}{borderrightcolor}{% D |
| 2906 |
\board@do@l@addto@macro\board@val@savedkeylist{,borderrightcolor=#1}{}} |
| 2907 |
|
| 2908 |
\define@key[UFCB]{locset}{bordertopcolor}{% D |
| 2909 |
\def\board@val@bordertopcolor{\color{#1}}} |
| 2910 |
|
| 2911 |
\define@key[UFCB]{gloset}{bordertopcolor}{% D |
| 2912 |
\board@do@l@addto@macro\board@val@savedkeylist{,bordertopcolor=#1}{}} |
| 2913 |
|
| 2914 |
\define@key[UFCB]{locset}{borderbottomcolor}{% D |
| 2915 |
\def\board@val@borderbottomcolor{\color{#1}}} |
| 2916 |
|
| 2917 |
\define@key[UFCB]{gloset}{borderbottomcolor}{% D |
| 2918 |
\board@do@l@addto@macro\board@val@savedkeylist{,borderbottomcolor=#1}{}} |
| 2919 |
|
| 2920 |
\define@key[UFCB]{locset}{hbordercolor}{% D |
| 2921 |
\board@do@setsinglekeys*[UFCB]{locset}{borderleftcolor=#1, borderrightcolor=#1}} |
| 2922 |
|
| 2923 |
\define@key[UFCB]{gloset}{hbordercolor}{% D |
| 2924 |
\board@do@setsinglekeys*[UFCB]{gloset}{borderleftcolor=#1, borderrightcolor=#1}} |
| 2925 |
|
| 2926 |
\define@key[UFCB]{locset}{vbordercolor}{% D |
| 2927 |
\board@do@setsinglekeys*[UFCB]{locset}{bordertopcolor=#1, borderbottomcolor=#1}} |
| 2928 |
|
| 2929 |
\define@key[UFCB]{gloset}{vbordercolor}{% D |
| 2930 |
\board@do@setsinglekeys*[UFCB]{gloset}{bordertopcolor=#1, borderbottomcolor=#1}} |
| 2931 |
|
| 2932 |
\define@key[UFCB]{locset}{bordercolor}{% D |
| 2933 |
\board@do@setsinglekeys*[UFCB]{locset}{% |
| 2934 |
borderleftcolor=#1, borderrightcolor=#1, bordertopcolor=#1, borderbottomcolor=#1}} |
| 2935 |
|
| 2936 |
\define@key[UFCB]{gloset}{bordercolor}{% D |
| 2937 |
\board@do@setsinglekeys*[UFCB]{gloset}{% |
| 2938 |
borderleftcolor=#1, borderrightcolor=#1, bordertopcolor=#1, borderbottomcolor=#1}} |
| 2939 |
|
| 2940 |
%%%% |
| 2941 |
%% font |
| 2942 |
%%% |
| 2943 |
|
| 2944 |
\define@key[UFCB]{locset}{boardfontsize}{% D |
| 2945 |
\setboardfontsize{#1}} |
| 2946 |
|
| 2947 |
\define@key[UFCB]{gloset}{boardfontsize}{% D |
| 2948 |
\board@do@l@addto@macro\board@val@savedkeylist{,boardfontsize=#1}{}} |
| 2949 |
|
| 2950 |
\define@key[UFCB]{locset}{boardfontfamily}{% D |
| 2951 |
\setboardfontfamily{#1}} |
| 2952 |
|
| 2953 |
\define@key[UFCB]{gloset}{boardfontfamily}{% D |
| 2954 |
\board@do@l@addto@macro\board@val@savedkeylist{,boardfontfamily=#1}{}} |
| 2955 |
|
| 2956 |
\define@key[UFCB]{locset}{boardfontseries}{% D |
| 2957 |
\setboardfontseries{#1}} |
| 2958 |
|
| 2959 |
\define@key[UFCB]{gloset}{boardfontseries}{% D |
| 2960 |
\board@do@l@addto@macro\board@val@savedkeylist{,boardfontseries=#1}{}} |
| 2961 |
|
| 2962 |
%% shorter name: |
| 2963 |
|
| 2964 |
\define@key[UFCB]{locset}{fontsize}{% |
| 2965 |
\board@do@setsinglekeys*[UFCB]{locset}{boardfontsize=#1}} |
| 2966 |
|
| 2967 |
\define@key[UFCB]{gloset}{fontsize}{% |
| 2968 |
\board@do@setsinglekeys*[UFCB]{gloset}{boardfontsize=#1}} |
| 2969 |
|
| 2970 |
\define@key[UFCB]{locset}{fontfamily}{% |
| 2971 |
\board@do@setsinglekeys*[UFCB]{locset}{boardfontfamily=#1}} |
| 2972 |
|
| 2973 |
\define@key[UFCB]{gloset}{fontfamily}{% |
| 2974 |
\board@do@setsinglekeys*[UFCB]{locset}{boardfontfamily=#1}} |
| 2975 |
|
| 2976 |
%%% only for the sake of completeness. Better don't mention it. |
| 2977 |
\define@key[UFCB]{locset}{boardfontencoding}{% D |
| 2978 |
\def\cfss@boardfontencoding{#1}} |
| 2979 |
|
| 2980 |
\define@key[UFCB]{gloset}{boardfontencoding}{% D |
| 2981 |
\board@do@l@addto@macro\board@val@savedkeylist{,boardfontencoding=#1}{}} |
| 2982 |
|
| 2983 |
%%% mover |
| 2984 |
|
| 2985 |
\define@boolkey[UFCB]{locset}{showmover}[true]{} % D |
| 2986 |
|
| 2987 |
\define@boolkey[UFCB]{gloset}{showmover}[true]{% D |
| 2988 |
\board@do@l@addto@macro\board@val@savedkeylist{,showmover=#1}{}} |
| 2989 |
|
| 2990 |
\define@key[UFCB]{locset}{moversize}{% D |
| 2991 |
\def\board@val@moversize{#1}} |
| 2992 |
|
| 2993 |
\define@key[UFCB]{gloset}{moversize}{% D |
| 2994 |
\board@do@l@addto@macro\board@val@savedkeylist{,moversize=#1}{}} |
| 2995 |
|
| 2996 |
\define@key[UFCB]{locset}{moverstyle}{% D |
| 2997 |
\def\board@val@moverstyle{#1}} |
| 2998 |
|
| 2999 |
\define@key[UFCB]{gloset}{moverstyle}{% D |
| 3000 |
\board@do@l@addto@macro\board@val@savedkeylist{,moverstyle=#1}{}} |
| 3001 |
|
| 3002 |
\define@key[UFCB]{locset}{moverbottomlift}{% D |
| 3003 |
\def\board@val@moverbottomlift{#1}} |
| 3004 |
|
| 3005 |
\define@key[UFCB]{gloset}{moverbottomlift}{% D |
| 3006 |
\board@do@l@addto@macro\board@val@savedkeylist{,moverbottomlift=#1}{}} |
| 3007 |
|
| 3008 |
\define@key[UFCB]{locset}{movertoplift}{% D |
| 3009 |
\def\board@val@movertoplift{#1}} |
| 3010 |
|
| 3011 |
\define@key[UFCB]{gloset}{movertoplift}{% D |
| 3012 |
\board@do@l@addto@macro\board@val@savedkeylist{,movertoplift=#1}{}} |
| 3013 |
|
| 3014 |
\define@key[UFCB]{locset}{moverlift}{% D |
| 3015 |
\board@do@setsinglekeys*[UFCB]{locset}{moverbottomlift=#1,movertoplift=#1}} |
| 3016 |
|
| 3017 |
\define@key[UFCB]{gloset}{moverlift}{% D |
| 3018 |
\board@do@setsinglekeys*[UFCB]{gloset}{moverbottomlift=#1,movertoplift=#1}} |
| 3019 |
|
| 3020 |
\define@key[UFCB]{locset}{moverbottomshift}{% D |
| 3021 |
\def\board@val@moverbottomshift{#1}} |
| 3022 |
|
| 3023 |
\define@key[UFCB]{gloset}{moverbottomshift}{% D |
| 3024 |
\board@do@l@addto@macro\board@val@savedkeylist{,moverbottomshift=#1}{}} |
| 3025 |
|
| 3026 |
\define@key[UFCB]{locset}{movertopshift}{% D |
| 3027 |
\def\board@val@movertopshift{#1}} |
| 3028 |
|
| 3029 |
\define@key[UFCB]{gloset}{movertopshift}{% D |
| 3030 |
\board@do@l@addto@macro\board@val@savedkeylist{,movertopshift=#1}{}} |
| 3031 |
|
| 3032 |
\define@key[UFCB]{locset}{movershift}{% D |
| 3033 |
\board@do@setsinglekeys*[UFCB]{locset}{moverbottomshift=#1, movertopshift=#1}} |
| 3034 |
|
| 3035 |
\define@key[UFCB]{gloset}{movershift}{% D |
| 3036 |
\board@do@setsinglekeys*[UFCB]{gloset}{moverbottomshift=#1, movertopshift=#1}} |
| 3037 |
|
| 3038 |
%%% labels |
| 3039 |
|
| 3040 |
\define@boolkey[UFCB]{locset}{labelleft}[true]{} %D |
| 3041 |
|
| 3042 |
\define@boolkey[UFCB]{gloset}{labelleft}[true]{% D |
| 3043 |
\board@do@l@addto@macro\board@val@savedkeylist{,labelleft=#1}{}} |
| 3044 |
|
| 3045 |
\define@boolkey[UFCB]{locset}{labelright}[true]{} %D |
| 3046 |
|
| 3047 |
\define@boolkey[UFCB]{gloset}{labelright}[true]{% D |
| 3048 |
\board@do@l@addto@macro\board@val@savedkeylist{,labelright=#1}{}} |
| 3049 |
|
| 3050 |
\define@boolkey[UFCB]{locset}{labeltop}[true]{} %D |
| 3051 |
|
| 3052 |
\define@boolkey[UFCB]{gloset}{labeltop}[true]{% D |
| 3053 |
\board@do@l@addto@macro\board@val@savedkeylist{,labeltop=#1}{}} |
| 3054 |
|
| 3055 |
\define@boolkey[UFCB]{locset}{labelbottom}[true]{} %D |
| 3056 |
|
| 3057 |
\define@boolkey[UFCB]{gloset}{labelbottom}[true]{% D |
| 3058 |
\board@do@l@addto@macro\board@val@savedkeylist{,labelbottom=#1}{}} |
| 3059 |
|
| 3060 |
\define@boolkey[UFCB]{locset}{hlabel}[true]{% D |
| 3061 |
\board@do@setsinglekeys*[UFCB]{locset}{labelleft=#1, labelright=#1}} |
| 3062 |
|
| 3063 |
\define@boolkey[UFCB]{gloset}{hlabel}[true]{% D |
| 3064 |
\board@do@setsinglekeys*[UFCB]{gloset}{labelleft=#1, labelright=#1}} |
| 3065 |
|
| 3066 |
\define@boolkey[UFCB]{locset}{vlabel}[true]{% D |
| 3067 |
\board@do@setsinglekeys*[UFCB]{locset}{labeltop=#1, labelbottom=#1}} |
| 3068 |
|
| 3069 |
\define@boolkey[UFCB]{gloset}{vlabel}[true]{% D |
| 3070 |
\board@do@setsinglekeys*[UFCB]{gloset}{labeltop=#1, labelbottom=#1}} |
| 3071 |
|
| 3072 |
\define@boolkey[UFCB]{locset}{label}[true]{% D |
| 3073 |
\board@do@setsinglekeys*[UFCB]{locset}{% |
| 3074 |
labelleft=#1, labelright=#1, labeltop=#1, labelbottom=#1}} |
| 3075 |
|
| 3076 |
\define@boolkey[UFCB]{gloset}{label}[true]{% D |
| 3077 |
\board@do@setsinglekeys*[UFCB]{gloset}{% |
| 3078 |
labelleft=#1, labelright=#1, labeltop=#1, labelbottom=#1}} |
| 3079 |
|
| 3080 |
%% width |
| 3081 |
\define@key[UFCB]{locset}{labelleftwidth}{% D |
| 3082 |
\def\board@val@labelleftwidth{#1}} |
| 3083 |
|
| 3084 |
\define@key[UFCB]{gloset}{labelleftwidth}{% D |
| 3085 |
\board@do@l@addto@macro\board@val@savedkeylist{,labelleftwidth=#1}{}} |
| 3086 |
|
| 3087 |
\define@key[UFCB]{locset}{labelrightwidth}{% D |
| 3088 |
\def\board@val@labelrightwidth{#1}} |
| 3089 |
|
| 3090 |
\define@key[UFCB]{gloset}{labelrightwidth}{% D |
| 3091 |
\board@do@l@addto@macro\board@val@savedkeylist{,labelrightwidth=#1}{}} |
| 3092 |
|
| 3093 |
\define@key[UFCB]{locset}{labelbottomwidth}{% D |
| 3094 |
\def\board@val@labelbottomwidth{#1}} |
| 3095 |
|
| 3096 |
\define@key[UFCB]{gloset}{labelbottomwidth}{% D |
| 3097 |
\board@do@l@addto@macro\board@val@savedkeylist{,labelbottomwidth=#1}{}} |
| 3098 |
|
| 3099 |
\define@key[UFCB]{locset}{hlabelwidth}{% D |
| 3100 |
\board@do@setsinglekeys*[UFCB]{locset}{labelleftwidth=#1, labelrightwidth=#1}} |
| 3101 |
|
| 3102 |
\define@key[UFCB]{gloset}{hlabelwidth}{% D |
| 3103 |
\board@do@setsinglekeys*[UFCB]{gloset}{labelleftwidth=#1, labelrightwidth=#1}} |
| 3104 |
|
| 3105 |
%% lift |
| 3106 |
\define@key[UFCB]{locset}{labelleftlift}{% D |
| 3107 |
\def\board@val@labelleftlift{#1}} |
| 3108 |
|
| 3109 |
\define@key[UFCB]{gloset}{labelleftlift}{% D |
| 3110 |
\board@do@l@addto@macro\board@val@savedkeylist{,labelleftlift=#1}{}} |
| 3111 |
|
| 3112 |
\define@key[UFCB]{locset}{labelrightlift}{% D |
| 3113 |
\def\board@val@labelrightlift{#1}} |
| 3114 |
|
| 3115 |
\define@key[UFCB]{gloset}{labelrightlift}{% D |
| 3116 |
\board@do@l@addto@macro\board@val@savedkeylist{,labelrightlift=#1}{}} |
| 3117 |
|
| 3118 |
\define@key[UFCB]{locset}{labeltoplift}{% D |
| 3119 |
\def\board@val@labeltoplift{#1}} |
| 3120 |
|
| 3121 |
\define@key[UFCB]{gloset}{labeltoplift}{% D |
| 3122 |
\board@do@l@addto@macro\board@val@savedkeylist{,labeltoplift=#1}{}} |
| 3123 |
|
| 3124 |
\define@key[UFCB]{locset}{labelbottomlift}{% D |
| 3125 |
\def\board@val@labelbottomlift{#1}} |
| 3126 |
|
| 3127 |
\define@key[UFCB]{gloset}{labelbottomlift}{% D |
| 3128 |
\board@do@l@addto@macro\board@val@savedkeylist{,labelbottomlift=#1}{}} |
| 3129 |
|
| 3130 |
\define@key[UFCB]{locset}{hlabellift}{% D |
| 3131 |
\board@do@setsinglekeys*[UFCB]{locset}{labelleftlift=#1, labelrightlift=#1}} |
| 3132 |
|
| 3133 |
\define@key[UFCB]{gloset}{hlabellift}{% D |
| 3134 |
\board@do@setsinglekeys*[UFCB]{gloset}{labelleftlift=#1, labelrightlift=#1}} |
| 3135 |
|
| 3136 |
\define@key[UFCB]{locset}{vlabellift}{% D |
| 3137 |
\board@do@setsinglekeys*[UFCB]{locset}{labeltoplift=#1, labelbottomlift=#1}} |
| 3138 |
|
| 3139 |
\define@key[UFCB]{gloset}{vlabellift}{% D |
| 3140 |
\board@do@setsinglekeys*[UFCB]{gloset}{labeltoplift=#1, labelbottomlift=#1}} |
| 3141 |
|
| 3142 |
%% font |
| 3143 |
|
| 3144 |
\define@key[UFCB]{locset}{labelleftfont}{% D |
| 3145 |
\def\board@val@labelleftfont{#1}} |
| 3146 |
|
| 3147 |
\define@key[UFCB]{gloset}{labelleftfont}{% D |
| 3148 |
\board@do@l@addto@macro\board@val@savedkeylist{,labelleftfont=#1}{}} |
| 3149 |
|
| 3150 |
\define@key[UFCB]{locset}{labelrightfont}{% D |
| 3151 |
\def\board@val@labelrightfont{#1}} |
| 3152 |
|
| 3153 |
\define@key[UFCB]{gloset}{labelrightfont}{% D |
| 3154 |
\board@do@l@addto@macro\board@val@savedkeylist{,labelrightfont=#1}{}} |
| 3155 |
|
| 3156 |
\define@key[UFCB]{locset}{labeltopfont}{% D |
| 3157 |
\def\board@val@labeltopfont{#1}} |
| 3158 |
|
| 3159 |
\define@key[UFCB]{gloset}{labeltopfont}{% D |
| 3160 |
\board@do@l@addto@macro\board@val@savedkeylist{,labeltopfont=#1}{}} |
| 3161 |
|
| 3162 |
\define@key[UFCB]{locset}{labelbottomfont}{% D |
| 3163 |
\def\board@val@labelbottomfont{#1}} |
| 3164 |
|
| 3165 |
\define@key[UFCB]{gloset}{labelbottomfont}{% D |
| 3166 |
\board@do@l@addto@macro\board@val@savedkeylist{,labelbottomfont=#1}{}} |
| 3167 |
|
| 3168 |
\define@key[UFCB]{locset}{hlabelfont}{% D |
| 3169 |
\board@do@setsinglekeys*[UFCB]{locset}{labelleftfont=#1, labelrightfont=#1}} |
| 3170 |
|
| 3171 |
\define@key[UFCB]{gloset}{hlabelfont}{% D |
| 3172 |
\board@do@setsinglekeys*[UFCB]{gloset}{labelleftfont=#1, labelrightfont=#1}}% |
| 3173 |
|
| 3174 |
\define@key[UFCB]{locset}{vlabelfont}{% D |
| 3175 |
\board@do@setsinglekeys*[UFCB]{locset}{labeltopfont=#1, labelbottomfont=#1}}% |
| 3176 |
|
| 3177 |
\define@key[UFCB]{gloset}{vlabelfont}{% D |
| 3178 |
\board@do@setsinglekeys*[UFCB]{gloset}{labeltopfont=#1, labelbottomfont=#1}}% |
| 3179 |
|
| 3180 |
\define@key[UFCB]{locset}{labelfont}{% D |
| 3181 |
\board@do@setsinglekeys*[UFCB]{locset}{% |
| 3182 |
labelleftfont=#1, labelrightfont=#1, labeltopfont=#1, labelbottomfont=#1}}% |
| 3183 |
|
| 3184 |
\define@key[UFCB]{gloset}{labelfont}{% D |
| 3185 |
\board@do@setsinglekeys*[UFCB]{gloset}{labelleftfont=#1, labelrightfont=#1, labeltopfont=#1, labelbottomfont=#1}}% |
| 3186 |
|
| 3187 |
%%fontsize |
| 3188 |
|
| 3189 |
\define@key[UFCB]{locset}{labelfontsize}{% D |
| 3190 |
\def\cfss@sidefontsize{#1}}% |
| 3191 |
|
| 3192 |
\define@key[UFCB]{gloset}{labelfontsize}{% D |
| 3193 |
\board@do@l@addto@macro\board@val@savedkeylist{,labelfontsize=#1}{}}% |
| 3194 |
|
| 3195 |
%% formatting |
| 3196 |
|
| 3197 |
\define@key[UFCB]{locset}{labelleftformat}{% D |
| 3198 |
\def\board@val@labelleftformat{#1}}% |
| 3199 |
|
| 3200 |
\define@key[UFCB]{gloset}{labelleftformat}{% D |
| 3201 |
\board@do@l@addto@macro\board@val@savedkeylist{,labelleftformat={#1}}{}}% |
| 3202 |
|
| 3203 |
\define@key[UFCB]{locset}{labelrightformat}{% D |
| 3204 |
\def\board@val@labelrightformat{#1}}% |
| 3205 |
|
| 3206 |
\define@key[UFCB]{gloset}{labelrightformat}{%D |
| 3207 |
\board@do@l@addto@macro\board@val@savedkeylist{,labelrightformat={#1}}{}}% |
| 3208 |
|
| 3209 |
\define@key[UFCB]{locset}{labeltopformat}{% D |
| 3210 |
\def\board@val@labeltopformat{#1}}% |
| 3211 |
|
| 3212 |
\define@key[UFCB]{gloset}{labeltopformat}{% D |
| 3213 |
\board@do@l@addto@macro\board@val@savedkeylist{,labeltopformat={#1}}{}}% |
| 3214 |
|
| 3215 |
\define@key[UFCB]{locset}{labelbottomformat}{% D |
| 3216 |
\def\board@val@labelbottomformat{#1}}% |
| 3217 |
|
| 3218 |
\define@key[UFCB]{gloset}{labelbottomformat}{% D |
| 3219 |
\board@do@l@addto@macro\board@val@savedkeylist{,labelbottomformat={#1}}{}}% |
| 3220 |
|
| 3221 |
\define@key[UFCB]{locset}{hlabelformat}{% D |
| 3222 |
\board@do@setsinglekeys*[UFCB]{locset}{labelleftformat=#1, labelrightformat=#1}}% |
| 3223 |
|
| 3224 |
\define@key[UFCB]{gloset}{hlabelformat}{% D |
| 3225 |
\board@do@setsinglekeys*[UFCB]{gloset}{labelleftformat={#1}, labelrightformat={#1}}}% |
| 3226 |
|
| 3227 |
\define@key[UFCB]{locset}{vlabelformat}{% D |
| 3228 |
\board@do@setsinglekeys*[UFCB]{locset}{labeltopformat=#1, labelbottomformat=#1}}% |
| 3229 |
|
| 3230 |
\define@key[UFCB]{gloset}{vlabelformat}{% D |
| 3231 |
\board@do@setsinglekeys*[UFCB]{gloset}{labeltopformat={#1}, labelbottomformat={#1}}}% |
| 3232 |
|
| 3233 |
\define@key[UFCB]{locset}{labelformat}{% D |
| 3234 |
\board@do@setsinglekeys*[UFCB]{locset}{% |
| 3235 |
labelleftformat=#1, labelrightformat=#1, labeltopformat=#1, labelbottomformat=#1}}% |
| 3236 |
|
| 3237 |
\define@key[UFCB]{gloset}{labelformat}{% D |
| 3238 |
\board@do@setsinglekeys*[UFCB]{gloset}{% |
| 3239 |
labelleftformat={#1}, labelrightformat={#1}, labeltopformat={#1}, labelbottomformat={#1}}}% |
| 3240 |
|
| 3241 |
%%% |
| 3242 |
%% Board sizes |
| 3243 |
%%% |
| 3244 |
|
| 3245 |
\define@key[UFCB]{locset}{tinyboard}[true]{% D |
| 3246 |
\board@do@setsinglekeys*[UFCB]{locset}{fontsize=10pt, labelfontsize=6pt}}% |
| 3247 |
|
| 3248 |
\define@key[UFCB]{gloset}{tinyboard}[true]{% D |
| 3249 |
\board@do@setsinglekeys*[UFCB]{gloset}{fontsize=10pt, labelfontsize=6pt}}% |
| 3250 |
|
| 3251 |
\define@key[UFCB]{locset}{smallboard}[true]{% D |
| 3252 |
\board@do@setsinglekeys*[UFCB]{locset}{fontsize=15pt, labelfontsize=8pt}}% |
| 3253 |
|
| 3254 |
\define@key[UFCB]{gloset}{smallboard}[true]{% D |
| 3255 |
\board@do@setsinglekeys*[UFCB]{gloset}{fontsize=15pt, labelfontsize=8pt}}% |
| 3256 |
|
| 3257 |
\define@key[UFCB]{locset}{normalboard}[true]{% D |
| 3258 |
\board@do@setsinglekeys*[UFCB]{locset}{fontsize=20pt, labelfontsize=10pt}}% |
| 3259 |
|
| 3260 |
\define@key[UFCB]{gloset}{normalboard}[true]{% D |
| 3261 |
\board@do@setsinglekeys*[UFCB]{gloset}{fontsize=20pt, labelfontsize=10pt}}% |
| 3262 |
|
| 3263 |
\define@key[UFCB]{locset}{largeboard}[true]{% D |
| 3264 |
\board@do@setsinglekeys*[UFCB]{locset}{fontsize=30pt, labelfontsize=12pt}}% |
| 3265 |
|
| 3266 |
\define@key[UFCB]{gloset}{largeboard}[true]{% D |
| 3267 |
\board@do@setsinglekeys*[UFCB]{gloset}{fontsize=30pt, labelfontsize=12pt}}% |
| 3268 |
|
| 3269 |
%%% coloring the font layer |
| 3270 |
\define@key[UFCB]{locfill}{clearfontcolors}[true]{% D |
| 3271 |
\def\board@val@fontcolorstack{}} |
| 3272 |
|
| 3273 |
\define@key[UFCB]{glofill}{clearfontcolors}[true]{% D |
| 3274 |
\board@do@l@addto@macro\board@val@savedkeylist{,clearfontcolors=#1}{}}% |
| 3275 |
|
| 3276 |
\define@key[UFCB]{locfill}{whitefieldmaskcolor}{% D |
| 3277 |
\board@do@l@addto@macro\board@val@fontcolorstack |
| 3278 |
{\def\cfss@whitefieldmaskcolor{\color{#1}}}} |
| 3279 |
|
| 3280 |
\define@key[UFCB]{glofill}{whitefieldmaskcolor}{% D |
| 3281 |
\board@do@l@addto@macro\board@val@savedkeylist{,whitefieldmaskcolor=#1}{}}% |
| 3282 |
|
| 3283 |
\define@key[UFCB]{locfill}{blackfieldmaskcolor}{% D |
| 3284 |
\board@do@l@addto@macro\board@val@fontcolorstack |
| 3285 |
{\def\cfss@blackfieldmaskcolor{\color{#1}}}} |
| 3286 |
|
| 3287 |
\define@key[UFCB]{glofill}{blackfieldmaskcolor}{% D |
| 3288 |
\board@do@l@addto@macro\board@val@savedkeylist{,blackfieldmaskcolor=#1}{}}% |
| 3289 |
|
| 3290 |
\define@key[UFCB]{locfill}{fieldmaskcolor}{% D |
| 3291 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 3292 |
whitefieldmaskcolor=#1, |
| 3293 |
blackfieldmaskcolor=#1}} |
| 3294 |
|
| 3295 |
\define@key[UFCB]{glofill}{fieldmaskcolor}{% D |
| 3296 |
\board@do@l@addto@macro\board@val@savedkeylist{,fieldmaskcolor=#1}{}}% |
| 3297 |
|
| 3298 |
\define@key[UFCB]{locfill}{whitefieldcolor}{% D |
| 3299 |
\board@do@l@addto@macro\board@val@fontcolorstack |
| 3300 |
{\def\cfss@whitefieldcolor{\color{#1}}}} |
| 3301 |
|
| 3302 |
\define@key[UFCB]{glofill}{whitefieldcolor}{% D |
| 3303 |
\board@do@l@addto@macro\board@val@savedkeylist{,whitefieldcolor=#1}{}}% |
| 3304 |
|
| 3305 |
\define@key[UFCB]{locfill}{blackfieldcolor}{% D |
| 3306 |
\board@do@l@addto@macro\board@val@fontcolorstack |
| 3307 |
{\def\cfss@blackfieldcolor{\color{#1}}}} |
| 3308 |
|
| 3309 |
\define@key[UFCB]{glofill}{blackfieldcolor}{% D |
| 3310 |
\board@do@l@addto@macro\board@val@savedkeylist{,blackfieldcolor=#1}{}}% |
| 3311 |
|
| 3312 |
\define@key[UFCB]{locfill}{fieldcolor}{% D |
| 3313 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 3314 |
whitefieldcolor=#1, |
| 3315 |
blackfieldcolor=#1}} |
| 3316 |
|
| 3317 |
\define@key[UFCB]{glofill}{fieldcolor}{% D |
| 3318 |
\board@do@l@addto@macro\board@val@savedkeylist{,fieldcolor=#1}{}}% |
| 3319 |
|
| 3320 |
\define@key[UFCB]{locfill}{whiteonwhitepiecemaskcolor}{% D |
| 3321 |
\board@do@l@addto@macro\board@val@fontcolorstack |
| 3322 |
{\def\cfss@whiteonwhitepiecemaskcolor{\color{#1}}}} |
| 3323 |
|
| 3324 |
\define@key[UFCB]{glofill}{whiteonwhitepiecemaskcolor}{% D |
| 3325 |
\board@do@l@addto@macro\board@val@savedkeylist{,whiteonwhitepiecemaskcolor=#1}{}}% |
| 3326 |
|
| 3327 |
\define@key[UFCB]{locfill}{whiteonblackpiecemaskcolor}{% D |
| 3328 |
\board@do@l@addto@macro\board@val@fontcolorstack |
| 3329 |
{\def\cfss@whiteonblackpiecemaskcolor{\color{#1}}}} |
| 3330 |
|
| 3331 |
\define@key[UFCB]{glofill}{whiteonblackpiecemaskcolor}{% D |
| 3332 |
\board@do@l@addto@macro\board@val@savedkeylist{,whiteonblackpiecemaskcolor=#1}{}}% |
| 3333 |
|
| 3334 |
\define@key[UFCB]{locfill}{blackonwhitepiecemaskcolor}{% D |
| 3335 |
\board@do@l@addto@macro\board@val@fontcolorstack |
| 3336 |
{\def\cfss@blackonwhitepiecemaskcolor{\color{#1}}}} |
| 3337 |
|
| 3338 |
\define@key[UFCB]{glofill}{blackonwhitepiecemaskcolor}{% D |
| 3339 |
\board@do@l@addto@macro\board@val@savedkeylist{,blackonwhitepiecemaskcolor=#1}{}}% |
| 3340 |
|
| 3341 |
\define@key[UFCB]{locfill}{blackonblackpiecemaskcolor}{% D |
| 3342 |
\board@do@l@addto@macro\board@val@fontcolorstack |
| 3343 |
{\def\cfss@blackonblackpiecemaskcolor{\color{#1}}}} |
| 3344 |
|
| 3345 |
\define@key[UFCB]{glofill}{blackonblackpiecemaskcolor}{% D |
| 3346 |
\board@do@l@addto@macro\board@val@savedkeylist{,blackonblackpiecemaskcolor=#1}{}}% |
| 3347 |
|
| 3348 |
\define@key[UFCB]{locfill}{whitepiecemaskcolor}{% D |
| 3349 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 3350 |
whiteonwhitepiecemaskcolor=#1, |
| 3351 |
whiteonblackpiecemaskcolor=#1}} |
| 3352 |
|
| 3353 |
\define@key[UFCB]{glofill}{whitepiecemaskcolor}{% D |
| 3354 |
\board@do@l@addto@macro\board@val@savedkeylist{,whitepiecemaskcolor=#1}{}}% |
| 3355 |
|
| 3356 |
\define@key[UFCB]{locfill}{blackpiecemaskcolor}{% D |
| 3357 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 3358 |
blackonwhitepiecemaskcolor=#1, |
| 3359 |
blackonblackpiecemaskcolor=#1}} |
| 3360 |
|
| 3361 |
\define@key[UFCB]{glofill}{blackpiecemaskcolor}{% D |
| 3362 |
\board@do@l@addto@macro\board@val@savedkeylist{,blackpiecemaskcolor=#1}{}}% |
| 3363 |
|
| 3364 |
\define@key[UFCB]{locfill}{onwhitepiecemaskcolor}{% D |
| 3365 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 3366 |
whiteonwhitepiecemaskcolor=#1, |
| 3367 |
blackonwhitepiecemaskcolor=#1}} |
| 3368 |
|
| 3369 |
\define@key[UFCB]{glofill}{onwhitepiecemaskcolor}{% D |
| 3370 |
\board@do@l@addto@macro\board@val@savedkeylist{,onwhitepiecemaskcolor=#1}{}}% |
| 3371 |
|
| 3372 |
\define@key[UFCB]{locfill}{onblackpiecemaskcolor}{% D |
| 3373 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 3374 |
whiteonblackpiecemaskcolor=#1, |
| 3375 |
blackonblackpiecemaskcolor=#1}} |
| 3376 |
|
| 3377 |
\define@key[UFCB]{glofill}{onblackpiecemaskcolor}{% D |
| 3378 |
\board@do@l@addto@macro\board@val@savedkeylist{,onblackpiecemaskcolor=#1}{}}% |
| 3379 |
|
| 3380 |
\define@key[UFCB]{locfill}{piecemaskcolor}{% D |
| 3381 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 3382 |
whiteonwhitepiecemaskcolor=#1, |
| 3383 |
whiteonblackpiecemaskcolor=#1, |
| 3384 |
blackonwhitepiecemaskcolor=#1, |
| 3385 |
blackonblackpiecemaskcolor=#1}} |
| 3386 |
|
| 3387 |
\define@key[UFCB]{glofill}{piecemaskcolor}{% D |
| 3388 |
\board@do@l@addto@macro\board@val@savedkeylist{,piecemaskcolor=#1}{}}% |
| 3389 |
|
| 3390 |
\define@key[UFCB]{locfill}{whitepiececolor}{% D |
| 3391 |
\board@do@l@addto@macro\board@val@fontcolorstack |
| 3392 |
{\def\cfss@whitepiececolor{\color{#1}}}} |
| 3393 |
|
| 3394 |
\define@key[UFCB]{glofill}{whitepiececolor}{% D |
| 3395 |
\board@do@l@addto@macro\board@val@savedkeylist{,whitepiececolor=#1}{}}% |
| 3396 |
|
| 3397 |
\define@key[UFCB]{locfill}{blackpiececolor}{% D |
| 3398 |
\board@do@l@addto@macro\board@val@fontcolorstack |
| 3399 |
{\def\cfss@blackpiececolor{\color{#1}}}} |
| 3400 |
|
| 3401 |
\define@key[UFCB]{glofill}{blackpiececolor}{% D |
| 3402 |
\board@do@l@addto@macro\board@val@savedkeylist{,blackpiececolor=#1}{}}% |
| 3403 |
|
| 3404 |
\define@key[UFCB]{locfill}{piececolor}{% D |
| 3405 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 3406 |
whitepiececolor=#1, |
| 3407 |
blackpiececolor=#1}} |
| 3408 |
|
| 3409 |
\define@key[UFCB]{glofill}{piececolor}{% D |
| 3410 |
\board@do@l@addto@macro\board@val@savedkeylist{,piececolor=#1}{}}% |
| 3411 |
|
| 3412 |
%% Obsolete + changed, use whitepiececolor |
| 3413 |
\define@key[UFCB]{locfill}{colorwhite}{% D |
| 3414 |
\board@do@l@addto@macro\board@val@fontcolorstack |
| 3415 |
{\def\cfss@whitepiececolor{\color{#1}}}} |
| 3416 |
|
| 3417 |
\define@key[UFCB]{glofill}{colorwhite}{% D |
| 3418 |
\board@do@l@addto@macro\board@val@savedkeylist{,colorwhite=#1}{}}% |
| 3419 |
|
| 3420 |
\define@key[UFCB]{locfill}{colorblack}{% D |
| 3421 |
\board@do@l@addto@macro\board@val@fontcolorstack |
| 3422 |
{\def\cfss@blackpiececolor{\color{#1}}}} |
| 3423 |
|
| 3424 |
\define@key[UFCB]{glofill}{colorblack}{% D |
| 3425 |
\board@do@l@addto@macro\board@val@savedkeylist{,colorblack=#1}{}}% |
| 3426 |
|
| 3427 |
%% end obsolete |
| 3428 |
|
| 3429 |
%% setting board colors |
| 3430 |
\define@key[UFCB]{locfill}{setfontcolors}[true]{% D |
| 3431 |
\let\board@val@boardfontcolors\board@val@fontcolorstack} |
| 3432 |
|
| 3433 |
\define@key[UFCB]{glofill}{setfontcolors}[true]{% D |
| 3434 |
\board@do@l@addto@macro\board@val@savedkeylist{,setfontcolors=#1}{}}% |
| 3435 |
|
| 3436 |
\define@key[UFCB]{locfill}{addfontcolors}[true]{% D |
| 3437 |
\toks@=\expandafter{\board@val@fontcolorstack}% |
| 3438 |
\edef\@@next{\noexpand\board@do@l@addto@macro\noexpand\board@val@boardfontcolors{\the\toks@}}% |
| 3439 |
\@@next} |
| 3440 |
|
| 3441 |
\define@key[UFCB]{glofill}{setfontcolors}[true]{% D |
| 3442 |
\board@do@l@addto@macro\board@val@savedkeylist{,setfontcolors=#1}{}}% |
| 3443 |
|
| 3444 |
%% color in areas. |
| 3445 |
|
| 3446 |
|
| 3447 |
%%% enable postscript units and node |
| 3448 |
\define@boolkey[UFCB]{locset}{psset}[true]{}% D |
| 3449 |
|
| 3450 |
\define@boolkey[UFCB]{gloset}{psset}[true]{% D |
| 3451 |
\board@do@l@addto@macro\board@val@savedkeylist{,psset=#1}{}}% |
| 3452 |
|
| 3453 |
%%% redefines some skak commands/skak counters |
| 3454 |
\define@boolkey[UFCB]{locset}{psskak}[true]{}% D |
| 3455 |
|
| 3456 |
\define@boolkey[UFCB]{gloset}{psskak}[true]{% D |
| 3457 |
\board@do@l@addto@macro\board@val@savedkeylist{,psskak=#1}{}}% |
| 3458 |
|
| 3459 |
%%%%%% |
| 3460 |
%% "fill"-Keys that can be used more than once |
| 3461 |
%%%%%% |
| 3462 |
|
| 3463 |
%%%% |
| 3464 |
%% language |
| 3465 |
%%%% |
| 3466 |
|
| 3467 |
\define@key[UFCB]{locfill}{language}{% D |
| 3468 |
\edef\board@val@curlang{#1}}% |
| 3469 |
|
| 3470 |
\define@key[UFCB]{glofill}{language}{% D |
| 3471 |
\board@do@l@addto@macro\board@val@savedkeylist{,language=#1}}% |
| 3472 |
|
| 3473 |
%%%% |
| 3474 |
%% clearing |
| 3475 |
%%%% |
| 3476 |
|
| 3477 |
\define@key[UFCB]{locfill}{cleararea}{% D |
| 3478 |
\edef\board@temp@list{#1}% |
| 3479 |
\@for\board@temp@curarea:=\board@temp@list\do |
| 3480 |
{\board@do@cleararea{\board@temp@curarea}}}% |
| 3481 |
|
| 3482 |
\define@key[UFCB]{glofill}{cleararea}{% D |
| 3483 |
\board@do@l@addto@macro\board@val@savedkeylist{,cleararea={#1}}}% |
| 3484 |
|
| 3485 |
\define@key[UFCB]{locfill}{clearareas}{% D |
| 3486 |
\edef\board@temp@list{#1}% |
| 3487 |
\@for\board@temp@curarea:=\board@temp@list\do |
| 3488 |
{\board@do@cleararea{\board@temp@curarea}}}% |
| 3489 |
|
| 3490 |
\define@key[UFCB]{glofill}{clearareas}{% D |
| 3491 |
\board@do@l@addto@macro\board@val@savedkeylist{,clearareas={#1}}}% |
| 3492 |
|
| 3493 |
\define@key[UFCB]{locfill}{clearboard}[true]{%D |
| 3494 |
\edef\board@temp@curstartfield{\board@val@minfilechar\board@val@maxranknum}% |
| 3495 |
\edef\board@temp@curstopfield{\board@val@maxfilechar\board@val@minranknum}% |
| 3496 |
\board@do@setsinglekeys*[UFCB]{locfill}{cleararea=\board@temp@curstartfield-\board@temp@curstopfield}}% |
| 3497 |
|
| 3498 |
\define@key[UFCB]{glofill}{clearboard}[true]{%D |
| 3499 |
\board@do@l@addto@macro\board@val@savedkeylist{,clearboard=#1}}% |
| 3500 |
|
| 3501 |
\define@key[UFCB]{locfill}{clearrank}{%D |
| 3502 |
\edef\board@temp@list{#1}% |
| 3503 |
\@for\board@temp@currank:=\board@temp@list\do |
| 3504 |
{\edef\board@temp@curstartfield{\board@val@minfilechar\board@temp@currank}% |
| 3505 |
\edef\board@temp@curstopfield{\board@val@maxfilechar\board@temp@currank}% |
| 3506 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 3507 |
cleararea=\board@temp@curstartfield-\board@temp@curstopfield}}}% |
| 3508 |
|
| 3509 |
\define@key[UFCB]{glofill}{clearrank}{%D |
| 3510 |
\board@do@l@addto@macro\board@val@savedkeylist{,clearrank={#1}}}% |
| 3511 |
|
| 3512 |
\define@key[UFCB]{locfill}{clearranks}{%D |
| 3513 |
\edef\board@temp@list{#1}% |
| 3514 |
\@for\board@temp@currank:=\board@temp@list\do |
| 3515 |
{\edef\board@temp@curstartfield{\board@val@minfilechar\board@temp@currank}% |
| 3516 |
\edef\board@temp@curstopfield{\board@val@maxfilechar\board@temp@currank}% |
| 3517 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 3518 |
cleararea=\board@temp@curstartfield-\board@temp@curstopfield}}}% |
| 3519 |
|
| 3520 |
\define@key[UFCB]{glofill}{clearranks}{%D |
| 3521 |
\board@do@l@addto@macro\board@val@savedkeylist{,clearranks={#1}}}% |
| 3522 |
|
| 3523 |
\define@key[UFCB]{locfill}{clearfile}{%D |
| 3524 |
\edef\board@temp@list{#1}% |
| 3525 |
\@for\board@temp@curfile:=\board@temp@list\do |
| 3526 |
{\edef\board@temp@curstartfield{\board@temp@curfile\board@val@maxranknum}% |
| 3527 |
\edef\board@temp@curstopfield{\board@temp@curfile\board@val@minranknum}% |
| 3528 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 3529 |
cleararea=\board@temp@curstartfield-\board@temp@curstopfield}}}% |
| 3530 |
|
| 3531 |
\define@key[UFCB]{glofill}{clearfile}{%D |
| 3532 |
\board@do@l@addto@macro\board@val@savedkeylist{,clearfile={#1}}}% |
| 3533 |
|
| 3534 |
\define@key[UFCB]{locfill}{clearfiles}{%D |
| 3535 |
\edef\board@temp@list{#1}% |
| 3536 |
\@for\board@temp@curfile:=\board@temp@list\do |
| 3537 |
{\edef\board@temp@curstartfield{\board@temp@curfile\board@val@maxranknum}% |
| 3538 |
\edef\board@temp@curstopfield{\board@temp@curfile\board@val@minranknum}% |
| 3539 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 3540 |
cleararea=\board@temp@curstartfield-\board@temp@curstopfield}}}% |
| 3541 |
|
| 3542 |
\define@key[UFCB]{glofill}{clearfiles}{%D |
| 3543 |
\board@do@l@addto@macro\board@val@savedkeylist{,clearfiles={#1}}}% |
| 3544 |
|
| 3545 |
\define@key[UFCB]{locfill}{clearfield}{% #1=list of fields %D |
| 3546 |
\edef\board@temp@list{#1}% |
| 3547 |
\@for\board@temp@curfield:=\board@temp@list\do |
| 3548 |
{\board@do@setsinglekeys*[UFCB]{locfill}{cleararea=\board@temp@curfield-\board@temp@curfield}}}% |
| 3549 |
|
| 3550 |
\define@key[UFCB]{glofill}{clearfield}{% %D |
| 3551 |
\board@do@l@addto@macro\board@val@savedkeylist{,clearfield={#1}}}% |
| 3552 |
|
| 3553 |
\define@key[UFCB]{locfill}{clearfields}{% #1=list of fields %D |
| 3554 |
\edef\board@temp@list{#1}% |
| 3555 |
\@for\board@temp@curfield:=\board@temp@list\do |
| 3556 |
{\board@do@setsinglekeys*[UFCB]{locfill}{cleararea=\board@temp@curfield-\board@temp@curfield}}}% |
| 3557 |
|
| 3558 |
\define@key[UFCB]{glofill}{clearfields}{% %D |
| 3559 |
\board@do@l@addto@macro\board@val@savedkeylist{,clearfields={#1}}}% |
| 3560 |
|
| 3561 |
%%%% |
| 3562 |
%% hiding |
| 3563 |
%%%% |
| 3564 |
|
| 3565 |
\define@key[UFCB]{locfill}{hidearea}{% D |
| 3566 |
\board@do@hidearea{#1}}% |
| 3567 |
|
| 3568 |
\define@key[UFCB]{glofill}{hidearea}{% D |
| 3569 |
\board@do@l@addto@macro\board@val@savedkeylist{,hidearea={#1}}}% |
| 3570 |
|
| 3571 |
\define@key[UFCB]{locfill}{hideareas}{% D |
| 3572 |
\edef\board@temp@list{#1}% |
| 3573 |
\@for\board@temp@curarea:=\board@temp@list\do |
| 3574 |
{\board@do@hidearea{\board@temp@curarea}}}% |
| 3575 |
|
| 3576 |
\define@key[UFCB]{glofill}{hideareas}{% D |
| 3577 |
\board@do@l@addto@macro\board@val@savedkeylist{,hideareas={#1}}}% |
| 3578 |
|
| 3579 |
\define@key[UFCB]{locfill}{hideboard}[true]{% D |
| 3580 |
\edef\board@temp@curstartfield{\board@val@minfilechar\board@val@maxranknum}% |
| 3581 |
\edef\board@temp@curstopfield{\board@val@maxfilechar\board@val@minranknum}% |
| 3582 |
\board@do@setsinglekeys*[UFCB]{locfill}{hidearea=\board@temp@curstartfield-\board@temp@curstopfield}}% |
| 3583 |
|
| 3584 |
\define@key[UFCB]{glofill}{hideboard}[true]{% D |
| 3585 |
\board@do@l@addto@macro\board@val@savedkeylist{,hideboard=#1}}% |
| 3586 |
|
| 3587 |
\define@key[UFCB]{locfill}{hiderank}{% D |
| 3588 |
\edef\board@temp@list{#1}% |
| 3589 |
\@for\board@temp@currank:=\board@temp@list\do |
| 3590 |
{\edef\board@temp@curstartfield{\board@val@minfilechar\board@temp@currank}% |
| 3591 |
\edef\board@temp@curstopfield{\board@val@maxfilechar\board@temp@currank}% |
| 3592 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 3593 |
hidearea=\board@temp@curstartfield-\board@temp@curstopfield}}}% |
| 3594 |
|
| 3595 |
\define@key[UFCB]{glofill}{hiderank}{% D |
| 3596 |
\board@do@l@addto@macro\board@val@savedkeylist{,hiderank={#1}}}% |
| 3597 |
|
| 3598 |
\define@key[UFCB]{locfill}{hideranks}{% D |
| 3599 |
\edef\board@temp@list{#1}% |
| 3600 |
\@for\board@temp@currank:=\board@temp@list\do |
| 3601 |
{\edef\board@temp@curstartfield{\board@val@minfilechar\board@temp@currank}% |
| 3602 |
\edef\board@temp@curstopfield{\board@val@maxfilechar\board@temp@currank}% |
| 3603 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 3604 |
hidearea=\board@temp@curstartfield-\board@temp@curstopfield}}}% |
| 3605 |
|
| 3606 |
\define@key[UFCB]{glofill}{hideranks}{% D |
| 3607 |
\board@do@l@addto@macro\board@val@savedkeylist{,hideranks={#1}}}% |
| 3608 |
|
| 3609 |
\define@key[UFCB]{locfill}{hidefile}{% D |
| 3610 |
\edef\board@temp@list{#1}% |
| 3611 |
\@for\board@temp@curfile:=\board@temp@list\do |
| 3612 |
{\edef\board@temp@curstartfield{\board@temp@curfile\board@val@maxranknum}% |
| 3613 |
\edef\board@temp@curstopfield{\board@temp@curfile\board@val@minranknum}% |
| 3614 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 3615 |
hidearea=\board@temp@curstartfield-\board@temp@curstopfield}}}% |
| 3616 |
|
| 3617 |
\define@key[UFCB]{glofill}{hidefile}{% D |
| 3618 |
\board@do@l@addto@macro\board@val@savedkeylist{,hidefile={#1}}}% |
| 3619 |
|
| 3620 |
\define@key[UFCB]{locfill}{hidefiles}{% D |
| 3621 |
\edef\board@temp@list{#1}% |
| 3622 |
\@for\board@temp@curfile:=\board@temp@list\do |
| 3623 |
{\edef\board@temp@curstartfield{\board@temp@curfile\board@val@maxranknum}% |
| 3624 |
\edef\board@temp@curstopfield{\board@temp@curfile\board@val@minranknum}% |
| 3625 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 3626 |
hidearea=\board@temp@curstartfield-\board@temp@curstopfield}}}% |
| 3627 |
|
| 3628 |
\define@key[UFCB]{glofill}{hidefiles}{% D |
| 3629 |
\board@do@l@addto@macro\board@val@savedkeylist{,hidefiles={#1}}}% |
| 3630 |
|
| 3631 |
\define@key[UFCB]{locfill}{hidefields}{% D #1=list of fields |
| 3632 |
\edef\board@temp@list{#1}% |
| 3633 |
\@for\board@temp@curfield:=\board@temp@list\do |
| 3634 |
{\board@do@setsinglekeys*[UFCB]{locfill}{hidearea=\board@temp@curfield-\board@temp@curfield}}}% |
| 3635 |
|
| 3636 |
\define@key[UFCB]{glofill}{hidefields}{% D |
| 3637 |
\board@do@l@addto@macro\board@val@savedkeylist{,hidefields={#1}}}% |
| 3638 |
|
| 3639 |
\define@key[UFCB]{locfill}{hidefield}{% D #1=list of fields |
| 3640 |
\edef\board@temp@list{#1}% |
| 3641 |
\@for\board@temp@curfield:=\board@temp@list\do |
| 3642 |
{\board@do@setsinglekeys*[UFCB]{locfill}{hidearea=\board@temp@curfield-\board@temp@curfield}}}% |
| 3643 |
|
| 3644 |
\define@key[UFCB]{glofill}{hidefield}{% D |
| 3645 |
\board@do@l@addto@macro\board@val@savedkeylist{,hidefield={#1}}}% |
| 3646 |
|
| 3647 |
\define@key[UFCB]{locfill}{hidepiece}{% D list of chars |
| 3648 |
\board@do@hidetypelist{#1}}% |
| 3649 |
|
| 3650 |
\define@key[UFCB]{glofill}{hidepiece}{% D |
| 3651 |
\board@do@l@addto@macro\board@val@savedkeylist{,hidepiece={#1}}}% |
| 3652 |
|
| 3653 |
\define@key[UFCB]{locfill}{hidepieces}{% D list of chars |
| 3654 |
\board@do@hidetypelist{#1}}% |
| 3655 |
|
| 3656 |
\define@key[UFCB]{glofill}{hidepieces}{% D |
| 3657 |
\board@do@l@addto@macro\board@val@savedkeylist{,hidepieces={#1}}}% |
| 3658 |
|
| 3659 |
\define@key[UFCB]{locfill}{hidewhite}[true]{% D |
| 3660 |
\edef\board@temp@list{% |
| 3661 |
\csname board@\board@val@game @whitepiececharlist\endcsname}% |
| 3662 |
\board@do@hidetypelist{\board@temp@list}}% |
| 3663 |
|
| 3664 |
\define@key[UFCB]{glofill}{hidewhite}[true]{% D |
| 3665 |
\board@do@l@addto@macro\board@val@savedkeylist{,hidewhite=#1}}% |
| 3666 |
|
| 3667 |
\define@key[UFCB]{locfill}{hideblack}[true]{% D |
| 3668 |
\edef\board@temp@list{% |
| 3669 |
\csname board@\board@val@game @blackpiececharlist\endcsname}% |
| 3670 |
\board@do@hidetypelist{\board@temp@list}}% |
| 3671 |
|
| 3672 |
\define@key[UFCB]{glofill}{hideblack}[true]{% D |
| 3673 |
\board@do@l@addto@macro\board@val@savedkeylist{,hideblack=#1}}% |
| 3674 |
|
| 3675 |
\define@key[UFCB]{locfill}{hideall}[true]{% D |
| 3676 |
\edef\board@temp@list{% |
| 3677 |
\csname board@\board@val@game @piececharlist\endcsname}% |
| 3678 |
\board@do@hidetypelist{\board@temp@list}}% |
| 3679 |
|
| 3680 |
\define@key[UFCB]{glofill}{hideall}[true]{% D |
| 3681 |
\board@do@l@addto@macro\board@val@savedkeylist{,hideall=#1}}% |
| 3682 |
|
| 3683 |
%%%% |
| 3684 |
%% show |
| 3685 |
%%%% |
| 3686 |
|
| 3687 |
\define@key[UFCB]{locfill}{showarea}{% |
| 3688 |
\board@do@showarea{#1}}% |
| 3689 |
|
| 3690 |
\define@key[UFCB]{glofill}{showarea}{% |
| 3691 |
\board@do@l@addto@macro\board@val@savedkeylist{,showarea={#1}}}% |
| 3692 |
|
| 3693 |
\define@key[UFCB]{locfill}{showareas}{% D |
| 3694 |
\edef\board@temp@list{#1}% |
| 3695 |
\@for\board@temp@curarea:=\board@temp@list\do |
| 3696 |
{\board@do@showarea{\board@temp@curarea}}}% |
| 3697 |
|
| 3698 |
\define@key[UFCB]{glofill}{showareas}{% D |
| 3699 |
\board@do@l@addto@macro\board@val@savedkeylist{,showareas={#1}}}% |
| 3700 |
|
| 3701 |
\define@key[UFCB]{locfill}{showboard}[true]{% |
| 3702 |
\edef\board@temp@curstartfield{\board@val@minfilechar\board@val@maxranknum}% |
| 3703 |
\edef\board@temp@curstopfield{\board@val@maxfilechar\board@val@minranknum}% |
| 3704 |
\board@do@setsinglekeys*[UFCB]{locfill}{showarea=\board@temp@curstartfield-\board@temp@curstopfield}}% |
| 3705 |
|
| 3706 |
\define@key[UFCB]{glofill}{showboard}[true]{% |
| 3707 |
\board@do@l@addto@macro\board@val@savedkeylist{,showboard=#1}}% |
| 3708 |
|
| 3709 |
\define@key[UFCB]{locfill}{showrank}{% |
| 3710 |
\edef\board@temp@list{#1}% |
| 3711 |
\@for\board@temp@currank:=\board@temp@list\do |
| 3712 |
{\edef\board@temp@curstartfield{\board@val@minfilechar\board@temp@currank}% |
| 3713 |
\edef\board@temp@curstopfield{\board@val@maxfilechar\board@temp@currank}% |
| 3714 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 3715 |
showarea=\board@temp@curstartfield-\board@temp@curstopfield}}}% |
| 3716 |
|
| 3717 |
\define@key[UFCB]{glofill}{showrank}{% |
| 3718 |
\board@do@l@addto@macro\board@val@savedkeylist{,showrank={#1}}}% |
| 3719 |
|
| 3720 |
\define@key[UFCB]{locfill}{showranks}{% |
| 3721 |
\edef\board@temp@list{#1}% |
| 3722 |
\@for\board@temp@currank:=\board@temp@list\do |
| 3723 |
{\edef\board@temp@curstartfield{\board@val@minfilechar\board@temp@currank}% |
| 3724 |
\edef\board@temp@curstopfield{\board@val@maxfilechar\board@temp@currank}% |
| 3725 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 3726 |
showarea=\board@temp@curstartfield-\board@temp@curstopfield}}}% |
| 3727 |
|
| 3728 |
\define@key[UFCB]{glofill}{showranks}{% |
| 3729 |
\board@do@l@addto@macro\board@val@savedkeylist{,showranks={#1}}}% |
| 3730 |
|
| 3731 |
\define@key[UFCB]{locfill}{showfile}{% |
| 3732 |
\edef\board@temp@list{#1}% |
| 3733 |
\@for\board@temp@curfile:=\board@temp@list\do |
| 3734 |
{\edef\board@temp@curstartfield{\board@temp@curfile\board@val@maxranknum}% |
| 3735 |
\edef\board@temp@curstopfield{\board@temp@curfile\board@val@minranknum}% |
| 3736 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 3737 |
showarea=\board@temp@curstartfield-\board@temp@curstopfield}}}% |
| 3738 |
|
| 3739 |
\define@key[UFCB]{glofill}{showfile}{% |
| 3740 |
\board@do@l@addto@macro\board@val@savedkeylist{,showfile={#1}}}% |
| 3741 |
|
| 3742 |
\define@key[UFCB]{locfill}{showfiles}{% |
| 3743 |
\edef\board@temp@list{#1}% |
| 3744 |
\@for\board@temp@curfile:=\board@temp@list\do |
| 3745 |
{\edef\board@temp@curstartfield{\board@temp@curfile\board@val@maxranknum}% |
| 3746 |
\edef\board@temp@curstopfield{\board@temp@curfile\board@val@minranknum}% |
| 3747 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 3748 |
showarea=\board@temp@curstartfield-\board@temp@curstopfield}}}% |
| 3749 |
|
| 3750 |
\define@key[UFCB]{glofill}{showfiles}{% |
| 3751 |
\board@do@l@addto@macro\board@val@savedkeylist{,showfiles={#1}}}% |
| 3752 |
|
| 3753 |
\define@key[UFCB]{locfill}{showfield}{% #1=list of fields |
| 3754 |
\edef\board@temp@list{#1}% |
| 3755 |
\@for\board@temp@curfield:=\board@temp@list\do |
| 3756 |
{\board@do@setsinglekeys*[UFCB]{locfill}{hidearea=\board@temp@curfield-\board@temp@curfield}}}% |
| 3757 |
|
| 3758 |
\define@key[UFCB]{glofill}{showfield}{% |
| 3759 |
\board@do@l@addto@macro\board@val@savedkeylist{,showfield={#1}}}% |
| 3760 |
|
| 3761 |
\define@key[UFCB]{locfill}{showfields}{% #1=list of fields |
| 3762 |
\edef\board@temp@list{#1}% |
| 3763 |
\@for\board@temp@curfield:=\board@temp@list\do |
| 3764 |
{\board@do@setsinglekeys*[UFCB]{locfill}{hidearea=\board@temp@curfield-\board@temp@curfield}}}% |
| 3765 |
|
| 3766 |
\define@key[UFCB]{glofill}{showfields}{% |
| 3767 |
\board@do@l@addto@macro\board@val@savedkeylist{,showfields={#1}}}% |
| 3768 |
|
| 3769 |
\define@key[UFCB]{locfill}{showpiece}{% list of chars |
| 3770 |
\board@do@showtypelist{#1}}% |
| 3771 |
|
| 3772 |
\define@key[UFCB]{glofill}{showpiece}{% |
| 3773 |
\board@do@l@addto@macro\board@val@savedkeylist{,showpieces={#1}}}% |
| 3774 |
|
| 3775 |
\define@key[UFCB]{locfill}{showpieces}{% list of chars |
| 3776 |
\board@do@showtypelist{#1}}% |
| 3777 |
|
| 3778 |
\define@key[UFCB]{glofill}{showpieces}{% |
| 3779 |
\board@do@l@addto@macro\board@val@savedkeylist{,showpieces={#1}}}% |
| 3780 |
|
| 3781 |
%%%% |
| 3782 |
%% fen |
| 3783 |
%%%% |
| 3784 |
%%% fen "corners |
| 3785 |
|
| 3786 |
\define@key[UFCB]{locfill}{startfen}{% D |
| 3787 |
\expandafter\board@split@field#1ARGEND% |
| 3788 |
\let\board@val@startfenfilechar\board@temp@curfilechar |
| 3789 |
\let\board@val@startfenfilenum\board@temp@curfilenum |
| 3790 |
\let\board@val@startfenranknum\board@temp@curranknum}% |
| 3791 |
|
| 3792 |
\define@key[UFCB]{glofill}{startfen}{% D |
| 3793 |
\board@do@l@addto@macro\board@val@savedkeylist{,startfen={#1}}}% |
| 3794 |
|
| 3795 |
\define@key[UFCB]{locfill}{startfill}{% D |
| 3796 |
\expandafter\board@split@field#1ARGEND% |
| 3797 |
\let\board@val@startfillfilechar\board@temp@curfilechar |
| 3798 |
\let\board@val@startfillfilenum\board@temp@curfilenum |
| 3799 |
\let\board@val@startfillranknum\board@temp@curranknum}% |
| 3800 |
|
| 3801 |
\define@key[UFCB]{glofill}{startfill}{% D |
| 3802 |
\board@do@l@addto@macro\board@val@savedkeylist{,startfill={#1}}}% |
| 3803 |
|
| 3804 |
\define@key[UFCB]{locfill}{stopfill}{% D |
| 3805 |
\expandafter\board@split@field#1ARGEND% |
| 3806 |
\let\board@val@stopfillfilechar\board@temp@curfilechar |
| 3807 |
\let\board@val@stopfillfilenum\board@temp@curfilenum |
| 3808 |
\let\board@val@stopfillranknum\board@temp@curranknum}% |
| 3809 |
|
| 3810 |
\define@key[UFCB]{glofill}{stopfill}{% D |
| 3811 |
\board@do@l@addto@macro\board@val@savedkeylist{,startfill={#1}}}% |
| 3812 |
|
| 3813 |
\define@key[UFCB]{locfill}{fillarea}{% a7-f1 %D |
| 3814 |
\expandafter\board@split@areasort#1ARGEND% |
| 3815 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 3816 |
startfill=\board@temp@curstartfield, stopfill=\board@temp@curstopfield}}% |
| 3817 |
|
| 3818 |
\define@key[UFCB]{glofill}{fillarea}{% D |
| 3819 |
\board@do@l@addto@macro\board@val@savedkeylist{,fillarea={#1}}}% |
| 3820 |
|
| 3821 |
%%% |
| 3822 |
%% setting pieces with fen |
| 3823 |
%%% |
| 3824 |
|
| 3825 |
\define@key[UFCB]{locfill}{@fen}{% |
| 3826 |
\board@split@fen#1 X X X X X X XARGEND% |
| 3827 |
\board@scan@fen{\board@val@position}}% |
| 3828 |
|
| 3829 |
\def\board@setfenkey#1|{\board@do@setsinglekeys*[UFCB]{locfill}{@fen=#1}}% |
| 3830 |
|
| 3831 |
%%change 1.5 |
| 3832 |
\define@key[UFCB]{locfill}{setfen}{% D |
| 3833 |
\board@do@setsinglekeys*[UFCB]{locfill}{clearboard}% |
| 3834 |
\edef\board@temp@fen{#1}% |
| 3835 |
\expandafter\board@setfenkey\board@temp@fen|}% |
| 3836 |
|
| 3837 |
\define@key[UFCB]{glofill}{setfen}{% D |
| 3838 |
\board@do@l@addto@macro\board@val@savedkeylist{,setfen=#1}}% |
| 3839 |
|
| 3840 |
\define@key[UFCB]{locfill}{addfen}{% D |
| 3841 |
\expandafter\board@setfenkey#1|}% |
| 3842 |
|
| 3843 |
\define@key[UFCB]{glofill}{addfen}{% D |
| 3844 |
\board@do@l@addto@macro\board@val@savedkeylist{,addfen=#1}}% |
| 3845 |
|
| 3846 |
%%% other name for usefen |
| 3847 |
\define@key[UFCB]{locfill}{restorefen}{% D |
| 3848 |
\edef\board@temp@curfen{\csname chessgame.#1\endcsname}% |
| 3849 |
\board@do@setsinglekeys*[UFCB]{locfill}{language=english, addfen=\board@temp@curfen, language=\board@val@savelang}}% |
| 3850 |
|
| 3851 |
\define@key[UFCB]{glofill}{restorefen}{% D |
| 3852 |
\board@do@l@addto@macro\board@val@savedkeylist{,restorefen=#1}}%cor 1.5. |
| 3853 |
|
| 3854 |
\define@key[UFCB]{locfill}{loadfen}{% D |
| 3855 |
\board@do@loadfen{#1}% |
| 3856 |
\board@do@setsinglekeys*[UFCB]{locfill}{language=english, addfen=\board@temp@curfen, language=\board@val@savelang}}% |
| 3857 |
|
| 3858 |
\define@key[UFCB]{glofill}{loadfen}{% D |
| 3859 |
\board@do@l@addto@macro\board@val@savedkeylist{,loadfen=#1}}% |
| 3860 |
|
| 3861 |
%%%% |
| 3862 |
%% rest of fen |
| 3863 |
%%%% |
| 3864 |
|
| 3865 |
\define@key[UFCB]{locfill}{mover}{\def\board@val@mover{#1}} %D %changed 02.08.2007 to allow commands as input |
| 3866 |
\define@key[UFCB]{locfill}{castling}{\def\board@val@castling{#1}} %D |
| 3867 |
\define@key[UFCB]{locfill}{enpassant}{\def\board@val@enpassant{#1}} %D |
| 3868 |
\define@key[UFCB]{locfill}{halfmove}{\def\board@val@halfmove{#1}} %D |
| 3869 |
\define@key[UFCB]{locfill}{fullmove}{\def\board@val@fullmove{#1}} %D |
| 3870 |
|
| 3871 |
\define@key[UFCB]{glofill}{mover}{\board@do@l@addto@macro\board@val@savedkeylist{,mover=#1}} %D |
| 3872 |
\define@key[UFCB]{glofill}{castling}{\board@do@l@addto@macro\board@val@savedkeylist{,castling=#1}} %D |
| 3873 |
\define@key[UFCB]{glofill}{enpassant}{\board@do@l@addto@macro\board@val@savedkeylist{,enpassant=#1}} %D |
| 3874 |
\define@key[UFCB]{glofill}{halfmove}{\board@do@l@addto@macro\board@val@savedkeylist{,halfmove=#1}} %D |
| 3875 |
\define@key[UFCB]{glofill}{fullmove}{\board@do@l@addto@macro\board@val@savedkeylist{,fullmove=#1}} %D |
| 3876 |
|
| 3877 |
%%% saving fen |
| 3878 |
|
| 3879 |
\define@key[UFCB]{locfill}{storefen}{% D |
| 3880 |
\board@do@storefen{#1}}% D |
| 3881 |
|
| 3882 |
\define@key[UFCB]{glofill}{storefen}{% D |
| 3883 |
\board@do@l@addto@macro\board@val@savedkeylist{,storefen=#1}}% |
| 3884 |
|
| 3885 |
\define@key[UFCB]{locfill}{savefen}{\board@do@savefen{#1}} %D |
| 3886 |
|
| 3887 |
\define@key[UFCB]{glofill}{savefen}{% D |
| 3888 |
\board@do@l@addto@macro\board@val@savedkeylist{,savefen=#1}}% |
| 3889 |
|
| 3890 |
\define@key[UFCB]{locfill}{startstore}{% D |
| 3891 |
\expandafter\board@split@field#1ARGEND% |
| 3892 |
\let\board@val@startstorefilechar\board@temp@curfilechar |
| 3893 |
\let\board@val@startstorefilenum\board@temp@curfilenum |
| 3894 |
\let\board@val@startstoreranknum\board@temp@curranknum% |
| 3895 |
}% |
| 3896 |
|
| 3897 |
\define@key[UFCB]{glofill}{startstore}{% D |
| 3898 |
\board@do@l@addto@macro\board@val@savedkeylist{,startstore=#1}}% |
| 3899 |
|
| 3900 |
\define@key[UFCB]{locfill}{stopstore}{% D |
| 3901 |
\expandafter\board@split@field#1ARGEND% |
| 3902 |
\let\board@val@stopstorefilechar\board@temp@curfilechar |
| 3903 |
\let\board@val@stopstorefilenum\board@temp@curfilenum |
| 3904 |
\let\board@val@stopstoreranknum\board@temp@curranknum}% |
| 3905 |
|
| 3906 |
\define@key[UFCB]{glofill}{stopstore}{% D |
| 3907 |
\board@do@l@addto@macro\board@val@savedkeylist{,stopstore=#1}}% |
| 3908 |
|
| 3909 |
\define@key[UFCB]{locfill}{storearea}{% a7-f1 %D |
| 3910 |
\expandafter\board@split@areasort#1ARGEND% |
| 3911 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 3912 |
startstore=\board@temp@curstartfield, stopstore=\board@temp@curstopfield}}% |
| 3913 |
|
| 3914 |
\define@key[UFCB]{glofill}{storearea}{% D |
| 3915 |
\board@do@l@addto@macro\board@val@savedkeylist{,storearea=#1}}% |
| 3916 |
|
| 3917 |
%%%%%% |
| 3918 |
%%% Adding pieces |
| 3919 |
%%%%%% |
| 3920 |
|
| 3921 |
\define@key[UFCB]{locfill}{setpieces}{% D |
| 3922 |
\board@do@setsinglekeys*[UFCB]{locfill}{clearboard=true}% |
| 3923 |
\board@do@addpieces{#1}}% |
| 3924 |
|
| 3925 |
\define@key[UFCB]{glofill}{setpieces}{% D |
| 3926 |
\board@do@l@addto@macro\board@val@savedkeylist{,setpieces={#1}}}% |
| 3927 |
|
| 3928 |
\define@key[UFCB]{locfill}{addpieces}{% D |
| 3929 |
\board@do@addpieces{#1}}% |
| 3930 |
|
| 3931 |
\define@key[UFCB]{glofill}{addpieces}{% D |
| 3932 |
\board@do@l@addto@macro\board@val@savedkeylist{,addpieces={{#1}}}}% |
| 3933 |
|
| 3934 |
\define@key[UFCB]{locfill}{setwhite}{% D |
| 3935 |
\board@do@setsinglekeys*[UFCB]{locfill}{clearboard=true}% |
| 3936 |
\board@do@addwhitepieces{#1}}% |
| 3937 |
|
| 3938 |
\define@key[UFCB]{glofill}{setwhite}{% D |
| 3939 |
\board@do@l@addto@macro\board@val@savedkeylist{,setwhite={#1}}}% |
| 3940 |
|
| 3941 |
\define@key[UFCB]{locfill}{addwhite}{% D |
| 3942 |
\board@do@addwhitepieces{#1}}% |
| 3943 |
|
| 3944 |
\define@key[UFCB]{glofill}{addwhite}{% D |
| 3945 |
\board@do@l@addto@macro\board@val@savedkeylist{,addwhite={#1}}}% |
| 3946 |
|
| 3947 |
\define@key[UFCB]{locfill}{setblack}{% D |
| 3948 |
\board@do@setsinglekeys*[UFCB]{locfill}{clearboard=true}% |
| 3949 |
\board@do@addblackpieces{#1}}% |
| 3950 |
|
| 3951 |
\define@key[UFCB]{glofill}{setblack}{% D |
| 3952 |
\board@do@l@addto@macro\board@val@savedkeylist{,setblack={#1}}}% |
| 3953 |
|
| 3954 |
\define@key[UFCB]{locfill}{addblack}{% D |
| 3955 |
\board@do@addblackpieces{#1}}% |
| 3956 |
|
| 3957 |
\define@key[UFCB]{glofill}{addblack}{% D |
| 3958 |
\board@do@l@addto@macro\board@val@savedkeylist{,addblack={#1}}}% |
| 3959 |
|
| 3960 |
%% getting field lists for piece types |
| 3961 |
\define@key[UFCB]{locfill}{getpiecelists}[true]{% D |
| 3962 |
\board@do@getpiecelists} |
| 3963 |
|
| 3964 |
\define@key[UFCB]{glofill}{getpiecelists}[true]{% D |
| 3965 |
\board@do@l@addto@macro\board@val@savedkeylist{,getpiecelists={#1}}}% |
| 3966 |
|
| 3967 |
|
| 3968 |
%%\define@key[UFCB]{main}{fontsize}{\setboardfontsize{#1}}% |
| 3969 |
|
| 3970 |
%% "emphazing" |
| 3971 |
|
| 3972 |
\define@boolkey[UFCB]{locfill}{coloremph}[true]{} |
| 3973 |
|
| 3974 |
\define@boolkey[UFCB]{glofill}{coloremph}[true]{% D |
| 3975 |
\board@do@l@addto@macro\board@val@savedkeylist{,coloremph={#1}}}% |
| 3976 |
|
| 3977 |
\define@key[UFCB]{locfill}{emphstyle}{% D |
| 3978 |
\def\board@val@pieceemph{#1}}% |
| 3979 |
|
| 3980 |
\define@key[UFCB]{glofill}{emphstyle}{% D |
| 3981 |
\board@do@l@addto@macro\board@val@savedkeylist{,emphstyle={#1}}}% |
| 3982 |
|
| 3983 |
\define@key[UFCB]{locfill}{coloremphstyle}[\relax]{% D |
| 3984 |
\board@do@setsinglekeys*[UFCB]{locfill}{coloremph}% |
| 3985 |
\def\board@val@pieceemph{#1}}% |
| 3986 |
|
| 3987 |
\define@key[UFCB]{glofill}{coloremphstyle}{% D |
| 3988 |
\board@do@l@addto@macro\board@val@savedkeylist{,coloremphstyle={#1}}}% |
| 3989 |
|
| 3990 |
\define@key[UFCB]{locfill}{empharea}{% D |
| 3991 |
\board@do@empharea{#1}}% |
| 3992 |
|
| 3993 |
\define@key[UFCB]{glofill}{empharea}{% D |
| 3994 |
\board@do@l@addto@macro\board@val@savedkeylist{,empharea={#1}}}% |
| 3995 |
|
| 3996 |
\define@key[UFCB]{locfill}{emphareas}{% D |
| 3997 |
\XKV@sp@deflist\board@templist{#1}% |
| 3998 |
\edef\board@templist{\board@templist}% |
| 3999 |
\@for\board@temp@curarea:=\board@templist\do |
| 4000 |
{\ifx\board@temp@curarea\@empty\else |
| 4001 |
\board@do@empharea{\board@temp@curarea}% |
| 4002 |
\fi}}% |
| 4003 |
|
| 4004 |
\define@key[UFCB]{glofill}{emphareas}{% D |
| 4005 |
\board@do@l@addto@macro\board@val@savedkeylist{,emphareas={#1}}}% |
| 4006 |
|
| 4007 |
\define@key[UFCB]{locfill}{emphboard}[true]{%D |
| 4008 |
\edef\board@temp@curstartfield{\board@val@minfilechar\board@val@maxranknum}% |
| 4009 |
\edef\board@temp@curstopfield{\board@val@maxfilechar\board@val@minranknum}% |
| 4010 |
\board@do@setsinglekeys*[UFCB]{locfill}{empharea=\board@temp@curstartfield-\board@temp@curstopfield}}% |
| 4011 |
|
| 4012 |
\define@key[UFCB]{glofill}{emphboard}[true]{%D |
| 4013 |
\board@do@l@addto@macro\board@val@savedkeylist{,emphboard=#1}}% |
| 4014 |
|
| 4015 |
\define@key[UFCB]{locfill}{emphranks}{%D |
| 4016 |
\edef\board@temp@list{#1}% |
| 4017 |
\@for\board@temp@currank:=\board@temp@list\do |
| 4018 |
{\edef\board@temp@curstartfield{\board@val@minfilechar\board@temp@currank}% |
| 4019 |
\edef\board@temp@curstopfield{\board@val@maxfilechar\board@temp@currank}% |
| 4020 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 4021 |
empharea=\board@temp@curstartfield-\board@temp@curstopfield}}}% |
| 4022 |
|
| 4023 |
\define@key[UFCB]{glofill}{emphranks}{%D |
| 4024 |
\board@do@l@addto@macro\board@val@savedkeylist{,emphranks={#1}}}% |
| 4025 |
|
| 4026 |
\define@key[UFCB]{locfill}{emphrank}{% D |
| 4027 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 4028 |
emphranks={#1}}}% |
| 4029 |
|
| 4030 |
\define@key[UFCB]{glofill}{emphrank}{%D |
| 4031 |
\board@do@l@addto@macro\board@val@savedkeylist{,emphrank={#1}}}% |
| 4032 |
|
| 4033 |
\define@key[UFCB]{locfill}{emphfiles}{%D |
| 4034 |
\edef\board@temp@list{#1}% |
| 4035 |
\@for\board@temp@curfile:=\board@temp@list\do |
| 4036 |
{\edef\board@temp@curstartfield{\board@temp@curfile\board@val@maxranknum}% |
| 4037 |
\edef\board@temp@curstopfield{\board@temp@curfile\board@val@minranknum}% |
| 4038 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 4039 |
empharea=\board@temp@curstartfield-\board@temp@curstopfield}}}% |
| 4040 |
|
| 4041 |
\define@key[UFCB]{glofill}{emphfiles}{%D |
| 4042 |
\board@do@l@addto@macro\board@val@savedkeylist{,emphfiles={#1}}}% |
| 4043 |
|
| 4044 |
\define@key[UFCB]{locfill}{emphfile}{% D |
| 4045 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 4046 |
emphfiles={#1}}}% |
| 4047 |
|
| 4048 |
\define@key[UFCB]{glofill}{emphfile}{%D |
| 4049 |
\board@do@l@addto@macro\board@val@savedkeylist{,emphfile={#1}}}% |
| 4050 |
|
| 4051 |
\define@key[UFCB]{locfill}{emphfields}{% D |
| 4052 |
\edef\board@temp@list{#1}% |
| 4053 |
\@for\board@temp@curfield:=\board@temp@list\do |
| 4054 |
{\expandafter\board@split@field\board@temp@curfield ARGEND% |
| 4055 |
\board@do@store@pieceemph{\board@temp@curfilenum}{\board@temp@curranknum}}}% |
| 4056 |
|
| 4057 |
\define@key[UFCB]{glofill}{emphfields}{% |
| 4058 |
\board@do@l@addto@macro\board@val@savedkeylist{,emphpieces={#1}}}% |
| 4059 |
|
| 4060 |
\define@key[UFCB]{locfill}{emphfield}{% D |
| 4061 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 4062 |
emphfields={#1}}}% |
| 4063 |
|
| 4064 |
\define@key[UFCB]{glofill}{emphfield}{%D |
| 4065 |
\board@do@l@addto@macro\board@val@savedkeylist{,emphfield={#1}}}% |
| 4066 |
|
| 4067 |
\define@key[UFCB]{locfill}{colorpieces}{% D |
| 4068 |
\PackageWarning{chessboard}{The key colorpieces doesn't work anymore. \MessageBreak |
| 4069 |
Use the emph-keys instead.}}% |
| 4070 |
\define@key[UFCB]{glofill}{colorpieces}{% D |
| 4071 |
\board@do@l@addto@macro\board@val@savedkeylist{,colorpieces={#1}}}% |
| 4072 |
|
| 4073 |
%%%%%%%%%%%%%%% |
| 4074 |
%% setting the game |
| 4075 |
%%%%%%%%%%%%%%% |
| 4076 |
|
| 4077 |
\define@key[UFCB]{locinit}{game}{% |
| 4078 |
\def\board@val@game{#1}}% |
| 4079 |
|
| 4080 |
\define@key[UFCB]{gloinit}{game}{% |
| 4081 |
\board@do@l@addto@macro\board@val@savedkeylist{,game=#1}{}}% |
| 4082 |
|
| 4083 |
|
| 4084 |
%</chessboard-keys-main> |
| 4085 |
%<*chessboard-keys-pgf> |
| 4086 |
\ProvidesFile{chessboard-keys-pgf.sty}[2024/11/07 version v2.0 key definitions for chessboard.sty] |
| 4087 |
%%$Date: 2011/03/17 13:42:38 $$Version: e7ec1b100ede $ |
| 4088 |
|
| 4089 |
%% new 1.5.: style keys for curvemove |
| 4090 |
\define@key[UFCB]{bez}{x1}{\def\board@val@bezxi{#1}} |
| 4091 |
\define@key[UFCB]{bez}{x2}{\def\board@val@bezxii{#1}} |
| 4092 |
\define@key[UFCB]{bez}{y1}{\def\board@val@bezyi{#1}} |
| 4093 |
\define@key[UFCB]{bez}{y2}{\def\board@val@bezyii{#1}} |
| 4094 |
\define@key[UFCB]{bez}{linewidth}{\def\board@pgf@linewidth{#1}} |
| 4095 |
\define@key[UFCB]{bez}{pgflinewidth}{\def\board@pgf@linewidth{#1}} |
| 4096 |
\define@key[UFCB]{bez}{pgfshortenstart}{\def\board@pgf@shortenstart{#1}} |
| 4097 |
\define@key[UFCB]{bez}{shortenstart}{\def\board@pgf@shortenstart{#1}} |
| 4098 |
\define@key[UFCB]{bez}{pgfshortenend}{\def\board@pgf@shortenend{#1}} |
| 4099 |
\define@key[UFCB]{bez}{shortenend}{\def\board@pgf@shortenend{#1}} |
| 4100 |
\define@key[UFCB]{bez}{pgfarrow}{\def\board@pgf@arrow{#1}} |
| 4101 |
\define@key[UFCB]{bez}{arrow}{\def\board@pgf@arrow{#1}} |
| 4102 |
|
| 4103 |
\define@boolkey[UFCB]{bez}{clockwise}[true]{% |
| 4104 |
\ifUFCB@bez@clockwise |
| 4105 |
\def\board@val@pgfsign{1} |
| 4106 |
\else |
| 4107 |
\def\board@val@pgfsign{-1}% |
| 4108 |
\fi}% |
| 4109 |
\define@key[UFCB]{bez}{style}{% |
| 4110 |
\ifcsname board@pgf@curvemovestyle@#1\endcsname |
| 4111 |
\csname board@pgf@curvemovestyle@#1\endcsname |
| 4112 |
\else\PackageError{chessboard}{Style #1 not defined for curvemove}{}% |
| 4113 |
\fi} |
| 4114 |
|
| 4115 |
%% disable pgf-picture completely |
| 4116 |
|
| 4117 |
\define@boolkey[UFCB]{locset}{pgf}[true]{}% D |
| 4118 |
|
| 4119 |
\define@boolkey[UFCB]{gloset}{pgf}[true]{% D |
| 4120 |
\board@do@l@addto@macro\board@val@savedkeylist{,pgf=#1}{}}% |
| 4121 |
|
| 4122 |
%% clears the user "extra" pictures |
| 4123 |
|
| 4124 |
\define@key[UFCB]{locfill}{clearbackpgf}[true]{% |
| 4125 |
\let\board@pgf@extrabackground\@empty |
| 4126 |
}% |
| 4127 |
|
| 4128 |
\define@key[UFCB]{glofill}{clearbackpgf}[true]{% |
| 4129 |
\board@do@l@addto@macro\board@val@savedkeylist{,clearbackpgf=#1}}% |
| 4130 |
|
| 4131 |
\define@key[UFCB]{locfill}{clearmarkpgf}[true]{% |
| 4132 |
\let\board@pgf@extramarkground\@empty |
| 4133 |
}% |
| 4134 |
|
| 4135 |
\define@key[UFCB]{glofill}{clearmarkpgf}[true]{% |
| 4136 |
\board@do@l@addto@macro\board@val@savedkeylist{,clearmarkpgf=#1}}% |
| 4137 |
|
| 4138 |
\define@choicekey[UFCB]{locfill}{clearpgf}[\@tempval\@tempnr]{back,mark,all,both,none}[all]{% D |
| 4139 |
\ifcase\@tempnr\relax |
| 4140 |
\board@do@setsinglekeys*[UFCB]{locfill}{clearbackpgf}% |
| 4141 |
\or |
| 4142 |
\board@do@setsinglekeys*[UFCB]{locfill}{clearmarkpgf}% |
| 4143 |
\or |
| 4144 |
\board@do@setsinglekeys*[UFCB]{locfill}{clearbackpgf,clearmarkpgf}% |
| 4145 |
\or |
| 4146 |
\board@do@setsinglekeys*[UFCB]{locfill}{clearbackpgf,clearmarkpgf}% |
| 4147 |
\or |
| 4148 |
\board@do@setsinglekeys*[UFCB]{locfill}{}% |
| 4149 |
\fi} |
| 4150 |
|
| 4151 |
\define@key[UFCB]{glofill}{clearpgf}[all]{% D |
| 4152 |
\board@do@l@addto@macro\board@val@savedkeylist{,clearpgf=#1}}% |
| 4153 |
|
| 4154 |
%% obsolete |
| 4155 |
|
| 4156 |
\define@key[UFCB]{locfill}{clearbackgroundpgf}[true]{% |
| 4157 |
\let\board@pgf@extrabackground\@empty}% |
| 4158 |
|
| 4159 |
\define@key[UFCB]{glofill}{clearbackgroundpgf}[true]{% |
| 4160 |
\board@do@l@addto@macro\board@val@savedkeylist{,clearbackgroundpgf=#1}}% |
| 4161 |
|
| 4162 |
\define@key[UFCB]{locfill}{clearforegroundpgf}[true]{% |
| 4163 |
\let\board@pgf@extramarkground\@empty}% |
| 4164 |
|
| 4165 |
\define@key[UFCB]{glofill}{clearforegroundpgf}[true]{% |
| 4166 |
\board@do@l@addto@macro\board@val@savedkeylist{,clearforegroundpgf=#1}}% |
| 4167 |
|
| 4168 |
%% to chose the affected picture |
| 4169 |
|
| 4170 |
\define@boolkey[UFCB]{locfill}{usemarkpgf}[true]{} |
| 4171 |
|
| 4172 |
\define@boolkey[UFCB]{glofill}{usemarkpgf}[true]{% |
| 4173 |
\board@do@l@addto@macro\board@val@savedkeylist{,usemarkpgf=#1}}% |
| 4174 |
|
| 4175 |
\define@boolkey[UFCB]{locfill}{usebackpgf}[true]{}% |
| 4176 |
|
| 4177 |
\define@boolkey[UFCB]{glofill}{usebackpgf}[true]{% |
| 4178 |
\board@do@l@addto@macro\board@val@savedkeylist{,usebackpgf=#1}}% |
| 4179 |
|
| 4180 |
\define@choicekey[UFCB]{locfill}{usepgf}[\@tempval\@tempnr]{back,mark,all,both,none}{% |
| 4181 |
\def\board@pgf@curusepgf{#1}% |
| 4182 |
\ifcase\@tempnr\relax |
| 4183 |
\board@do@setsinglekeys*[UFCB]{locfill}{usebackpgf=true,usemarkpgf=false}% |
| 4184 |
\or |
| 4185 |
\board@do@setsinglekeys*[UFCB]{locfill}{usemarkpgf=true,usebackpgf=false}% |
| 4186 |
\or |
| 4187 |
\board@do@setsinglekeys*[UFCB]{locfill}{usebackpgf=true,usemarkpgf=true}% |
| 4188 |
\or |
| 4189 |
\board@do@setsinglekeys*[UFCB]{locfill}{usebackpgf=true,usemarkpgf=true}% |
| 4190 |
\or |
| 4191 |
\board@do@setsinglekeys*[UFCB]{locfill}{usebackpgf=false,usemarkpgf=false}% |
| 4192 |
\fi}% |
| 4193 |
|
| 4194 |
\define@key[UFCB]{glofill}{usepgf}{% D |
| 4195 |
\board@do@l@addto@macro\board@val@savedkeylist{,usepgf=#1}}% |
| 4196 |
|
| 4197 |
|
| 4198 |
\define@boolkey[UFCB]{locfill}{useonblack}[true]{% |
| 4199 |
\ifUFCB@locfill@useonblack |
| 4200 |
\board@pgf@addmarkground{\UFCB@locfill@useonblacktrue}% |
| 4201 |
\else |
| 4202 |
\board@pgf@addmarkground{\UFCB@locfill@useonblackfalse}% |
| 4203 |
\fi |
| 4204 |
\ifUFCB@locfill@useonblack |
| 4205 |
\board@pgf@addbackground{\UFCB@locfill@useonblacktrue}% |
| 4206 |
\else |
| 4207 |
\board@pgf@addbackground{\UFCB@locfill@useonblackfalse}% |
| 4208 |
\fi}% |
| 4209 |
|
| 4210 |
\define@boolkey[UFCB]{glofill}{useonblack}[true]{% |
| 4211 |
\board@do@l@addto@macro\board@val@savedkeylist{,useonblack=#1}}% |
| 4212 |
|
| 4213 |
\define@boolkey[UFCB]{locfill}{useonwhite}[true]{% |
| 4214 |
\ifUFCB@locfill@useonwhite |
| 4215 |
\board@pgf@addmarkground{\UFCB@locfill@useonwhitetrue}% |
| 4216 |
\else |
| 4217 |
\board@pgf@addmarkground{\UFCB@locfill@useonwhitefalse}% |
| 4218 |
\fi |
| 4219 |
\ifUFCB@locfill@useonwhite |
| 4220 |
\board@pgf@addbackground{\UFCB@locfill@useonwhitetrue}% |
| 4221 |
\else |
| 4222 |
\board@pgf@addbackground{\UFCB@locfill@useonwhitefalse}% |
| 4223 |
\fi}% |
| 4224 |
|
| 4225 |
\define@boolkey[UFCB]{glofill}{useonwhite}[true]{% |
| 4226 |
\board@do@l@addto@macro\board@val@savedkeylist{,useonwhite=#1}}% |
| 4227 |
|
| 4228 |
|
| 4229 |
\define@choicekey[UFCB]{locfill}{trimtocolor}[\@tempval\@tempnr]{white,black,false}{% D |
| 4230 |
\def\board@pgf@curtrimtocolor{#1}% |
| 4231 |
\ifcase\@tempnr\relax |
| 4232 |
\board@do@setsinglekeys*[UFCB]{locfill}{useonwhite=true,useonblack=false}% |
| 4233 |
\or |
| 4234 |
\board@do@setsinglekeys*[UFCB]{locfill}{useonwhite=false,useonblack=true}% |
| 4235 |
\or |
| 4236 |
\board@do@setsinglekeys*[UFCB]{locfill}{useonwhite=true,useonblack=true}% |
| 4237 |
\fi}% |
| 4238 |
|
| 4239 |
\define@key[UFCB]{glofill}{trimtocolor}{% D |
| 4240 |
\board@do@l@addto@macro\board@val@savedkeylist{,trimtocolor=#1}}% |
| 4241 |
|
| 4242 |
\define@key[UFCB]{locfill}{trimtowhite}[true]{% |
| 4243 |
\board@do@setsinglekeys*[UFCB]{locfill}{useonwhite=true,useonblack=false}}% |
| 4244 |
|
| 4245 |
\define@key[UFCB]{glofill}{trimtowhite}[true]{% |
| 4246 |
\board@do@l@addto@macro\board@val@savedkeylist{,trimtowhite=#1}}% |
| 4247 |
|
| 4248 |
\define@key[UFCB]{locfill}{trimtoblack}[true]{% |
| 4249 |
\board@do@setsinglekeys*[UFCB]{locfill}{useonwhite=false,useonblack=true}}% |
| 4250 |
|
| 4251 |
\define@key[UFCB]{glofill}{trimtoblack}[true]{% |
| 4252 |
\board@do@l@addto@macro\board@val@savedkeylist{,trimtoblack=#1}}% |
| 4253 |
|
| 4254 |
\define@key[UFCB]{locfill}{starttrim}{% |
| 4255 |
\expandafter\board@split@field #1ARGEND% |
| 4256 |
\let\board@val@starttrimfilechar\board@temp@curfilechar |
| 4257 |
\let\board@val@starttrimfilenum\board@temp@curfilenum |
| 4258 |
\let\board@val@starttrimranknum\board@temp@curranknum}% |
| 4259 |
|
| 4260 |
\define@key[UFCB]{glofill}{starttrim}{% |
| 4261 |
\board@do@l@addto@macro\board@val@savedkeylist{,starttrim=#1}}% |
| 4262 |
|
| 4263 |
\define@key[UFCB]{locfill}{stoptrim}{% |
| 4264 |
\expandafter\board@split@field#1ARGEND% |
| 4265 |
\let\board@val@stoptrimfilechar\board@temp@curfilechar |
| 4266 |
\let\board@val@stoptrimfilenum\board@temp@curfilenum |
| 4267 |
\let\board@val@stoptrimranknum\board@temp@curranknum}%}% |
| 4268 |
|
| 4269 |
\define@key[UFCB]{glofill}{stoptrim}{% |
| 4270 |
\board@do@l@addto@macro\board@val@savedkeylist{,starttrim=#1}}% |
| 4271 |
|
| 4272 |
\define@key[UFCB]{locfill}{trimarea}[\printarea]{% a7-f1 % |
| 4273 |
\ifthenelse{\equal{#1}{empty}}% |
| 4274 |
{\def\board@val@starttrimfilenum{-1}% |
| 4275 |
\def\board@val@starttrimranknum{-1}% |
| 4276 |
\def\board@val@stoptrimfilenum{-1}% |
| 4277 |
\def\board@val@stoptrimrankenum{-1}}% |
| 4278 |
{\expandafter\board@split@areasort#1ARGEND% |
| 4279 |
\let\board@val@starttrimfilechar\board@temp@curstartfilechar |
| 4280 |
\let\board@val@starttrimfilenum\board@temp@curstartfilenum |
| 4281 |
\let\board@val@starttrimranknum\board@temp@curstartranknum |
| 4282 |
\let\board@val@stoptrimfilechar\board@temp@curstopfilechar |
| 4283 |
\let\board@val@stoptrimfilenum\board@temp@curstopfilenum |
| 4284 |
\let\board@val@stoptrimranknum\board@temp@curstopranknum}% |
| 4285 |
\ifUFCB@locfill@captrimtoprint |
| 4286 |
\ifnum\board@val@starttrimfilenum<\board@val@startprintfilenum |
| 4287 |
\let\board@val@starttrimfilenum\board@val@startprintfilenum |
| 4288 |
\fi |
| 4289 |
\ifnum\board@val@stoptrimfilenum>\board@val@stopprintfilenum |
| 4290 |
\let\board@val@stoptrimfilenum\board@val@stopprintfilenum |
| 4291 |
\fi |
| 4292 |
\ifnum\board@val@starttrimranknum>\board@val@startprintranknum |
| 4293 |
\let\board@val@starttrimranknum\board@val@startprintranknum |
| 4294 |
\fi |
| 4295 |
\ifnum\board@val@stoptrimranknum<\board@val@stopprintranknum |
| 4296 |
\let\board@val@stoptrimranknum\board@val@stopprintranknum |
| 4297 |
\fi |
| 4298 |
\ifthenelse |
| 4299 |
{\(\board@val@starttrimfilenum>\board@val@stoptrimfilenum\) |
| 4300 |
\OR |
| 4301 |
\(\board@val@starttrimranknum<\board@val@stoptrimranknum\)}% |
| 4302 |
{\def\board@val@starttrimfilenum{-1}% |
| 4303 |
\def\board@val@starttrimranknum{-1}% |
| 4304 |
\def\board@val@stoptrimfilenum{-1}% |
| 4305 |
\def\board@val@stoptrimrankenum{-1}}% |
| 4306 |
{}% |
| 4307 |
\fi}% |
| 4308 |
|
| 4309 |
\define@key[UFCB]{glofill}{trimarea}{% |
| 4310 |
\board@do@l@addto@macro\board@val@savedkeylist{,trimarea={#1}}}% |
| 4311 |
|
| 4312 |
\define@boolkey[UFCB]{locfill}{captrimtoprint}[true]{}% |
| 4313 |
|
| 4314 |
\define@boolkey[UFCB]{glofill}{captrimtoprint}[true]{% |
| 4315 |
\board@do@l@addto@macro\board@val@savedkeylist{,captrimtoprint=#1}}% |
| 4316 |
|
| 4317 |
\define@boolkey[UFCB]{locfill}{trim}[true]{% |
| 4318 |
\ifUFCB@locfill@trim |
| 4319 |
\board@do@setsinglekeys*[UFCB]{locfill}{trimarea=\printarea}% |
| 4320 |
\else |
| 4321 |
\board@do@setsinglekeys*[UFCB]{locfill}{trimarea=\board}% |
| 4322 |
\fi}% |
| 4323 |
|
| 4324 |
\define@key[UFCB]{glofill}{trim}[true]{% D |
| 4325 |
\board@do@l@addto@macro\board@val@savedkeylist{,trim=#1}}% |
| 4326 |
|
| 4327 |
%% clipping |
| 4328 |
|
| 4329 |
%% clipping the pictures along a path |
| 4330 |
\define@key[UFCB]{locset}{clip}[true]{% D |
| 4331 |
\board@do@setsinglekeys*[UFCB]{intclip}{true,#1}}% |
| 4332 |
|
| 4333 |
\define@key[UFCB]{gloset}{clip}[true]{% D |
| 4334 |
\board@do@l@addto@macro\board@val@savedkeylist{,clip={#1}}{}}% |
| 4335 |
|
| 4336 |
\define@key[UFCB]{locset}{pgfclip}[true]{% D |
| 4337 |
\board@do@setsinglekeys*[UFCB]{intclip}{true,#1}}% |
| 4338 |
|
| 4339 |
\define@key[UFCB]{gloset}{pgfclip}[true]{% D |
| 4340 |
\board@do@l@addto@macro\board@val@savedkeylist{,pgfclip={#1}}{}}% |
| 4341 |
|
| 4342 |
\define@key[UFCB]{locset}{markclip}[true]{% D |
| 4343 |
\board@do@setsinglekeys*[UFCB]{intmarkclip}{true,#1}}% |
| 4344 |
|
| 4345 |
\define@key[UFCB]{gloset}{markclip}[true]{% D |
| 4346 |
\board@do@l@addto@macro\board@val@savedkeylist{,markclip={#1}}{}}% |
| 4347 |
|
| 4348 |
\define@key[UFCB]{locset}{backclip}[true]{% D |
| 4349 |
\board@do@setsinglekeys*[UFCB]{intbackclip}{true,#1}}% |
| 4350 |
|
| 4351 |
\define@key[UFCB]{gloset}{backclip}[true]{% D |
| 4352 |
\board@do@l@addto@macro\board@val@savedkeylist{,backclip={#1}}{}}% |
| 4353 |
|
| 4354 |
\define@key[UFCB]{intclip}{true}[true]{% |
| 4355 |
\def\board@pgf@usemarkclippath{clip}% |
| 4356 |
\def\board@pgf@usebackclippath{clip}} |
| 4357 |
|
| 4358 |
\define@key[UFCB]{intclip}{false}[true]{% |
| 4359 |
\def\board@pgf@usemarkclippath{discard}% |
| 4360 |
\def\board@pgf@usebackclippath{discard}} |
| 4361 |
|
| 4362 |
\define@key[UFCB]{intmarkclip}{true}[true]{% |
| 4363 |
\def\board@pgf@usemarkclippath{clip}} |
| 4364 |
|
| 4365 |
\define@key[UFCB]{intmarkclip}{false}[true]{% |
| 4366 |
\def\board@pgf@usemarkclippath{discard}} |
| 4367 |
|
| 4368 |
\define@key[UFCB]{intbackclip}{true}[true]{% |
| 4369 |
\def\board@pgf@usebackclippath{clip}} |
| 4370 |
|
| 4371 |
\define@key[UFCB]{intbackclip}{false}[true]{% |
| 4372 |
\def\board@pgf@usebackclippath{discard}} |
| 4373 |
|
| 4374 |
\define@key[UFCB]{intclip}{left}[0pt]{% |
| 4375 |
\def\board@pgf@markclipleftpadding{#1}% |
| 4376 |
\def\board@pgf@backclipleftpadding{#1}} |
| 4377 |
|
| 4378 |
\define@key[UFCB]{intclip}{top}[0pt]{% |
| 4379 |
\def\board@pgf@markcliptoppadding{#1}% |
| 4380 |
\def\board@pgf@backcliptoppadding{#1}} |
| 4381 |
|
| 4382 |
\define@key[UFCB]{intclip}{right}[0pt]{% |
| 4383 |
\def\board@pgf@markcliprightpadding{#1}% |
| 4384 |
\def\board@pgf@backcliprightpadding{#1}} |
| 4385 |
|
| 4386 |
\define@key[UFCB]{intclip}{bottom}[0pt]{% |
| 4387 |
\def\board@pgf@markclipbottompadding{#1}% |
| 4388 |
\def\board@pgf@backclipbottompadding{#1}} |
| 4389 |
|
| 4390 |
\define@key[UFCB]{intmarkclip}{left}[0pt]{% |
| 4391 |
\def\board@pgf@markclipleftpadding{#1}} |
| 4392 |
|
| 4393 |
\define@key[UFCB]{intmarkclip}{top}[0pt]{% |
| 4394 |
\def\board@pgf@markcliptoppadding{#1}} |
| 4395 |
|
| 4396 |
\define@key[UFCB]{intmarkclip}{right}[0pt]{% |
| 4397 |
\def\board@pgf@markcliprightpadding{#1}} |
| 4398 |
|
| 4399 |
\define@key[UFCB]{intmarkclip}{bottom}[0pt]{% |
| 4400 |
\def\board@pgf@markclipbottompadding{#1}} |
| 4401 |
|
| 4402 |
\define@key[UFCB]{intbackclip}{left}[0pt]{% |
| 4403 |
\def\board@pgf@backclipleftpadding{#1}} |
| 4404 |
|
| 4405 |
\define@key[UFCB]{intbackclip}{top}[0pt]{% |
| 4406 |
\def\board@pgf@backcliptoppadding{#1}} |
| 4407 |
|
| 4408 |
\define@key[UFCB]{intbackclip}{right}[0pt]{% |
| 4409 |
\def\board@pgf@backcliprightpadding{#1}} |
| 4410 |
|
| 4411 |
\define@key[UFCB]{intbackclip}{bottom}[0pt]{% |
| 4412 |
\def\board@pgf@backclipbottompadding{#1}} |
| 4413 |
|
| 4414 |
%% pgf properties |
| 4415 |
|
| 4416 |
\define@key[UFCB]{locfill}{color}{% D |
| 4417 |
\ifUFCB@locfill@usebackpgf |
| 4418 |
\board@pgf@addbackground{\color{#1}}% |
| 4419 |
\fi |
| 4420 |
\ifUFCB@locfill@usemarkpgf |
| 4421 |
\board@pgf@addmarkground{\color{#1}}% |
| 4422 |
\fi}% |
| 4423 |
|
| 4424 |
\define@key[UFCB]{glofill}{color}{% D |
| 4425 |
\board@do@l@addto@macro\board@val@savedkeylist{,color=#1}}% |
| 4426 |
|
| 4427 |
\define@key[UFCB]{locfill}{pgfcolor}{% D |
| 4428 |
\ifUFCB@locfill@usebackpgf |
| 4429 |
\board@pgf@addbackground{\color{#1}}% |
| 4430 |
\fi |
| 4431 |
\ifUFCB@locfill@usemarkpgf |
| 4432 |
\board@pgf@addmarkground{\color{#1}}% |
| 4433 |
\fi}% |
| 4434 |
|
| 4435 |
\define@key[UFCB]{glofill}{pgfcolor}{% D |
| 4436 |
\board@do@l@addto@macro\board@val@savedkeylist{,pgfcolor=#1}}% |
| 4437 |
|
| 4438 |
%% padding for colorfields and other means |
| 4439 |
\define@key[UFCB]{locfill}{padding}{% D |
| 4440 |
\ifUFCB@locfill@usemarkpgf |
| 4441 |
\board@pgf@addmarkground{\def\board@pgf@padding{#1}}% |
| 4442 |
\fi |
| 4443 |
\ifUFCB@locfill@usebackpgf % |
| 4444 |
\board@pgf@addbackground{\def\board@pgf@padding{#1}}% |
| 4445 |
\board@pgf@addbackground{\def\board@pgf@colorbackpadding{#1}}% |
| 4446 |
\fi}% |
| 4447 |
|
| 4448 |
\define@key[UFCB]{glofill}{padding}{% D |
| 4449 |
\board@do@l@addto@macro\board@val@savedkeylist{,padding=#1}}% |
| 4450 |
|
| 4451 |
\define@key[UFCB]{locfill}{pgfpadding}{% D |
| 4452 |
\ifUFCB@locfill@usemarkpgf |
| 4453 |
\board@pgf@addmarkground{\def\board@pgf@padding{#1}}% |
| 4454 |
\fi |
| 4455 |
\ifUFCB@locfill@usebackpgf % |
| 4456 |
\board@pgf@addbackground{\def\board@pgf@padding{#1}}% |
| 4457 |
\board@pgf@addbackground{\def\board@pgf@colorbackpadding{#1}}% |
| 4458 |
\fi}% |
| 4459 |
|
| 4460 |
\define@key[UFCB]{glofill}{pgfpadding}{% D |
| 4461 |
\board@do@l@addto@macro\board@val@savedkeylist{,pgfpadding=#1}}% |
| 4462 |
|
| 4463 |
\define@key[UFCB]{locfill}{opacity}{% D |
| 4464 |
\ifUFCB@locfill@usemarkpgf |
| 4465 |
\board@pgf@addmarkground% |
| 4466 |
{\pgfsetfillopacity{#1}% |
| 4467 |
\pgfsetstrokeopacity{#1}}%% |
| 4468 |
\fi |
| 4469 |
\ifUFCB@locfill@usebackpgf |
| 4470 |
\board@pgf@addbackground% |
| 4471 |
{\pgfsetfillopacity{#1}% |
| 4472 |
\pgfsetstrokeopacity{#1}}% |
| 4473 |
\fi}% |
| 4474 |
|
| 4475 |
\define@key[UFCB]{glofill}{opacity}{% D |
| 4476 |
\board@do@l@addto@macro\board@val@savedkeylist{,opacity=#1}}% |
| 4477 |
|
| 4478 |
\define@key[UFCB]{locfill}{pgfopacity}{% D |
| 4479 |
\ifUFCB@locfill@usemarkpgf |
| 4480 |
\board@pgf@addmarkground% |
| 4481 |
{\pgfsetfillopacity{#1}% |
| 4482 |
\pgfsetstrokeopacity{#1}}%% |
| 4483 |
\fi |
| 4484 |
\ifUFCB@locfill@usebackpgf |
| 4485 |
\board@pgf@addbackground% |
| 4486 |
{\pgfsetfillopacity{#1}% |
| 4487 |
\pgfsetstrokeopacity{#1}}% |
| 4488 |
\fi}% |
| 4489 |
|
| 4490 |
\define@key[UFCB]{glofill}{pgfopacity}{% D |
| 4491 |
\board@do@l@addto@macro\board@val@savedkeylist{,pgfopacity=#1}}% |
| 4492 |
|
| 4493 |
\define@key[UFCB]{locfill}{fillopacity}{% D |
| 4494 |
\ifUFCB@locfill@usemarkpgf |
| 4495 |
\board@pgf@addmarkground% |
| 4496 |
{\pgfsetfillopacity{#1}}%% |
| 4497 |
\fi |
| 4498 |
\ifUFCB@locfill@usebackpgf |
| 4499 |
\board@pgf@addbackground% |
| 4500 |
{\pgfsetfillopacity{#1}}% |
| 4501 |
\fi}% |
| 4502 |
|
| 4503 |
\define@key[UFCB]{glofill}{fillopacity}{% D |
| 4504 |
\board@do@l@addto@macro\board@val@savedkeylist{,opacity=#1}}% |
| 4505 |
|
| 4506 |
\define@key[UFCB]{locfill}{pgffillopacity}{% D |
| 4507 |
\ifUFCB@locfill@usemarkpgf |
| 4508 |
\board@pgf@addmarkground% |
| 4509 |
{\pgfsetfillopacity{#1}}%% |
| 4510 |
\fi |
| 4511 |
\ifUFCB@locfill@usebackpgf |
| 4512 |
\board@pgf@addbackground% |
| 4513 |
{\pgfsetfillopacity{#1}}% |
| 4514 |
\fi}% |
| 4515 |
|
| 4516 |
\define@key[UFCB]{glofill}{pgffillopacity}{% D |
| 4517 |
\board@do@l@addto@macro\board@val@savedkeylist{,pgffillopacity=#1}}% |
| 4518 |
|
| 4519 |
\define@key[UFCB]{locfill}{strokeopacity}{% D |
| 4520 |
\ifUFCB@locfill@usemarkpgf |
| 4521 |
\board@pgf@addmarkground% |
| 4522 |
{\pgfsetstrokeopacity{#1}}% |
| 4523 |
\fi%% |
| 4524 |
\ifUFCB@locfill@usebackpgf |
| 4525 |
\board@pgf@addbackground% |
| 4526 |
{\pgfsetstrokeopacity{#1}}% |
| 4527 |
\fi}% |
| 4528 |
|
| 4529 |
\define@key[UFCB]{glofill}{strokeopacity}{% D |
| 4530 |
\board@do@l@addto@macro\board@val@savedkeylist{,opacity=#1}}% |
| 4531 |
|
| 4532 |
\define@key[UFCB]{locfill}{pgfstrokeopacity}{% D |
| 4533 |
\ifUFCB@locfill@usemarkpgf |
| 4534 |
\board@pgf@addmarkground% |
| 4535 |
{\pgfsetstrokeopacity{#1}}%% |
| 4536 |
\fi |
| 4537 |
\ifUFCB@locfill@usebackpgf |
| 4538 |
\board@pgf@addbackground% |
| 4539 |
{\pgfsetstrokeopacity{#1}}% |
| 4540 |
\fi}% |
| 4541 |
|
| 4542 |
\define@key[UFCB]{glofill}{pgfstrokeopacity}{% D |
| 4543 |
\board@do@l@addto@macro\board@val@savedkeylist{,pgfstrokeopacity=#1}}% |
| 4544 |
|
| 4545 |
\define@key[UFCB]{locfill}{linewidth}{% D |
| 4546 |
\ifUFCB@locfill@usemarkpgf |
| 4547 |
\board@pgf@addmarkground{\def\board@pgf@linewidth{#1}}% |
| 4548 |
\fi |
| 4549 |
\ifUFCB@locfill@usebackpgf |
| 4550 |
\board@pgf@addbackground{\def\board@pgf@linewidth{#1}}% |
| 4551 |
\fi}% |
| 4552 |
|
| 4553 |
\define@key[UFCB]{glofill}{linewidth}{% D |
| 4554 |
\board@do@l@addto@macro\board@val@savedkeylist{,linewidth=#1}}% |
| 4555 |
|
| 4556 |
\define@key[UFCB]{locfill}{pgflinewidth}{% D |
| 4557 |
\ifUFCB@locfill@usemarkpgf |
| 4558 |
\board@pgf@addmarkground{\def\board@pgf@linewidth{#1}}% |
| 4559 |
\fi |
| 4560 |
\ifUFCB@locfill@usebackpgf |
| 4561 |
\board@pgf@addbackground{\def\board@pgf@linewidth{#1}}% |
| 4562 |
\fi}% |
| 4563 |
|
| 4564 |
\define@key[UFCB]{glofill}{pgflinewidth}{% D |
| 4565 |
\board@do@l@addto@macro\board@val@savedkeylist{,pgflinewidth=#1}}% |
| 4566 |
|
| 4567 |
\define@key[UFCB]{locfill}{backlinewidth}{% D |
| 4568 |
\board@pgf@addbackground{\def\board@pgf@linewidth{#1}}}% |
| 4569 |
|
| 4570 |
\define@key[UFCB]{glofill}{backlinewidth}{% D |
| 4571 |
\board@do@l@addto@macro\board@val@savedkeylist{,linewidth=#1}}% |
| 4572 |
|
| 4573 |
\define@key[UFCB]{locfill}{marklinewidth}{% D |
| 4574 |
\board@pgf@addmarkground{\def\board@pgf@linewidth{#1}}}% |
| 4575 |
|
| 4576 |
\define@key[UFCB]{glofill}{marklinewidth}{% D |
| 4577 |
\board@do@l@addto@macro\board@val@savedkeylist{,linewidth=#1}}% |
| 4578 |
|
| 4579 |
\define@key[UFCB]{locfill}{backcornerarc}{% D |
| 4580 |
\board@pgf@addbackground{\def\board@pgf@corner{#1}}}% |
| 4581 |
|
| 4582 |
\define@key[UFCB]{glofill}{backcornerarc}{% D |
| 4583 |
\board@do@l@addto@macro\board@val@savedkeylist{,backcornerarc=#1}}% |
| 4584 |
|
| 4585 |
\define@key[UFCB]{locfill}{cornerarc}{% D |
| 4586 |
\ifUFCB@locfill@usemarkpgf |
| 4587 |
\board@pgf@addmarkground{\def\board@pgf@corner{#1}}% |
| 4588 |
\fi |
| 4589 |
\ifUFCB@locfill@usebackpgf |
| 4590 |
\board@pgf@addbackground{\def\board@pgf@corner{#1}}% |
| 4591 |
\fi}% |
| 4592 |
|
| 4593 |
\define@key[UFCB]{glofill}{cornerarc}{% D |
| 4594 |
\board@do@l@addto@macro\board@val@savedkeylist{,cornerarc=#1}}% |
| 4595 |
|
| 4596 |
\define@key[UFCB]{locfill}{pgfcornerarc}{% D |
| 4597 |
\ifUFCB@locfill@usemarkpgf |
| 4598 |
\board@pgf@addmarkground{\def\board@pgf@corner{#1}}% |
| 4599 |
\fi |
| 4600 |
\ifUFCB@locfill@usebackpgf |
| 4601 |
\board@pgf@addbackground{\def\board@pgf@corner{#1}}% |
| 4602 |
\fi}% |
| 4603 |
|
| 4604 |
\define@key[UFCB]{glofill}{pgfcornerarc}{% D |
| 4605 |
\board@do@l@addto@macro\board@val@savedkeylist{,pgfcornerarc=#1}}% |
| 4606 |
|
| 4607 |
\define@key[UFCB]{locfill}{arrow}{% D |
| 4608 |
\ifUFCB@locfill@usemarkpgf |
| 4609 |
\board@pgf@addmarkground{\def\board@pgf@arrow{#1}}% |
| 4610 |
\fi |
| 4611 |
\ifUFCB@locfill@usebackpgf |
| 4612 |
\board@pgf@addbackground{\def\board@pgf@arrow{#1}}% |
| 4613 |
\fi}% |
| 4614 |
|
| 4615 |
\define@key[UFCB]{glofill}{arrow}{% D |
| 4616 |
\board@do@l@addto@macro\board@val@savedkeylist{,arrow=#1}}% |
| 4617 |
|
| 4618 |
\define@key[UFCB]{locfill}{pgfarrow}{% D |
| 4619 |
\ifUFCB@locfill@usemarkpgf |
| 4620 |
\board@pgf@addmarkground{\def\board@pgf@arrow{#1}}% |
| 4621 |
\fi |
| 4622 |
\ifUFCB@locfill@usebackpgf |
| 4623 |
\board@pgf@addbackground{\def\board@pgf@arrow{#1}}% |
| 4624 |
\fi}% |
| 4625 |
|
| 4626 |
\define@key[UFCB]{glofill}{pgfarrow}{% D |
| 4627 |
\board@do@l@addto@macro\board@val@savedkeylist{,pgfarrow=#1}}% |
| 4628 |
|
| 4629 |
\define@key[UFCB]{locfill}{shortenstart}{% D |
| 4630 |
\ifUFCB@locfill@usemarkpgf |
| 4631 |
\board@pgf@addmarkground{\def\board@pgf@shortenstart{#1}}% |
| 4632 |
\fi |
| 4633 |
\ifUFCB@locfill@usebackpgf |
| 4634 |
\board@pgf@addbackground{\def\board@pgf@shortenstart{#1}}% |
| 4635 |
\fi}% |
| 4636 |
|
| 4637 |
\define@key[UFCB]{glofill}{shortenstart}{% D |
| 4638 |
\board@do@l@addto@macro\board@val@savedkeylist{,shortenstart=#1}}% |
| 4639 |
|
| 4640 |
\define@key[UFCB]{locfill}{pgfshortenstart}{% D |
| 4641 |
\ifUFCB@locfill@usemarkpgf |
| 4642 |
\board@pgf@addmarkground{\def\board@pgf@shortenstart{#1}}% |
| 4643 |
\fi |
| 4644 |
\ifUFCB@locfill@usebackpgf |
| 4645 |
\board@pgf@addbackground{\def\board@pgf@shortenstart{#1}}% |
| 4646 |
\fi}% |
| 4647 |
|
| 4648 |
\define@key[UFCB]{glofill}{pgfshortenstart}{% D |
| 4649 |
\board@do@l@addto@macro\board@val@savedkeylist{,pgfshortenstart=#1}}% |
| 4650 |
|
| 4651 |
\define@key[UFCB]{locfill}{shortenend}{% D |
| 4652 |
\ifUFCB@locfill@usemarkpgf |
| 4653 |
\board@pgf@addmarkground{\def\board@pgf@shortenend{#1}}% |
| 4654 |
\fi |
| 4655 |
\ifUFCB@locfill@usebackpgf |
| 4656 |
\board@pgf@addbackground{\def\board@pgf@shortenend{#1}}% |
| 4657 |
\fi}% |
| 4658 |
|
| 4659 |
\define@key[UFCB]{glofill}{shortenend}{% D |
| 4660 |
\board@do@l@addto@macro\board@val@savedkeylist{,shortenend=#1}}% |
| 4661 |
|
| 4662 |
\define@key[UFCB]{locfill}{pgfshortenend}{% D |
| 4663 |
\ifUFCB@locfill@usemarkpgf |
| 4664 |
\board@pgf@addmarkground{\def\board@pgf@shortenend{#1}}% |
| 4665 |
\fi |
| 4666 |
\ifUFCB@locfill@usebackpgf |
| 4667 |
\board@pgf@addbackground{\def\board@pgf@shortenend{#1}}% |
| 4668 |
\fi}% |
| 4669 |
|
| 4670 |
\define@key[UFCB]{glofill}{pgfshortenend}{% D |
| 4671 |
\board@do@l@addto@macro\board@val@savedkeylist{,pgfshortenend=#1}}% |
| 4672 |
|
| 4673 |
\define@key[UFCB]{locfill}{shorten}{% D |
| 4674 |
\board@do@setsinglekeys*[UFCB]{locfill}{shortenend=#1,shortenstart=#1}}% |
| 4675 |
|
| 4676 |
\define@key[UFCB]{glofill}{shorten}{% D |
| 4677 |
\board@do@l@addto@macro\board@val@savedkeylist{,shorten=#1}}% |
| 4678 |
|
| 4679 |
\define@key[UFCB]{locfill}{pgfshorten}{% D |
| 4680 |
\board@do@setsinglekeys*[UFCB]{locfill}{pgfshortenend=#1,pgfshortenstart=#1}}% |
| 4681 |
|
| 4682 |
\define@key[UFCB]{glofill}{pgfshorten}{% D |
| 4683 |
\board@do@l@addto@macro\board@val@savedkeylist{,pgfshorten=#1}}% |
| 4684 |
|
| 4685 |
\define@key[UFCB]{locfill}{text}{% D |
| 4686 |
\ifUFCB@locfill@usemarkpgf |
| 4687 |
\board@pgf@addmarkground{\def\board@pgf@curtext{#1}}% |
| 4688 |
\fi |
| 4689 |
\ifUFCB@locfill@usebackpgf |
| 4690 |
\board@pgf@addbackground{\def\board@pgf@curtext{#1}}% |
| 4691 |
\fi}% |
| 4692 |
|
| 4693 |
\define@key[UFCB]{glofill}{text}{% D |
| 4694 |
\board@do@l@addto@macro\board@val@savedkeylist{,text={#1}}}% |
| 4695 |
|
| 4696 |
\define@key[UFCB]{locfill}{pgftext}{% D |
| 4697 |
\ifUFCB@locfill@usemarkpgf |
| 4698 |
\board@pgf@addmarkground{\def\board@pgf@curtext{#1}}% |
| 4699 |
\fi |
| 4700 |
\ifUFCB@locfill@usebackpgf |
| 4701 |
\board@pgf@addbackground{\def\board@pgf@curtext{#1}}% |
| 4702 |
\fi}% |
| 4703 |
|
| 4704 |
\define@key[UFCB]{glofill}{pgftext}{% D |
| 4705 |
\board@do@l@addto@macro\board@val@savedkeylist{,pgftext={#1}}}% |
| 4706 |
|
| 4707 |
\define@key[UFCB]{locfill}{addpgf}[\end{pgfscope}\begin{pgfscope}]{% D |
| 4708 |
\ifUFCB@locfill@usemarkpgf |
| 4709 |
\board@pgf@addmarkground{#1}% |
| 4710 |
\fi |
| 4711 |
\ifUFCB@locfill@usebackpgf |
| 4712 |
\board@pgf@addbackground{#1}% |
| 4713 |
\fi}% |
| 4714 |
|
| 4715 |
\define@key[UFCB]{glofill}{addpgf}[\end{pgfscope}\begin{pgfscope}]{% D |
| 4716 |
\board@do@l@addto@macro\board@val@savedkeylist{,addpgf={#1}}}% |
| 4717 |
|
| 4718 |
\define@key[UFCB]{locfill}{markstyle}{% D |
| 4719 |
\board@do@savemarkstyle#1ARGEND}% |
| 4720 |
|
| 4721 |
\define@key[UFCB]{glofill}{markstyle}{% D |
| 4722 |
\board@do@l@addto@macro\board@val@savedkeylist{,markstyle=#1}}% |
| 4723 |
|
| 4724 |
\define@key[UFCB]{locfill}{backstyle}{% D |
| 4725 |
\board@do@savebackstyle#1ARGEND}% |
| 4726 |
|
| 4727 |
\define@key[UFCB]{glofill}{backstyle}{% D |
| 4728 |
\board@do@l@addto@macro\board@val@savedkeylist{,backstyle=#1}}% |
| 4729 |
|
| 4730 |
\define@key[UFCB]{locfill}{pgfstyle}{% D |
| 4731 |
\expandafter\board@do@savemarkstyle#1ARGEND% change 15.08.2007 |
| 4732 |
\expandafter\board@do@savebackstyle#1ARGEND}% changed 15.08.2007 |
| 4733 |
|
| 4734 |
|
| 4735 |
|
| 4736 |
\define@key[UFCB]{glofill}{pgfstyle}{% D |
| 4737 |
\board@do@l@addto@macro\board@val@savedkeylist{,pgfstyle=#1}}% |
| 4738 |
|
| 4739 |
%%% fields marks |
| 4740 |
|
| 4741 |
\define@key[UFCB]{locfill}{markarea}{% D |
| 4742 |
\edef\board@temp@list{#1}% |
| 4743 |
\@for\board@temp@curarea:=\board@temp@list\do |
| 4744 |
{\board@pgf@add@fieldmarkstyletoarea{\board@temp@curarea}}}% |
| 4745 |
|
| 4746 |
\define@key[UFCB]{glofill}{markarea}{% D |
| 4747 |
\board@do@l@addto@macro\board@val@savedkeylist{,markarea=#1}}% |
| 4748 |
|
| 4749 |
\define@key[UFCB]{locfill}{backarea}{% D |
| 4750 |
\edef\board@temp@list{#1}% |
| 4751 |
\@for\board@temp@curarea:=\board@temp@list\do |
| 4752 |
{\board@pgf@add@fieldbackstyletoarea{\board@temp@curarea}}}% |
| 4753 |
|
| 4754 |
\define@key[UFCB]{glofill}{backarea}{% |
| 4755 |
\board@do@l@addto@macro\board@val@savedkeylist{,backarea={#1}}}% |
| 4756 |
|
| 4757 |
\define@key[UFCB]{locfill}{markareas}{% D |
| 4758 |
\edef\board@temp@list{#1}% |
| 4759 |
\@for\board@temp@curarea:=\board@temp@list\do |
| 4760 |
{\board@pgf@add@fieldmarkstyletoarea{\board@temp@curarea}}}% |
| 4761 |
|
| 4762 |
\define@key[UFCB]{glofill}{markareas}{% D |
| 4763 |
\board@do@l@addto@macro\board@val@savedkeylist{,markareas={#1}}}% |
| 4764 |
|
| 4765 |
\define@key[UFCB]{locfill}{backareas}{% D |
| 4766 |
\edef\board@temp@list{#1}% |
| 4767 |
\@for\board@temp@curarea:=\board@temp@list\do |
| 4768 |
{\board@pgf@add@fieldbackstyletoarea{\board@temp@curarea}}}% |
| 4769 |
|
| 4770 |
\define@key[UFCB]{glofill}{backareas}{% |
| 4771 |
\board@do@l@addto@macro\board@val@savedkeylist{,backareas={#1}}}% |
| 4772 |
|
| 4773 |
\define@key[UFCB]{locfill}{markfield}{% #1=list of fields D |
| 4774 |
\edef\board@temp@list{#1}% |
| 4775 |
\@for\board@temp@curfield:=\board@temp@list\do |
| 4776 |
{\board@do@setsinglekeys*[UFCB]{locfill}{markarea=\board@temp@curfield-\board@temp@curfield}}}% |
| 4777 |
|
| 4778 |
\define@key[UFCB]{glofill}{markfield}{% D |
| 4779 |
\board@do@l@addto@macro\board@val@savedkeylist{,markfield={#1}}}% |
| 4780 |
|
| 4781 |
\define@key[UFCB]{locfill}{backfield}{% #1=list of fields D |
| 4782 |
\edef\board@temp@list{#1}% |
| 4783 |
\@for\board@temp@curfield:=\board@temp@list\do |
| 4784 |
{\board@do@setsinglekeys*[UFCB]{locfill}{backarea=\board@temp@curfield-\board@temp@curfield}}}% |
| 4785 |
|
| 4786 |
\define@key[UFCB]{glofill}{backfield}{% D |
| 4787 |
\board@do@l@addto@macro\board@val@savedkeylist{,backfield={#1}}}% |
| 4788 |
|
| 4789 |
\define@key[UFCB]{locfill}{markfields}{% #1=list of fields D |
| 4790 |
\edef\board@temp@list{#1}% |
| 4791 |
\@for\board@temp@curfield:=\board@temp@list\do |
| 4792 |
{\board@do@setsinglekeys*[UFCB]{locfill}{markarea=\board@temp@curfield-\board@temp@curfield}}}% |
| 4793 |
|
| 4794 |
\define@key[UFCB]{glofill}{markfields}{% D |
| 4795 |
\board@do@l@addto@macro\board@val@savedkeylist{,markfields={#1}}}% |
| 4796 |
|
| 4797 |
\define@key[UFCB]{locfill}{backfields}{% #1=list of fields D |
| 4798 |
\edef\board@temp@list{#1}% |
| 4799 |
\@for\board@temp@curfield:=\board@temp@list\do |
| 4800 |
{\board@do@setsinglekeys*[UFCB]{locfill}{backarea=\board@temp@curfield-\board@temp@curfield}}}% |
| 4801 |
|
| 4802 |
\define@key[UFCB]{glofill}{backfields}{% D |
| 4803 |
\board@do@l@addto@macro\board@val@savedkeylist{,backfields={#1}}}% |
| 4804 |
|
| 4805 |
\define@key[UFCB]{locfill}{markboard}[true]{% D |
| 4806 |
\edef\board@temp@curstartfield{\board@val@minfilechar\board@val@maxranknum}% |
| 4807 |
\edef\board@temp@curstopfield{\board@val@maxfilechar\board@val@minranknum}% |
| 4808 |
\board@do@setsinglekeys*[UFCB]{locfill}{markarea=\board@temp@curstartfield-\board@temp@curstopfield}}% |
| 4809 |
|
| 4810 |
\define@key[UFCB]{glofill}{markboard}[true]{% D |
| 4811 |
\board@do@l@addto@macro\board@val@savedkeylist{,markboard=#1}}% |
| 4812 |
|
| 4813 |
\define@key[UFCB]{locfill}{backboard}[true]{% D |
| 4814 |
\edef\board@temp@curstartfield{\board@val@minfilechar\board@val@maxranknum}% |
| 4815 |
\edef\board@temp@curstopfield{\board@val@maxfilechar\board@val@minranknum}% |
| 4816 |
\board@do@setsinglekeys*[UFCB]{locfill}{backarea=\board@temp@curstartfield-\board@temp@curstopfield}}% |
| 4817 |
|
| 4818 |
\define@key[UFCB]{glofill}{backboard}[true]{% D |
| 4819 |
\board@do@l@addto@macro\board@val@savedkeylist{,backboard=#1}}% |
| 4820 |
|
| 4821 |
\define@key[UFCB]{locfill}{markrank}{% D |
| 4822 |
\edef\board@temp@list{#1}% |
| 4823 |
\@for\board@temp@currank:=\board@temp@list\do |
| 4824 |
{\edef\board@temp@curstartfield{\board@val@minfilechar\board@temp@currank}% |
| 4825 |
\edef\board@temp@curstopfield{\board@val@maxfilechar\board@temp@currank}% |
| 4826 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 4827 |
markarea=\board@temp@curstartfield-\board@temp@curstopfield}}}% |
| 4828 |
|
| 4829 |
\define@key[UFCB]{glofill}{markrank}{% D |
| 4830 |
\board@do@l@addto@macro\board@val@savedkeylist{,markrank={#1}}}% |
| 4831 |
|
| 4832 |
\define@key[UFCB]{locfill}{backrank}{% D |
| 4833 |
\edef\board@temp@list{#1}% |
| 4834 |
\@for\board@temp@currank:=\board@temp@list\do |
| 4835 |
{\edef\board@temp@curstartfield{\board@val@minfilechar\board@temp@currank}% |
| 4836 |
\edef\board@temp@curstopfield{\board@val@maxfilechar\board@temp@currank}% |
| 4837 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 4838 |
backarea=\board@temp@curstartfield-\board@temp@curstopfield}}}% |
| 4839 |
|
| 4840 |
\define@key[UFCB]{glofill}{backrank}{% D |
| 4841 |
\board@do@l@addto@macro\board@val@savedkeylist{,backrank={#1}}}% |
| 4842 |
|
| 4843 |
\define@key[UFCB]{locfill}{markranks}{% D |
| 4844 |
\edef\board@temp@list{#1}% |
| 4845 |
\@for\board@temp@currank:=\board@temp@list\do |
| 4846 |
{\edef\board@temp@curstartfield{\board@val@minfilechar\board@temp@currank}% |
| 4847 |
\edef\board@temp@curstopfield{\board@val@maxfilechar\board@temp@currank}% |
| 4848 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 4849 |
markarea=\board@temp@curstartfield-\board@temp@curstopfield}}}% |
| 4850 |
|
| 4851 |
\define@key[UFCB]{glofill}{markranks}{% D |
| 4852 |
\board@do@l@addto@macro\board@val@savedkeylist{,markranks={#1}}}% |
| 4853 |
|
| 4854 |
\define@key[UFCB]{locfill}{backranks}{% D |
| 4855 |
\edef\board@temp@list{#1}% |
| 4856 |
\@for\board@temp@currank:=\board@temp@list\do |
| 4857 |
{\edef\board@temp@curstartfield{\board@val@minfilechar\board@temp@currank}% |
| 4858 |
\edef\board@temp@curstopfield{\board@val@maxfilechar\board@temp@currank}% |
| 4859 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 4860 |
backarea=\board@temp@curstartfield-\board@temp@curstopfield}}}% |
| 4861 |
|
| 4862 |
\define@key[UFCB]{glofill}{backranks}{% D |
| 4863 |
\board@do@l@addto@macro\board@val@savedkeylist{,backranks={#1}}}% |
| 4864 |
|
| 4865 |
\define@key[UFCB]{locfill}{markfile}{% D |
| 4866 |
\edef\board@temp@list{#1}% |
| 4867 |
\@for\board@temp@curfile:=\board@temp@list\do |
| 4868 |
{\edef\board@temp@curstartfield{\board@temp@curfile\board@val@maxranknum}% |
| 4869 |
\edef\board@temp@curstopfield{\board@temp@curfile\board@val@minranknum}% |
| 4870 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 4871 |
markarea=\board@temp@curstartfield-\board@temp@curstopfield}}}% |
| 4872 |
|
| 4873 |
\define@key[UFCB]{glofill}{markfile}{% D |
| 4874 |
\board@do@l@addto@macro\board@val@savedkeylist{,markfile={#1}}}% |
| 4875 |
|
| 4876 |
\define@key[UFCB]{locfill}{backfile}{% D |
| 4877 |
\edef\board@temp@list{#1}% |
| 4878 |
\@for\board@temp@curfile:=\board@temp@list\do |
| 4879 |
{\edef\board@temp@curstartfield{\board@temp@curfile\board@val@maxranknum}% |
| 4880 |
\edef\board@temp@curstopfield{\board@temp@curfile\board@val@minranknum}% |
| 4881 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 4882 |
backarea=\board@temp@curstartfield-\board@temp@curstopfield}}}% |
| 4883 |
|
| 4884 |
\define@key[UFCB]{glofill}{backfile}{% D |
| 4885 |
\board@do@l@addto@macro\board@val@savedkeylist{,backfile={#1}}}% |
| 4886 |
|
| 4887 |
\define@key[UFCB]{locfill}{markfiles}{% D |
| 4888 |
\edef\board@temp@list{#1}% |
| 4889 |
\@for\board@temp@curfile:=\board@temp@list\do |
| 4890 |
{\edef\board@temp@curstartfield{\board@temp@curfile\board@val@maxranknum}% |
| 4891 |
\edef\board@temp@curstopfield{\board@temp@curfile\board@val@minranknum}% |
| 4892 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 4893 |
markarea=\board@temp@curstartfield-\board@temp@curstopfield}}}% |
| 4894 |
|
| 4895 |
\define@key[UFCB]{glofill}{markfiles}{% D |
| 4896 |
\board@do@l@addto@macro\board@val@savedkeylist{,markfiles={#1}}}% |
| 4897 |
|
| 4898 |
\define@key[UFCB]{locfill}{backfiles}{% D |
| 4899 |
\edef\board@temp@list{#1}% |
| 4900 |
\@for\board@temp@curfile:=\board@temp@list\do |
| 4901 |
{\edef\board@temp@curstartfield{\board@temp@curfile\board@val@maxranknum}% |
| 4902 |
\edef\board@temp@curstopfield{\board@temp@curfile\board@val@minranknum}% |
| 4903 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 4904 |
backarea=\board@temp@curstartfield-\board@temp@curstopfield}}}% |
| 4905 |
|
| 4906 |
\define@key[UFCB]{glofill}{backfiles}{% D |
| 4907 |
\board@do@l@addto@macro\board@val@savedkeylist{,backfiles={#1}}}% |
| 4908 |
|
| 4909 |
%%% region marks |
| 4910 |
|
| 4911 |
\define@key[UFCB]{locfill}{markregion}{% D |
| 4912 |
\edef\board@temp@list{#1}% |
| 4913 |
\@for\board@temp@curarea:=\board@temp@list\do |
| 4914 |
{\expandafter\board@split@areasort\board@temp@curarea ARGEND% |
| 4915 |
\edef\board@temp{{\board@temp@curstartfield}{\board@temp@curstopfield}}% |
| 4916 |
\expandafter\board@pgf@add@regionmarkstyle\board@temp%{a}{b}% |
| 4917 |
}}% |
| 4918 |
|
| 4919 |
\define@key[UFCB]{glofill}{markregion}{% D |
| 4920 |
\board@do@l@addto@macro\board@val@savedkeylist{,markregion={#1}}}% |
| 4921 |
|
| 4922 |
\define@key[UFCB]{locfill}{backregion}{% D |
| 4923 |
\edef\board@temp@list{#1}% |
| 4924 |
\@for\board@temp@curarea:=\board@temp@list\do |
| 4925 |
{\expandafter\board@split@areasort\board@temp@curarea ARGEND% |
| 4926 |
\edef\board@temp{{\board@temp@curstartfield}{\board@temp@curstopfield}}% |
| 4927 |
\expandafter\board@pgf@add@regionbackstyle\board@temp%{a}{b}% |
| 4928 |
}}% |
| 4929 |
|
| 4930 |
\define@key[UFCB]{glofill}{backregion}{% D |
| 4931 |
\board@do@l@addto@macro\board@val@savedkeylist{,backregion={#1}}}% |
| 4932 |
|
| 4933 |
\define@key[UFCB]{locfill}{markregions}{% D |
| 4934 |
\edef\board@temp@list{#1}% |
| 4935 |
\@for\board@temp@curarea:=\board@temp@list\do |
| 4936 |
{\expandafter\board@split@areasort\board@temp@curarea ARGEND% |
| 4937 |
\edef\board@temp{{\board@temp@curstartfield}{\board@temp@curstopfield}}% |
| 4938 |
\expandafter\board@pgf@add@regionmarkstyle\board@temp%{a}{b}% |
| 4939 |
}}% |
| 4940 |
|
| 4941 |
\define@key[UFCB]{glofill}{markregions}{% D |
| 4942 |
\board@do@l@addto@macro\board@val@savedkeylist{,markregions={#1}}}% |
| 4943 |
|
| 4944 |
\define@key[UFCB]{locfill}{backregions}{% D |
| 4945 |
\edef\board@temp@list{#1}% |
| 4946 |
\@for\board@temp@curarea:=\board@temp@list\do |
| 4947 |
{\expandafter\board@split@areasort\board@temp@curarea ARGEND% |
| 4948 |
\edef\board@temp{{\board@temp@curstartfield}{\board@temp@curstopfield}}% |
| 4949 |
\expandafter\board@pgf@add@regionbackstyle\board@temp%{a}{b}% |
| 4950 |
}}% |
| 4951 |
|
| 4952 |
\define@key[UFCB]{glofill}{backregions}{% D |
| 4953 |
\board@do@l@addto@macro\board@val@savedkeylist{,backregions={#1}}}% |
| 4954 |
|
| 4955 |
%%% move marks |
| 4956 |
|
| 4957 |
\define@key[UFCB]{locfill}{markmove}{% D |
| 4958 |
\edef\board@temp@list{#1}% |
| 4959 |
\@for\board@temp@curarea:=\board@temp@list\do |
| 4960 |
{\expandafter\board@split@area\board@temp@curarea ARGEND% |
| 4961 |
\edef\board@temp{{\board@temp@curstartfield}{\board@temp@curstopfield}}% |
| 4962 |
\expandafter\board@pgf@add@movemarkstyle\board@temp}}% |
| 4963 |
|
| 4964 |
\define@key[UFCB]{glofill}{markmove}{% D |
| 4965 |
\board@do@l@addto@macro\board@val@savedkeylist{,markmove={#1}}}% |
| 4966 |
|
| 4967 |
\define@key[UFCB]{locfill}{backmove}{% D |
| 4968 |
\edef\board@temp@list{#1}% |
| 4969 |
\@for\board@temp@curarea:=\board@temp@list\do |
| 4970 |
{\expandafter\board@split@area\board@temp@curarea ARGEND% |
| 4971 |
\edef\board@temp{{\board@temp@curstartfield}{\board@temp@curstopfield}}% |
| 4972 |
\expandafter\board@pgf@add@movebackstyle\board@temp}}% |
| 4973 |
|
| 4974 |
\define@key[UFCB]{glofill}{backmove}{% D |
| 4975 |
\board@do@l@addto@macro\board@val@savedkeylist{,backmove={#1}}}% |
| 4976 |
|
| 4977 |
\define@key[UFCB]{locfill}{markmoves}{% D |
| 4978 |
\edef\board@temp@list{#1}% |
| 4979 |
\@for\board@temp@curarea:=\board@temp@list\do |
| 4980 |
{\expandafter\board@split@area\board@temp@curarea ARGEND% |
| 4981 |
\edef\board@temp{{\board@temp@curstartfield}{\board@temp@curstopfield}}% |
| 4982 |
\expandafter\board@pgf@add@movemarkstyle\board@temp}}% |
| 4983 |
|
| 4984 |
\define@key[UFCB]{glofill}{markmoves}{% D |
| 4985 |
\board@do@l@addto@macro\board@val@savedkeylist{,markmoves={#1}}}% |
| 4986 |
|
| 4987 |
\define@key[UFCB]{locfill}{backmoves}{% D |
| 4988 |
\edef\board@temp@list{#1}% |
| 4989 |
\@for\board@temp@curarea:=\board@temp@list\do |
| 4990 |
{\expandafter\board@split@area\board@temp@curarea ARGEND% |
| 4991 |
\edef\board@temp{{\board@temp@curstartfield}{\board@temp@curstopfield}}% |
| 4992 |
\expandafter\board@pgf@add@movebackstyle\board@temp}}% |
| 4993 |
|
| 4994 |
\define@key[UFCB]{glofill}{backmoves}{% D |
| 4995 |
\board@do@l@addto@macro\board@val@savedkeylist{,backmoves={#1}}}% |
| 4996 |
|
| 4997 |
%% obsolete keys, shortcuts |
| 4998 |
|
| 4999 |
%% obsolete key, |
| 5000 |
\define@choicekey[UFCB]{locfill}{applycolor}[\@tempval\@tempnr]{all,none,white,black}{% D |
| 5001 |
\ifcase\@tempnr\relax |
| 5002 |
\board@do@setsinglekeys*[UFCB]{locfill}{trimtocolor=false}% |
| 5003 |
\or |
| 5004 |
\board@do@setsinglekeys*[UFCB]{locfill}{useonwhite=false,useonblack=false}% |
| 5005 |
\or |
| 5006 |
\board@do@setsinglekeys*[UFCB]{locfill}{trimtocolor=white}% |
| 5007 |
\or |
| 5008 |
\board@do@setsinglekeys*[UFCB]{locfill}{trimtocolor=black}% |
| 5009 |
\fi}% |
| 5010 |
|
| 5011 |
\define@key[UFCB]{glofill}{applycolor}{% D |
| 5012 |
\board@do@l@addto@macro\board@val@savedkeylist{,applycolor=#1}}% |
| 5013 |
|
| 5014 |
\define@key[UFCB]{locfill}{colorbackarea}{% D |
| 5015 |
\board@do@setsinglekeys*[UFCB]{locfill}{colorbackareas={#1}}}% |
| 5016 |
|
| 5017 |
\define@key[UFCB]{glofill}{colorbackarea}{% D |
| 5018 |
\board@do@l@addto@macro\board@val@savedkeylist{,colorbackarea={#1}}}% |
| 5019 |
|
| 5020 |
\define@key[UFCB]{locfill}{colorbackareas}{% D |
| 5021 |
\let\board@pgf@savebackstyle\board@pgf@curbackstyle |
| 5022 |
\board@do@setsinglekeys*[UFCB]{locfill}{backstyle=color,backareas={#1},backstyle=\board@pgf@savebackstyle}}% |
| 5023 |
|
| 5024 |
\define@key[UFCB]{glofill}{colorbackareas}{% D |
| 5025 |
\board@do@l@addto@macro\board@val@savedkeylist{,colorbackareas={#1}}}% |
| 5026 |
|
| 5027 |
\define@key[UFCB]{locfill}{colorbackboard}[true]{%D |
| 5028 |
\edef\board@temp@curstartfield{\board@val@minfilechar\board@val@maxranknum}% |
| 5029 |
\edef\board@temp@curstopfield{\board@val@maxfilechar\board@val@minranknum}% |
| 5030 |
\board@do@setsinglekeys*[UFCB]{locfill}{colorbackareas=\board@temp@curstartfield-\board@temp@curstopfield}}% |
| 5031 |
|
| 5032 |
\define@key[UFCB]{glofill}{colorbackboard}[true]{%D |
| 5033 |
\board@do@l@addto@macro\board@val@savedkeylist{,colorbackboard=#1}}% |
| 5034 |
|
| 5035 |
\define@key[UFCB]{locfill}{colorboard}[true]{%D |
| 5036 |
\edef\board@temp@curstartfield{\board@val@startprintfilechar\board@val@startprintranknum}% |
| 5037 |
\edef\board@temp@curstopfield{\board@val@stopprintfilechar\board@val@stopprintranknum}% |
| 5038 |
\board@do@setsinglekeys*[UFCB]{locfill}{colorbackarea=\board@temp@curstartfield-\board@temp@curstopfield}}% |
| 5039 |
|
| 5040 |
\define@key[UFCB]{glofill}{colorboard}[true]{%D |
| 5041 |
\board@do@l@addto@macro\board@val@savedkeylist{,colorboard=#1}}% |
| 5042 |
|
| 5043 |
\define@key[UFCB]{locfill}{colorbackranks}{%D |
| 5044 |
\edef\board@temp@list{#1}% |
| 5045 |
\@for\board@temp@currank:=\board@temp@list\do |
| 5046 |
{\edef\board@temp@curstartfield{\board@val@minfilechar\board@temp@currank}% |
| 5047 |
\edef\board@temp@curstopfield{\board@val@maxfilechar\board@temp@currank}% |
| 5048 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 5049 |
colorbackareas=\board@temp@curstartfield-\board@temp@curstopfield}}}% |
| 5050 |
|
| 5051 |
\define@key[UFCB]{glofill}{colorbackranks}{%D |
| 5052 |
\board@do@l@addto@macro\board@val@savedkeylist{,colorbackranks={#1}}}% |
| 5053 |
|
| 5054 |
\define@key[UFCB]{locfill}{colorbackrank}{% D |
| 5055 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 5056 |
colorbackranks={#1}}}% |
| 5057 |
|
| 5058 |
\define@key[UFCB]{glofill}{colorbackrank}{%D |
| 5059 |
\board@do@l@addto@macro\board@val@savedkeylist{,colorbackrank={#1}}}% |
| 5060 |
|
| 5061 |
\define@key[UFCB]{locfill}{colorbackfiles}{%D |
| 5062 |
\edef\board@temp@list{#1}% |
| 5063 |
\@for\board@temp@curfile:=\board@temp@list\do |
| 5064 |
{\edef\board@temp@curstartfield{\board@temp@curfile\board@val@maxranknum}% |
| 5065 |
\edef\board@temp@curstopfield{\board@temp@curfile\board@val@minranknum}% |
| 5066 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 5067 |
colorbackareas=\board@temp@curstartfield-\board@temp@curstopfield}}}% |
| 5068 |
|
| 5069 |
\define@key[UFCB]{glofill}{colorbackfiles}{%D |
| 5070 |
\board@do@l@addto@macro\board@val@savedkeylist{,colorbackfiles={#1}}}% |
| 5071 |
|
| 5072 |
\define@key[UFCB]{locfill}{colorbackfile}{% D |
| 5073 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 5074 |
colorbackfiles={#1}}}% |
| 5075 |
|
| 5076 |
\define@key[UFCB]{glofill}{colorbackfile}{%D |
| 5077 |
\board@do@l@addto@macro\board@val@savedkeylist{,colorbackfile={#1}}}% |
| 5078 |
|
| 5079 |
\define@key[UFCB]{locfill}{colorbackfields}{% #1=list of fields %D |
| 5080 |
\edef\board@temp@list{#1}% |
| 5081 |
\@for\board@temp@curfield:=\board@temp@list\do |
| 5082 |
{\board@do@setsinglekeys*[UFCB]{locfill}{colorbackareas=\board@temp@curfield-\board@temp@curfield}}}% |
| 5083 |
|
| 5084 |
\define@key[UFCB]{glofill}{colorbackfields}{% %D |
| 5085 |
\board@do@l@addto@macro\board@val@savedkeylist{,colorbackfields={#1}}}% |
| 5086 |
|
| 5087 |
\define@key[UFCB]{locfill}{colorbackfield}{% %D |
| 5088 |
\board@do@setsinglekeys*[UFCB]{locfill}{colorbackareas=#1-#1}}% |
| 5089 |
|
| 5090 |
\define@key[UFCB]{glofill}{colorbackfield}{% %D |
| 5091 |
\board@do@l@addto@macro\board@val@savedkeylist{,colorbackfield=#1}}% |
| 5092 |
|
| 5093 |
\define@key[UFCB]{locfill}{colorwhitebackfields}[true]{% |
| 5094 |
\let\board@pgf@savetrimtocolor\board@pgf@curtrimtocolor% |
| 5095 |
\board@do@setsinglekeys*[UFCB]{locfill}{trimtocolor=white, colorbackboard}% |
| 5096 |
\expandafter\board@do@setsavedkey\expandafter{\board@pgf@savetrimtocolor}{trimtocolor}}% |
| 5097 |
|
| 5098 |
\define@key[UFCB]{glofill}{colorwhitebackfields}[true]{% %D |
| 5099 |
\board@do@l@addto@macro\board@val@savedkeylist{,colorwhitefields=#1}}% |
| 5100 |
|
| 5101 |
\define@key[UFCB]{locfill}{colorblackbackfields}[true]{% |
| 5102 |
\let\board@pgf@savetrimtocolor\board@pgf@curtrimtocolor% |
| 5103 |
\board@do@setsinglekeys*[UFCB]{locfill}{trimtocolor=black, colorbackboard}% |
| 5104 |
\expandafter\board@do@setsavedkey\expandafter{\board@pgf@savetrimtocolor}{trimtocolor}}% |
| 5105 |
|
| 5106 |
\define@key[UFCB]{glofill}{colorblackbackfields}[true]{% %D |
| 5107 |
\board@do@l@addto@macro\board@val@savedkeylist{,colorblackfields=#1}}% |
| 5108 |
|
| 5109 |
%%obsolete |
| 5110 |
\define@key[UFCB]{locfill}{colorblackfields}[true]{% |
| 5111 |
\let\board@pgf@savetrimtocolor\board@pgf@curtrimtocolor% |
| 5112 |
\board@do@setsinglekeys*[UFCB]{locfill}{trimtocolor=black, colorbackboard}% |
| 5113 |
\expandafter\board@do@setsavedkey\expandafter{\board@pgf@savetrimtocolor}{trimtocolor}}% |
| 5114 |
|
| 5115 |
\define@key[UFCB]{glofill}{colorblackfields}[true]{% %D |
| 5116 |
\board@do@l@addto@macro\board@val@savedkeylist{,colorblackfields=#1}}% |
| 5117 |
|
| 5118 |
%% obsolete |
| 5119 |
\define@key[UFCB]{locfill}{colorwhitefields}[true]{% |
| 5120 |
\let\board@pgf@savetrimtocolor\board@pgf@curtrimtocolor% |
| 5121 |
\board@do@setsinglekeys*[UFCB]{locfill}{trimtocolor=white, colorbackboard}% |
| 5122 |
\expandafter\board@do@setsavedkey\expandafter{\board@pgf@savetrimtocolor}{trimtocolor}}% |
| 5123 |
|
| 5124 |
\define@key[UFCB]{glofill}{colorwhitefields}[true]{% %D |
| 5125 |
\board@do@l@addto@macro\board@val@savedkeylist{,colorwhitefields=#1}}% |
| 5126 |
|
| 5127 |
%% to add background border |
| 5128 |
|
| 5129 |
\define@key[UFCB]{locfill}{pgfborder}[\printarea]{% |
| 5130 |
\edef\board@pgf@savebackstyle{\board@pgf@curbackstyle}% |
| 5131 |
\board@do@setsinglekeys*[UFCB]{locfill}{% |
| 5132 |
backstyle=border,backregions={#1}}% |
| 5133 |
\expandafter\board@do@setsavedkey\expandafter{\board@pgf@savebackstyle}{backstyle}}% |
| 5134 |
|
| 5135 |
\define@key[UFCB]{glofill}{pgfborder}[\printarea]{% %D |
| 5136 |
\board@do@l@addto@macro\board@val@savedkeylist{,pgfborder={#1}}}% |
| 5137 |
|
| 5138 |
|
| 5139 |
%</chessboard-keys-pgf> |