summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/skak
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-01-22 23:06:20 +0000
committerKarl Berry <karl@freefriends.org>2014-01-22 23:06:20 +0000
commit7727dd41521eb7246835e1ac24a559a89deaef17 (patch)
tree764d533df5d5f46c97aff479519fa8103c8d9ed1 /Master/texmf-dist/tex/latex/skak
parentb3e544255a809f9dd960a88e868e317f3f6f6cff (diff)
skak (22jan14)
git-svn-id: svn://tug.org/texlive/trunk@32758 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/skak')
-rw-r--r--Master/texmf-dist/tex/latex/skak/skak.sty59
1 files changed, 13 insertions, 46 deletions
diff --git a/Master/texmf-dist/tex/latex/skak/skak.sty b/Master/texmf-dist/tex/latex/skak/skak.sty
index f3190357760..569a18a6a35 100644
--- a/Master/texmf-dist/tex/latex/skak/skak.sty
+++ b/Master/texmf-dist/tex/latex/skak/skak.sty
@@ -1,41 +1,5 @@
-% Version Date Description
-% 1.0 2002-06-05 Major overhaul of the documentation and a few
-% minor bug fixes.
-% 1.1 2003-01-01 Added Dirk Baechle's enhancements:
-% - extension of the \highlight command
-% - unwanted generation of spaces removed
-% - a set of informator symbols added
-% - the fonts have been improved
-% Fixed a bug in \ParseCoordinates (fix provided by
-% Ulrike Fischer).
-% Fixed the bug with opening spaces in the SAN input.
-% 1.2 2003-01-12 Incorporated Dirk Baechle's improvements of the
-% Informator symbols and redefined the \liftfig
-% according to Dirk's input.
-% The PostScript files are now significantly
-% smaller due to a big effort by Dirk.
-% 1.3 2003-09-27 Dirk Baechle has fixed some of the Informator symbols
-% which needed an extra set of curly braces.
-% The check for trailing spaces in the ``typeset@cmoves''
-% command has been removed due to problems at the end of a
-% ``mainline'' or ``variation'' env when an additional
-% Informator symbol was involved..
-% 1.4 2004-12-30 Incorporation of changes made by Ulrike Fischer that
-% makes it easy to use different fonts.
-% New engine for parsing and typesetting moves:
-% the functionality is now shared between the two.
-% Joao Nabais reported a problem related to switching
-% back and forth from styleC - this has been fixed using
-% \leavestylec command complex.
-% 1.5 2008-10-09 Fixed a major problem with longmoves - the pawn moves
-% are now displayed correctly. Changed the \storegame and
-% \restoregame to store both the current position and the
-% previous positon so a full restore can be made.
-% Added new variation commands.
-
-
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{skak}[2008/10/09 v1.5 Chess typesetting]
+\ProvidesPackage{skak}[2013/07/18 v1.5.1 Chess typesetting]
\DeclareOption{tiny}{\AtEndOfClass{\tinyboard}}
\DeclareOption{small}{\AtEndOfClass{\smallboard}}
@@ -687,9 +651,9 @@
\def\WhiteToMove{\True}
-\def\WhiteKingSquare% unit -> square
+\xdef\WhiteKingSquare% unit -> square
{e1}
-\def\BlackKingSquare% unit -> square
+\xdef\BlackKingSquare% unit -> square
{e8}
\def\KingSquare#1{% bool -> square
#1\WhiteKingSquare\BlackKingSquare}
@@ -961,11 +925,14 @@
\DeclareRobustCommand{\lastmove}{{\def\variationstyle{}%
+ \styleC@on{\let\skak@ensuremath=\ensuremath}{\let\skak@ensuremath=\relax}%
\WhiteToMove{%
\addtocounter{move}{-1}%
- \beforenumber\arabic{move}\blackopen\beforeblack%
+ \skak@ensuremath\beforenumber\arabic{move}\blackopen\skak@ensuremath%
+ \beforeblack%
\addtocounter{move}{1}}%
- {\beforenumber\arabic{move}\whiteopen\beforewhite}%
+ {\skak@ensuremath\beforenumber\arabic{move}\skak@ensuremath\whiteopen%
+ \skak@ensuremath\beforewhite}%
\expandafter\wmove\expandafter{\LastMoveString}}}
\def\ParseMoveA(#1#2){% char -> string -> unit
@@ -1118,7 +1085,7 @@
\def\DoTheMove#1{% move the piece from #1 to \MoveToFile\MoveToRank
\edef\oldpiece{\Get{\MoveToFile\MoveToRank}}%
\Set{\MoveTo}{\Get{#1}}\Set{#1}{E}%
- \gdef\MoveFrom{#1}}
+ \edef\MoveFrom{#1}}
\def\DoTheMoveList#1{\DoTheMove{\Head{#1}}}
@@ -1700,7 +1667,7 @@
% new version of \@variation
\def\@variation#1{\endgroup%
\let\currentstyle=\variationstyle%
- \gdef\Printmoves{\True}%
+ \gdef\PrintMoves{\True}%
\gdef\ExecuteMoves{\True}%
\gdef\StoreLastMove{\False}%
\@restoregame{skak.mainline.previous}% roll-back of last move.
@@ -1721,7 +1688,7 @@
\def\@variationcurrent#1{\endgroup%
\let\currentstyle=\variationstyle%
- \gdef\Printmoves{\True}%
+ \gdef\PrintMoves{\True}%
\gdef\ExecuteMoves{\True}%
\gdef\StoreLastMove{\False}%
\@restoregame{skak.mainline}%
@@ -1730,7 +1697,7 @@
\def\@continuevariation#1{\endgroup%
\let\currentstyle=\variationstyle%
- \gdef\Printmoves{\True}%
+ \gdef\PrintMoves{\True}%
\gdef\ExecuteMoves{\True}%
\gdef\StoreLastMove{\False}%
\@restoregame{skak.variation.previous}% roll-back of last move.
@@ -1740,7 +1707,7 @@
\def\@continuevariationcurrent#1{\endgroup%
\let\currentstyle=\variationstyle%
- \gdef\Printmoves{\True}%
+ \gdef\PrintMoves{\True}%
\gdef\ExecuteMoves{\True}%
\gdef\StoreLastMove{\False}%
\@restoregame{skak.variation}%