summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/chess-problem-diagrams
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-06-23 23:43:55 +0000
committerKarl Berry <karl@freefriends.org>2013-06-23 23:43:55 +0000
commitac69e1e7e9a1851a75554fbadc6087e4dd79b5a4 (patch)
treeb956be334b3643382fa9bc4774ad674cd382b921 /Master/texmf-dist/source/latex/chess-problem-diagrams
parent3f214aab9775b3253253bc72fa7a58a0278206d4 (diff)
chess-problem-diagrams (23jun13)
git-svn-id: svn://tug.org/texlive/trunk@30870 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/chess-problem-diagrams')
-rw-r--r--Master/texmf-dist/source/latex/chess-problem-diagrams/diagram.dtx46
1 files changed, 40 insertions, 6 deletions
diff --git a/Master/texmf-dist/source/latex/chess-problem-diagrams/diagram.dtx b/Master/texmf-dist/source/latex/chess-problem-diagrams/diagram.dtx
index 9b364021d99..3f359c20add 100644
--- a/Master/texmf-dist/source/latex/chess-problem-diagrams/diagram.dtx
+++ b/Master/texmf-dist/source/latex/chess-problem-diagrams/diagram.dtx
@@ -13,9 +13,9 @@
%%
%%
% \fi
-% \def\fileversion{1.6.4}
-% \def\docdate{2012/11/18}
-% \CheckSum{4192}
+% \def\fileversion{1.6.5}
+% \def\docdate{2013/06/21}
+% \CheckSum{4220}
% \changes{v0.1}{15 Februar 2004}{First Version}
% \changes{v0.2}{23 Februar 2004}{Added the documentation for the
% {\itshape information collecting} macros which may be used
@@ -58,6 +58,7 @@
% \changes{v1.6.2}{11 November 2012}{Added boolean for allwhite problems.}
% \changes{v1.6.3}{12 November 2012}{Added boolean for board with switched field colors.}
% \changes{v1.6.4}{12 November 2012}{Added convenience command for 'allwhite' and 'switchcolors' booleans.}
+% \changes{v1.6.5}{21 June 2013}{As suggested by Torsten Lin{\ss} and Thomas Brand added support for Equihopper and turned Equihopper (X)}
%
% \DoNotIndex{\@arabic,\def,\@idxitem,\@ifnextchar,\@ifstar,
% \@ne,\@ptsize,\ ,\advance,\AtEndOfPackage,\begin,\begingroup,
@@ -222,7 +223,10 @@
% a neutral king on a4\newline
% {\bfseries w s n} may be used to specify the color of the
% piece.\newline
-% {\bfseries K D T L S B} may be used to specify the piece.\newline
+% {\bfseries K D T L S B C E X} may be used to specify the piece. A {\bfseries
+% C} is used for an imitator, {\bfseries E} for an equihopper and {\bfseries X}
+% for a rotated equihopper. You may {\itshape not} use an optional rotation
+% with {\bfseries C, E} and {\bfseries X}.\newline
% {\bfseries R U L} may be used to specify an optional rotation:
% right, upside-down, left. So you may use {\ttfamily sDUc7} for
% a grashopper on c7 --- displayed as an upsidedown
@@ -774,6 +778,24 @@
% \item[\sC]
% \DescribeMacro{\sC}
% a black circle
+% \item[\wE]
+% \DescribeMacro{\wE}
+% a white equihopper
+% \item[\sE]
+% \DescribeMacro{\sE}
+% a black equihopper
+% \item[\nE]
+% \DescribeMacro{\nE}
+% a neutral equihopper
+% \item[\wX]
+% \DescribeMacro{\wX}
+% a white rotated equihopper
+% \item[\sX]
+% \DescribeMacro{\sX}
+% a black rotated equihopper
+% \item[\nX]
+% \DescribeMacro{\nX}
+% a neutral rotated equihopper
% \end{description}
% \subsubsection{Other often used symbols}
% The style also defines commands for other symbols, which are
@@ -819,7 +841,8 @@
% using the order white, black, neutral
% \item the letters used to specify the type of a piece using the
% order king, queen, rook, bishop, knight, pawn. You may not
-% use a capital {\bfseries C}, because this is used for circles.
+% use the characters {\bfseries C, E} and {\bfseries X}, because these are
+% used for Circle, Equihopper and rotated Equihopper.
% \item the letters used to specify an optional rotation using
% the order left-turned, right-turned, upside-down. You must use
% capital letters for this.
@@ -1978,6 +2001,13 @@
}%
}
\def\Imi{\ch@fig{157}}
+\def\wE{\ch@fig{216}}
+\def\nE{\ch@fig{222}}
+\def\sE{\ch@fig{228}}
+\def\wX{\ch@fig{180}}
+\def\nX{\ch@fig{186}}
+\def\sX{\ch@fig{192}}
+
% \end{macrocode}
%
% \begin{macro}{\dia@above}
@@ -2608,9 +2638,13 @@
% An imitator should not count for any color.
\let\cpd@stepcounterPieces\relax
\advance\help@a 145%
+ \else\if#1E% Equihopper
+ \advance\help@a 216%
+ \else\if#1X% Equihopper senkrecht
+ \advance\help@a 180%
\else%
\errmessage{invalid piece!}%
- \fi\fi\fi\fi\fi\fi\fi%
+ \fi\fi\fi\fi\fi\fi\fi\fi\fi%
\futurelet\r@tate\chkr@tate%
}