diff options
-rw-r--r-- | Master/texmf-dist/doc/latex/xskak/README | 2 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/xskak/xskak-src.dtx | 34 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/xskak/xskak.ins | 4 | ||||
-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 |
6 files changed, 59 insertions, 20 deletions
diff --git a/Master/texmf-dist/doc/latex/xskak/README b/Master/texmf-dist/doc/latex/xskak/README index ab5c328e94c..bb40ffa460d 100644 --- a/Master/texmf-dist/doc/latex/xskak/README +++ b/Master/texmf-dist/doc/latex/xskak/README @@ -1,5 +1,5 @@ xskak --- An extention to the package skak for chess typesetting -Version 1.3 Ulrike Fischer 2006-2014 +Version 1.4 Ulrike Fischer 2006-2015 LICENSE LaTeX Project Public License diff --git a/Master/texmf-dist/source/latex/xskak/xskak-src.dtx b/Master/texmf-dist/source/latex/xskak/xskak-src.dtx index a5ca2f9514f..a8b8342c10e 100644 --- a/Master/texmf-dist/source/latex/xskak/xskak-src.dtx +++ b/Master/texmf-dist/source/latex/xskak/xskak-src.dtx @@ -1,7 +1,7 @@ %<*xskak> \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 @@ -23,6 +23,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)\ } @@ -441,15 +442,34 @@ %%% special fencalculate %%% Use only inside dothemove to get the correct color and movenumber!} +%02.01.2015: Patching the promotionpieces in Rank 1 + 8 \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@}} @@ -832,7 +852,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{% @@ -1543,7 +1563,7 @@ %</xskak> %<*xskak-keys> -\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 $ @@ -2308,7 +2328,7 @@ %</xskak-keys> %<*xskak-nagdef> -\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/source/latex/xskak/xskak.ins b/Master/texmf-dist/source/latex/xskak/xskak.ins index 7a725a514e3..6370ff58fc8 100644 --- a/Master/texmf-dist/source/latex/xskak/xskak.ins +++ b/Master/texmf-dist/source/latex/xskak/xskak.ins @@ -9,7 +9,7 @@ %% but WITHOUT ANY WARRANTY; without even the implied warranty of %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. %% -%% Copyright 2006-2014 Ulrike Fischer (chess@nililand.de) +%% Copyright 2006-2015 Ulrike Fischer (chess@nililand.de) %% ------------------------------------------- % % @@ -49,7 +49,7 @@ \declarepreamble\UFpreamble 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 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{% |