summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/xskak
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-01-02 21:29:30 +0000
committerKarl Berry <karl@freefriends.org>2015-01-02 21:29:30 +0000
commit240888f0238c457af999f29f8413ca20a392ef14 (patch)
tree04ccb382a128b954258de4686b9685ac0b8464bf /Master/texmf-dist/source/latex/xskak
parent1455b6d5bcd80a4968ba28a313a7b8fa8293a78b (diff)
xskak (2jan15)
git-svn-id: svn://tug.org/texlive/trunk@35945 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/xskak')
-rw-r--r--Master/texmf-dist/source/latex/xskak/xskak-src.dtx34
-rw-r--r--Master/texmf-dist/source/latex/xskak/xskak.ins4
2 files changed, 29 insertions, 9 deletions
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