diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/chessfss/lsb3enc.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/chessfss/lsb3enc.def | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/chessfss/lsb3enc.def b/Master/texmf-dist/tex/latex/chessfss/lsb3enc.def new file mode 100644 index 00000000000..8baf5fd336d --- /dev/null +++ b/Master/texmf-dist/tex/latex/chessfss/lsb3enc.def @@ -0,0 +1,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'. |