diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/xskak')
-rw-r--r-- | Master/texmf-dist/tex/latex/xskak/xskak-keys.sty | 4 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/xskak/xskak-nagdef.sty | 4 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/xskak/xskak.sty | 31 |
3 files changed, 29 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/xskak/xskak-keys.sty b/Master/texmf-dist/tex/latex/xskak/xskak-keys.sty index 9cc719661cd..67bf9b01bac 100644 --- a/Master/texmf-dist/tex/latex/xskak/xskak-keys.sty +++ b/Master/texmf-dist/tex/latex/xskak/xskak-keys.sty @@ -7,7 +7,7 @@ %% xskak-src.dtx (with options: `xskak-keys') %% %% xskak: a package to parse and print chess games -%% Copyright 2006-2014 Ulrike Fischer (chess@nililand.de) +%% Copyright 2006-2015 Ulrike Fischer (chess@nililand.de) %% ------------------------------------------- %% %% This file can be redistributed and/or modified under the terms of @@ -16,7 +16,7 @@ %% License, or (at your option) any later version. %% %% For error reports see documentation. -\ProvidesFile{xskak-keys.sty}[2014/04/21 version v1.3a key definitions for xskak.sty] +\ProvidesFile{xskak-keys.sty}[2015/01/02 version v1.4 key definitions for xskak.sty] %%$Date: 2011/03/17 16:54:07 $$Version: 041ab49ae0e2 $ %%%%%%%%%%%%%%%%%%%%% diff --git a/Master/texmf-dist/tex/latex/xskak/xskak-nagdef.sty b/Master/texmf-dist/tex/latex/xskak/xskak-nagdef.sty index 152d73b3390..5b3845b99e3 100644 --- a/Master/texmf-dist/tex/latex/xskak/xskak-nagdef.sty +++ b/Master/texmf-dist/tex/latex/xskak/xskak-nagdef.sty @@ -7,7 +7,7 @@ %% xskak-src.dtx (with options: `xskak-nagdef') %% %% xskak: a package to parse and print chess games -%% Copyright 2006-2014 Ulrike Fischer (chess@nililand.de) +%% Copyright 2006-2015 Ulrike Fischer (chess@nililand.de) %% ------------------------------------------- %% %% This file can be redistributed and/or modified under the terms of @@ -16,7 +16,7 @@ %% License, or (at your option) any later version. %% %% For error reports see documentation. -\ProvidesFile{xskak-nagdef.sty}[2014/04/21 version v1.3a nag definitions for xskak.sty] +\ProvidesFile{xskak-nagdef.sty}[2015/01/02 version v1.4 nag definitions for xskak.sty] %%$Date: 2011/03/17 16:54:07 $$Version: 041ab49ae0e2 $ \expandafter\def\csname $1\endcsname{!} diff --git a/Master/texmf-dist/tex/latex/xskak/xskak.sty b/Master/texmf-dist/tex/latex/xskak/xskak.sty index 0097d08cbb1..e2266f1b8d0 100644 --- a/Master/texmf-dist/tex/latex/xskak/xskak.sty +++ b/Master/texmf-dist/tex/latex/xskak/xskak.sty @@ -7,7 +7,7 @@ %% xskak-src.dtx (with options: `xskak') %% %% xskak: a package to parse and print chess games -%% Copyright 2006-2014 Ulrike Fischer (chess@nililand.de) +%% Copyright 2006-2015 Ulrike Fischer (chess@nililand.de) %% ------------------------------------------- %% %% This file can be redistributed and/or modified under the terms of @@ -17,8 +17,8 @@ %% %% For error reports see documentation. \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{xskak}[2014/04/21 version v1.3a extended chess typesetting and parsing] -%%$Date: 2014/04/19 15:40:29 $$Version: 55bde552b81e $ +\ProvidesPackage{xskak}[2015/01/02 version v1.4 extended chess typesetting and parsing] +%%$Date: 2015/01/02 13:51:58 $$Version: c80394b06dd1 $ \newif\ifxskakpdfmatch @@ -39,6 +39,7 @@ \expandafter\edef\csname ver@skak.sty\endcsname{\csname ver@\xskak@val@skakversion.sty\endcsname} \RequirePackage{xifthen} +\RequirePackage{etoolbox} \RequirePackage{chessboard}[2007/12/20] \RequirePackage{xskak-keys} \newcommand\chessdiagramname{\ (Diagram)\ } @@ -456,14 +457,32 @@ %%% special fencalculate %%% Use only inside dothemove to get the correct color and movenumber!} \def\xskak@specialfencalculate{% - \Fen@Rank{8}\edef\temp@board{\temp@rank/}% + %\expandafter\show\csname Xskak.\xskak@val@gameid.\the\c@move.\WhiteToMove{w}{b}.promotionpiece\endcsname + \Fen@Rank{8}%% + \Promotion{% + \WhiteToMove{% + \patchcmd{\temp@rank} + {P} + {\csname Xskak.\xskak@val@gameid.\the\c@move.\WhiteToMove{w}{b}.promotionpiece\endcsname} + {} + {\show\MistMist}}{}% + }{}% + \edef\temp@board{\temp@rank/}% \Fen@Rank{7}\edef\temp@board{\temp@board\temp@rank/}% \Fen@Rank{6}\edef\temp@board{\temp@board\temp@rank/}% \Fen@Rank{5}\edef\temp@board{\temp@board\temp@rank/}% \Fen@Rank{4}\edef\temp@board{\temp@board\temp@rank/}% \Fen@Rank{3}\edef\temp@board{\temp@board\temp@rank/}% \Fen@Rank{2}\edef\temp@board{\temp@board\temp@rank/}% - \Fen@Rank{1}\edef\temp@board{\temp@board\temp@rank}% + \Fen@Rank{1}% + \Promotion{% + \WhiteToMove{} + {\patchcmd{\temp@rank} + {p} + {\csname Xskak.\xskak@val@gameid.\the\c@move.\WhiteToMove{w}{b}.promotionpiece\endcsname} + {} + {\show\MistMist}}{}}{}% + \edef\temp@board{\temp@board\temp@rank}% \edef\temp@board{\temp@board\space\WhiteToMove{b}{w}}% \edef\temp@board{\temp@board\space\PrintCastling\space\EnPassantSquare}% \edef\temp@board{\temp@board\space\arabic{halfmove}\space\the\count@}} @@ -846,7 +865,7 @@ \Promotion{\PromotionPieceName}{}}% \edef\@tempa{\PromotionPieceName}% \if\@tempa\@empty\else - \expandafter\board@conv@chartolowerchar\@tempa + \WhiteToMove{\let\board@temp@char\@tempa}{\expandafter\board@conv@chartolowerchar\@tempa}% \fi \expandafter\xdef \csname Xskak.\xskak@val@gameid.\the\c@move.\WhiteToMove{w}{b}.promotionpiece\endcsname{% |