blob: 8baf5fd336d11b5a479a6aa4942def9ff33a14ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
%%
%% This is file `lsb3enc.def',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% chessfss-src.dtx (with options: `lsb3enc')
%%
%% chessfss: chess font selection commands
%% Copyright 2005 Ulrike Fischer (skak@nililand.de)
%% -------------------------------------------
%%
%% This file can be redistributed and/or modified under the terms of
%% the LaTeX Project Public License distributed from CTAN archives in
%% the directory macros/latex/base/lppl.txt; either version 1 of the
%% License, or (at your option) any later version.
%%
%% For error reports see documentation.
%%
%% LSB3: An encoding for chessboard chars.
%% that makes it possible to color field and the piece differently.
%% In this encoding the pieces/fields are build only with the BlackpieceOnWhite characters.
%% Black fields must get their color through commands like \colorbox.
%% Black and white pieces must be colored differently!
%% The color of the background will shine through the inner of the pieces, but not
%% so much, as black pieces are more solid.
%% The solid fieldmask layer, the field layer and the piecemask layer are not used.
%% The encoding works with fonts that have the pieceOnWhite chars. (This should be all fonts)
\ProvidesFile{lsb3enc.def}
[2006/06/09 v1.1
Standard LaTeX file]
\DeclareFontEncoding{LSB3}{}{}
\DeclareFontSubstitution{LSB3}{skaknew}{m}{n}
\providecommand\cfss@whitepiececolor{}
\providecommand\cfss@blackpiececolor{}
\providecommand\cfss@composepcolorchar[2]{%range layer: p
{\csname cfss@#1piececolor\endcsname#2}}%
\@namedef{cfss@showboardencodingLSB3}{%
\begin{tabular}{llllll}
\multicolumn{6}{l}{\bfseries Encoding \ttfamily LSB3}\\
\multicolumn{6}{l}{fields have no char or color!}\\
\multicolumn{6}{l}{White and black pieces use the same char!}\\[0.5ex]
Layer: & fieldmask
& field
& piecemask
& piece
& result\\
WhiteSquare &
&
&
&
&\boardfont\cfss@WhiteEmptySquare\\
BlackSquare &
&
&
&
&\boardfont\cfss@BlackEmptySquare\\
WhiteOnWhite &
&
&
&\boardfont\cfss@whitepiececolor k
&\boardfont\cfss@WhiteKingOnWhite\\
WhiteOnBlack &
&
&
&\boardfont\cfss@whitepiececolor k
&\boardfont\cfss@WhiteKingOnBlack\\
BlackOnWhite &
&
&
&\boardfont\cfss@blackpiececolor k
&\boardfont\cfss@BlackKingOnWhite\\
BlackOnBlack &
&
&
&\boardfont\cfss@blackpiececolor k
&\boardfont\cfss@BlackKingOnBlack\\
\end{tabular}}
\DeclareTextCommand\cfss@WhiteEmptySquare {LSB3}{\phantom{Z}}
\DeclareTextCommand\cfss@BlackEmptySquare {LSB3}{\phantom{Z}}
\DeclareTextCommand\cfss@WhiteKingOnWhite {LSB3}{\cfss@composepcolorchar{white}{k}}
\DeclareTextCommand\cfss@BlackKingOnWhite {LSB3}{\cfss@composepcolorchar{black}{k}}
\DeclareTextCommand\cfss@WhiteKingOnBlack {LSB3}{\cfss@composepcolorchar{white}{k}}
\DeclareTextCommand\cfss@BlackKingOnBlack {LSB3}{\cfss@composepcolorchar{black}{k}}
\DeclareTextCommand\cfss@WhiteQueenOnWhite {LSB3}{\cfss@composepcolorchar{white}{q}}
\DeclareTextCommand\cfss@BlackQueenOnWhite {LSB3}{\cfss@composepcolorchar{black}{q}}
\DeclareTextCommand\cfss@WhiteQueenOnBlack {LSB3}{\cfss@composepcolorchar{white}{q}}
\DeclareTextCommand\cfss@BlackQueenOnBlack {LSB3}{\cfss@composepcolorchar{black}{q}}
\DeclareTextCommand\cfss@WhiteRookOnWhite {LSB3}{\cfss@composepcolorchar{white}{r}}
\DeclareTextCommand\cfss@BlackRookOnWhite {LSB3}{\cfss@composepcolorchar{black}{r}}
\DeclareTextCommand\cfss@WhiteRookOnBlack {LSB3}{\cfss@composepcolorchar{white}{r}}
\DeclareTextCommand\cfss@BlackRookOnBlack {LSB3}{\cfss@composepcolorchar{black}{r}}
\DeclareTextCommand\cfss@WhiteBishopOnWhite{LSB3}{\cfss@composepcolorchar{white}{b}}
\DeclareTextCommand\cfss@BlackBishopOnWhite{LSB3}{\cfss@composepcolorchar{black}{b}}
\DeclareTextCommand\cfss@WhiteBishopOnBlack{LSB3}{\cfss@composepcolorchar{white}{b}}
\DeclareTextCommand\cfss@BlackBishopOnBlack{LSB3}{\cfss@composepcolorchar{black}{b}}
\DeclareTextCommand\cfss@WhiteKnightOnWhite{LSB3}{\cfss@composepcolorchar{white}{n}}
\DeclareTextCommand\cfss@BlackKnightOnWhite{LSB3}{\cfss@composepcolorchar{black}{n}}
\DeclareTextCommand\cfss@WhiteKnightOnBlack{LSB3}{\cfss@composepcolorchar{white}{n}}
\DeclareTextCommand\cfss@BlackKnightOnBlack{LSB3}{\cfss@composepcolorchar{black}{n}}
\DeclareTextCommand\cfss@WhitePawnOnWhite {LSB3}{\cfss@composepcolorchar{white}{p}}
\DeclareTextCommand\cfss@BlackPawnOnWhite {LSB3}{\cfss@composepcolorchar{black}{p}}
\DeclareTextCommand\cfss@WhitePawnOnBlack {LSB3}{\cfss@composepcolorchar{white}{p}}
\DeclareTextCommand\cfss@BlackPawnOnBlack {LSB3}{\cfss@composepcolorchar{black}{p}}
\endinput
%%
%% End of file `lsb3enc.def'.
|