summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/xskak/xskak.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-07-31 00:32:32 +0000
committerKarl Berry <karl@freefriends.org>2008-07-31 00:32:32 +0000
commit0afeedcaa724ef694a1e475f019ddb0472184acc (patch)
tree576832b85fe8e5ee24627f04d2dda34cabe7f115 /Master/texmf-dist/tex/latex/xskak/xskak.sty
parentbe371ff8aedc081ba88a978a51bfd97311b3872d (diff)
xskak update (30jul08)
git-svn-id: svn://tug.org/texlive/trunk@9917 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/xskak/xskak.sty')
-rw-r--r--Master/texmf-dist/tex/latex/xskak/xskak.sty22
1 files changed, 13 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/xskak/xskak.sty b/Master/texmf-dist/tex/latex/xskak/xskak.sty
index f231e1abb7c..2fc95c40009 100644
--- a/Master/texmf-dist/tex/latex/xskak/xskak.sty
+++ b/Master/texmf-dist/tex/latex/xskak/xskak.sty
@@ -4,10 +4,10 @@
%%
%% The original source files were:
%%
-%% xskak-src.dtx (with options: `main')
+%% xskak-src.dtx (with options: `xskak')
%%
%% xskak: an extension to the package skak for chess typesetting
-%% Copyright 2007 UlrikeFischer (skak@nililand.de)
+%% Copyright 2007 Ulrike Fischer (skak@nililand.de)
%% -------------------------------------------
%%
%% This file can be redistributed and/or modified under the terms of
@@ -17,8 +17,9 @@
%%
%% For error reports see documentation.
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{xskak}[2007/12/20 version 1.0 extended Chess typesetting and parsing]
-%%Last changes: $Date: 2007-12-20 15:46:21 +0100 (Do, 20 Dez 2007) $
+\def\@rcs@ $#1Date: #2-#3-#4 #5$$#6Version: #7$ {
+ \ProvidesPackage{xskak}[#2/#3/#4 version #7 extended Chess typesetting and parsing]}
+\@rcs@ $Date: 2008-07-29 17:33 +0200 $$Version: v1.1 $
\newif\ifxskakpdfmatch
@@ -42,11 +43,9 @@
%% Naming conventions
%%%%%%%%%%%%%%%%%%%%%
-
%%%%%%%%%%%%%%%%%%%%
%%%%% Initialisation
-
\newcommand\xskak@val@gameid{game}
\newcommand\xskak@val@movenr{1}
\newcommand\xskak@val@player{w}
@@ -824,6 +823,7 @@
\csname Xskak.\xskak@val@gameid.\the\c@move.\WhiteToMove{w}{b}.check\endcsname
\csname Xskak.\xskak@val@gameid.\the\c@move.\WhiteToMove{w}{b}.mate\endcsname
\csname Xskak.\xskak@val@gameid.\the\c@move.\WhiteToMove{w}{b}.enpassant\endcsname
+ \csname Xskak.\xskak@val@gameid.\the\c@move.\WhiteToMove{w}{b}.promotion\endcsname
\expandafter\protected@xdef
\csname Xskak.\xskak@val@gameid.\the\c@move.\WhiteToMove{w}{b}.san\endcsname{%
\Castling
@@ -836,6 +836,9 @@
\csname Xskak.\xskak@val@gameid.\the\c@move.\WhiteToMove{w}{b}.pgnmovefrom\endcsname
\Capture{\noexpand\capturesymbol}{}%
\csname Xskak.\xskak@val@gameid.\the\c@move.\WhiteToMove{w}{b}.moveto\endcsname
+ \ifxskakboolpromotion
+ \noexpand\textsymfigsymbol{\csname Xskak.\xskak@val@gameid.\the\c@move.\WhiteToMove{w}{b}.promotionpiecechar\endcsname}%
+ \fi
\ifxskakboolenpassant
\noexpand\xskakenpassanttext
\fi
@@ -852,6 +855,7 @@
\csname Xskak.\xskak@val@gameid.\the\c@move.\WhiteToMove{w}{b}.check\endcsname
\csname Xskak.\xskak@val@gameid.\the\c@move.\WhiteToMove{w}{b}.mate\endcsname
\csname Xskak.\xskak@val@gameid.\the\c@move.\WhiteToMove{w}{b}.enpassant\endcsname
+ \csname Xskak.\xskak@val@gameid.\the\c@move.\WhiteToMove{w}{b}.promotion\endcsname
\expandafter\protected@xdef
\csname Xskak.\xskak@val@gameid.\the\c@move.\WhiteToMove{w}{b}.lan\endcsname{%
\Castling
@@ -864,6 +868,9 @@
\csname Xskak.\xskak@val@gameid.\the\c@move.\WhiteToMove{w}{b}.movefrom\endcsname
\Capture{\noexpand\capturesymbol}{\noexpand\xskakmovehyphen}%
\csname Xskak.\xskak@val@gameid.\the\c@move.\WhiteToMove{w}{b}.moveto\endcsname
+ \ifxskakboolpromotion
+ \noexpand\textsymfigsymbol{\csname Xskak.\xskak@val@gameid.\the\c@move.\WhiteToMove{w}{b}.promotionpiecechar\endcsname}%
+ \fi
\ifxskakboolenpassant
\noexpand\xskakenpassanttext
\fi
@@ -1154,8 +1161,6 @@
%%% styles
-
-
\newcommand*\xskak@do@splitlevel[1]{%
\def\xskak@temp@levelprefix{#1}%
\def\xskak@temp@levelpostfix{}%
@@ -1421,7 +1426,6 @@
\closein0%
\expandafter\fenboard\expandafter{\load@read}}
-
%%%% ExecutePawnMove changed:
%%%% moved \xdef of EnPassantSquare before DoTheMove
%%%% I hope it doesn't break something