summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/chess-problem-diagrams/README2
-rw-r--r--Master/texmf-dist/doc/latex/chess-problem-diagrams/diagram.pdfbin330313 -> 331689 bytes
-rw-r--r--Master/texmf-dist/source/latex/chess-problem-diagrams/diagram.dtx31
-rw-r--r--Master/texmf-dist/tex/latex/chess-problem-diagrams/diagram.sty4
4 files changed, 23 insertions, 14 deletions
diff --git a/Master/texmf-dist/doc/latex/chess-problem-diagrams/README b/Master/texmf-dist/doc/latex/chess-problem-diagrams/README
index 17234263c4c..1c1e02cb8f4 100644
--- a/Master/texmf-dist/doc/latex/chess-problem-diagrams/README
+++ b/Master/texmf-dist/doc/latex/chess-problem-diagrams/README
@@ -1,5 +1,5 @@
diagram --- A package for typesetting chessproblems
-Version 1.6.3 / Stefan Hoening 2012
+Version 1.6.4 / Stefan Hoening 2012
CONTENTS
diff --git a/Master/texmf-dist/doc/latex/chess-problem-diagrams/diagram.pdf b/Master/texmf-dist/doc/latex/chess-problem-diagrams/diagram.pdf
index 7769b550deb..6e461bd5000 100644
--- a/Master/texmf-dist/doc/latex/chess-problem-diagrams/diagram.pdf
+++ b/Master/texmf-dist/doc/latex/chess-problem-diagrams/diagram.pdf
Binary files differ
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 666071336ff..9b364021d99 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.3}
-% \def\docdate{2012/11/12}
-% \CheckSum{4186}
+% \def\fileversion{1.6.4}
+% \def\docdate{2012/11/18}
+% \CheckSum{4192}
% \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
@@ -57,6 +57,7 @@
% of fairy pieces for rotated pieces.}
% \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.}
%
% \DoNotIndex{\@arabic,\def,\@idxitem,\@ifnextchar,\@ifstar,
% \@ne,\@ptsize,\ ,\advance,\AtEndOfPackage,\begin,\begingroup,
@@ -612,13 +613,15 @@
% frame.
%
% \subsection{Change the coloring of the fields}
-% \DescribeMacro{allwhite}
-% The \verb+allwhite+ boolean can be used to have all white squares.
-% Therefore dotted lines are produced to separate the squares.
+% \DescribeMacro{\allwhite}
+% The \verb+allwhite+ boolean can be used to have all white squares. Therefore
+% dotted lines are produced to separate the squares. For convenience we
+% provide a command \verb+allwhite+ which switches the value of the
+% \verb+allwhite+ boolean to true.
%
% \bigskip
% \begin{diagram}
-% \setboolean{allwhite}{true}
+% \allwhite
% \pieces{wKe1, wDd1, wTa1h1, wLf1c1, wSb1g1, sKe8, sDd8, sTa8h8, sLf8c8, sSb8g8}
% \end{diagram}
% \hfill
@@ -628,19 +631,21 @@
%
% \begin{verbatim}
% \begin{diagram}
-% \setboolean{allwhite}{true}
+% \allwhite
% \pieces{wKe1, wDd1, wTa1h1, wLf1c1, wSb1g1, %
% sKe8, sDd8, sTa8h8, sLf8c8, sSb8g8}
% \end{diagram}
% \end{verbatim}
% \end{minipage}
%
-% \DescribeMacro{switchcolors}
-% The boolean \verb+switchcolors+ may be used to switch the coloring of white and black fields.
+% \DescribeMacro{\switchcolors}
+% The boolean \verb+switchcolors+ may be used to switch the coloring of white
+% and black fields. For convenience we provide a command \verb+switchcolors+
+% which switches the value of the \verb+switchcolors+ boolean to true.
%
% \bigskip
% \begin{diagram}
-% \setboolean{switchcolors}{true}
+% \switchcolors
% \end{diagram}
%
%
@@ -920,7 +925,7 @@
% Specifies the preamble of our style file.
% \begin{macrocode}
%<*style>
-\ProvidesPackage{diagram}[2012/11/12]
+\ProvidesPackage{diagram}[2012/11/18]
\DeclareOption{10pt}{\AtBeginDocument{\diagramx}}
\DeclareOption{11pt}{\AtBeginDocument{\diagramxi}}
\DeclareOption{12pt}{\AtBeginDocument{\diagramxii}}
@@ -980,10 +985,12 @@
\newcount\@blackfield
\newboolean{allwhite}
\setboolean{allwhite}{false}
+\newcommand{\allwhite}{\setboolean{allwhite}{true}}
\newcounter{field@border}
\newcount\@whitefield
\newboolean{switchcolors}
\setboolean{switchcolors}{false}
+\newcommand{\switchcolors}{\setboolean{switchcolors}{true}}
% \end{macrocode}
%
% We have counters for each color to count the pieces on the
diff --git a/Master/texmf-dist/tex/latex/chess-problem-diagrams/diagram.sty b/Master/texmf-dist/tex/latex/chess-problem-diagrams/diagram.sty
index 57f66bee0c7..cc91d2f54d1 100644
--- a/Master/texmf-dist/tex/latex/chess-problem-diagrams/diagram.sty
+++ b/Master/texmf-dist/tex/latex/chess-problem-diagrams/diagram.sty
@@ -36,7 +36,7 @@
%%
%%
-\ProvidesPackage{diagram}[2012/11/12]
+\ProvidesPackage{diagram}[2012/11/18]
\DeclareOption{10pt}{\AtBeginDocument{\diagramx}}
\DeclareOption{11pt}{\AtBeginDocument{\diagramxi}}
\DeclareOption{12pt}{\AtBeginDocument{\diagramxii}}
@@ -91,10 +91,12 @@
\newcount\@blackfield
\newboolean{allwhite}
\setboolean{allwhite}{false}
+\newcommand{\allwhite}{\setboolean{allwhite}{true}}
\newcounter{field@border}
\newcount\@whitefield
\newboolean{switchcolors}
\setboolean{switchcolors}{false}
+\newcommand{\switchcolors}{\setboolean{switchcolors}{true}}
\newboolean{cpd@checkPieceCounts}
\newcounter{cpd@defWhitePieces}
\newcounter{cpd@defBlackPieces}