From 7727dd41521eb7246835e1ac24a559a89deaef17 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 22 Jan 2014 23:06:20 +0000 Subject: skak (22jan14) git-svn-id: svn://tug.org/texlive/trunk@32758 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/skak/skak.sty | 59 +++++++------------------------ 1 file changed, 13 insertions(+), 46 deletions(-) (limited to 'Master/texmf-dist/tex/latex/skak') 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}% -- cgit v1.2.3