summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r--Master/texmf-dist/source/latex/chessboard/chessboard.dtx (renamed from Master/texmf-dist/source/latex/chessboard/chessboard-src.dtx)42
-rw-r--r--Master/texmf-dist/source/latex/chessboard/chessboard.ins14
2 files changed, 31 insertions, 25 deletions
diff --git a/Master/texmf-dist/source/latex/chessboard/chessboard-src.dtx b/Master/texmf-dist/source/latex/chessboard/chessboard.dtx
index c6ab35135b1..0ba57af48a4 100644
--- a/Master/texmf-dist/source/latex/chessboard/chessboard-src.dtx
+++ b/Master/texmf-dist/source/latex/chessboard/chessboard.dtx
@@ -1,6 +1,6 @@
%<*chessboard>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{chessboard}[2014/05/01 version v1.7 print chessboards]
+\ProvidesPackage{chessboard}[2019/06/23 version v1.8 print chessboards]
%%$Date: 2011/03/23 08:42:57 $$Version: 66142533647c $
%1.4: Changed to restore style key
@@ -36,7 +36,7 @@
\ifpdf\else
\RequirePackage{pst-node}%
\fi
-
+\RequirePackage{etoolbox}
%%%%%%%
%% naming conventions
%%%%%%%
@@ -295,13 +295,13 @@
{\isodd{\value{cnt@board}}}
{\ifthenelse%
{\equal{\board@val@whitefieldlist}{}}%
- {\edef\board@val@whitefieldlist{\zeroalph{cnt@board@file}\arabic{cnt@board@rank}}}%
- {\edef\board@temp@curfield{\zeroalph{cnt@board@file}\arabic{cnt@board@rank}}%
+ {\edef\board@val@whitefieldlist{\zeroalph{cnt@board@file}\number\value{cnt@board@rank}}}%
+ {\edef\board@temp@curfield{\zeroalph{cnt@board@file}\number\value{cnt@board@rank}}%
\expandafter\board@do@l@addto@macro\expandafter\board@val@whitefieldlist\expandafter{\expandafter,\board@temp@curfield}}}%
{\ifthenelse%
{\equal{\board@val@blackfieldlist}{}}%
- {\edef\board@val@blackfieldlist{\zeroalph{cnt@board@file}\arabic{cnt@board@rank}}}%
- {\edef\board@temp@curfield{\zeroalph{cnt@board@file}\arabic{cnt@board@rank}}%
+ {\edef\board@val@blackfieldlist{\zeroalph{cnt@board@file}\number\value{cnt@board@rank}}}%
+ {\edef\board@temp@curfield{\zeroalph{cnt@board@file}\number\value{cnt@board@rank}}%
\expandafter\board@do@l@addto@macro\expandafter\board@val@blackfieldlist\expandafter{\expandafter,\board@temp@curfield}}}%
\addtocounter{cnt@board@rank}{1}}%
\addtocounter{cnt@board@file}{1}}}%
@@ -688,7 +688,7 @@
{\value{cnt@board}>0}%
{\edef\board@temp@currankposition{%
\board@temp@currankposition
- \arabic{cnt@board}%
+ \number\value{cnt@board}%
\csname board@val@f\the\c@cnt@board@file r\the\c@cnt@board@rank @piecechar\endcsname}%
\setcounter{cnt@board}{0}}%
{\edef\board@temp@currankposition{%
@@ -699,7 +699,7 @@
{\value{cnt@board}>0}%
{\edef\board@temp@currankposition{%
\board@temp@currankposition
- \arabic{cnt@board}}}%
+ \number\value{cnt@board}}}%
{}}%
%% stores the fen in chessgame.<name> (as in skak.sty the \storegame command
@@ -1355,10 +1355,16 @@
\newcommand\board@skak@piececharlist{K,Q,R,B,N,P,k,q,r,b,n,p}%
\newcommand\board@skak@whitepiececharlist{K,Q,R,B,N,P}%
\newcommand\board@skak@blackpiececharlist{k,q,r,b,n,p}%
-
\AtBeginDocument{%
\@ifpackageloaded{skak}%
- {\def\board@skak@do@fencalculate{%
+ {%patch skak, see issue #1
+ \patchcmd\Fen@handleA{\arabic}{\number\value}{}{}%
+ \patchcmd\Fen@handleA{\arabic}{\number\value}{}{}%
+ \patchcmd\Fen@handleA{\thehelpgobble}{\c@helpgobble}{}{}%
+ \patchcmd\Fen@handleA{\thehelpgobble}{\c@helpgobble}{}{}%
+ \patchcmd\Fen@calculate{\arabic}{\number\value}{}{}%
+ \patchcmd\Fen@calculate{\arabic}{\number\value}{}{}%
+ \def\board@skak@do@fencalculate{%
\Fen@calculate
\let\board@val@fencalculate\temp@board}%
\def\board@skak@set@special@psmarkers#1#2{%
@@ -1366,8 +1372,8 @@
\setcounter{fileFrom}{\value{fileTo}}%
\setcounter{rankFrom}{\value{rankTo}}%
\get@translation#2%
- \rput(BM){\pnode(-\arabic{fileFrom},\arabic{rankFrom}){From}}%
- \rput(BM){\pnode(-\arabic{fileTo},\arabic{rankTo}){To}}}}%
+ \rput(BM){\pnode(-\number\value{fileFrom},\number\value{rankFrom}){From}}%
+ \rput(BM){\pnode(-\number\value{fileTo},\number\value{rankTo}){To}}}}%
{\def\board@skak@do@fencalculate{%
\def\board@val@fencalculate{8/8/8/8/8/8/8/8}}}}%
@@ -1430,7 +1436,7 @@
%</chessboard>
%<*chessboard-pgf>
-\ProvidesFile{chessboard-pgf.sty}[2014/05/01 version v1.7 pgf code for chessboard.sty]
+\ProvidesFile{chessboard-pgf.sty}[2019/06/23 version v1.8 pgf code for chessboard.sty]
%%$Date: 2011/01/11 14:07:20 $$Version: 3d9f59c743f1 $
\newcommand\board@pgf@extrabackground{}%
@@ -1504,7 +1510,7 @@
{\setcounter{cnt@board@rank}{0}%
\whiledo %nodes for on one field for each rank
{\value{cnt@board@rank}<\numexpr\board@val@maxranknum+1\relax}%
- {\edef\board@temp{\zeroalph{cnt@board@file}\arabic{cnt@board@rank}}%
+ {\edef\board@temp{\zeroalph{cnt@board@file}\number\value{cnt@board@rank}}%
\expandafter\board@pgf@addnode\expandafter{\board@temp}{#1}%
\expandafter\board@do@l@addto@macro\csname board@pgf@#1ground\endcsname{%
\pgftransformshift{\pgfpointxy{0}{1}}}%
@@ -1620,7 +1626,7 @@
{\setcounter{cnt@board@file}{\board@temp@curstartfilenum}%
\whiledo
{\value{cnt@board@file}<\numexpr \board@temp@curstopfilenum+1\relax}%
- {\edef\board@temp@curfield{\zeroalph{cnt@board@file}\arabic{cnt@board@rank}}%
+ {\edef\board@temp@curfield{\zeroalph{cnt@board@file}\number\value{cnt@board@rank}}%
\expandafter\board@pgf@addpgftofield\expandafter{\board@temp@curfield}{mark}%
\addtocounter{cnt@board@file}{1}}%
\addtocounter{cnt@board@rank}{-1}}}%
@@ -1638,7 +1644,7 @@
{\setcounter{cnt@board@file}{\board@temp@curstartfilenum}%
\whiledo
{\value{cnt@board@file}<\numexpr \board@temp@curstopfilenum+1\relax}%
- {\edef\board@temp@curfield{\zeroalph{cnt@board@file}\arabic{cnt@board@rank}}%
+ {\edef\board@temp@curfield{\zeroalph{cnt@board@file}\number\value{cnt@board@rank}}%
\expandafter\board@pgf@addpgftofield\expandafter{\board@temp@curfield}{back}%
\addtocounter{cnt@board@file}{1}}%
\addtocounter{cnt@board@rank}{-1}}}%
@@ -2547,7 +2553,7 @@
%</chessboard-pgf>
%<*chessboard-keys-main>
-\ProvidesFile{chessboard-keys-main.sty}[2014/05/01 version v1.7 key definitions for chessboard.sty]
+\ProvidesFile{chessboard-keys-main.sty}[2019/06/23 version v1.8 key definitions for chessboard.sty]
%%$Date: 2011/03/23 08:42:57 $$Version: 66142533647c $
%%file=Linie=column=vertikal=al_f_abetisch= a-h
@@ -4072,7 +4078,7 @@
%</chessboard-keys-main>
%<*chessboard-keys-pgf>
-\ProvidesFile{chessboard-keys-pgf.sty}[2014/05/01 version v1.7 key definitions for chessboard.sty]
+\ProvidesFile{chessboard-keys-pgf.sty}[2019/06/23 version v1.8 key definitions for chessboard.sty]
%%$Date: 2011/03/17 13:42:38 $$Version: e7ec1b100ede $
%% new 1.5.: style keys for curvemove
diff --git a/Master/texmf-dist/source/latex/chessboard/chessboard.ins b/Master/texmf-dist/source/latex/chessboard/chessboard.ins
index 7a2b97d40e0..d232755207c 100644
--- a/Master/texmf-dist/source/latex/chessboard/chessboard.ins
+++ b/Master/texmf-dist/source/latex/chessboard/chessboard.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-2019 Ulrike Fischer (chess@nililand.de)
%% -------------------------------------------
%
%
@@ -49,7 +49,7 @@
\declarepreamble\UFpreamble
chessboard: a package to print chessboards
-Copyright 2006-2014 Ulrike Fischer (chess@nililand.de)
+Copyright 2006-2019 Ulrike Fischer (chess@nililand.de)
-------------------------------------------
This file can be redistributed and/or modified under the terms of
@@ -63,11 +63,11 @@ For error reports see documentation.
%% File generation:
\generate{%
\usepreamble\UFpreamble
- \file{chessboard.sty}{\from{chessboard-src.dtx}{chessboard}}
- \file{chessboard-pgf.sty}{\from{chessboard-src.dtx}{chessboard-pgf}}
- \file{chessboard-keys-main.sty}{\from{chessboard-src.dtx}{chessboard-keys-main}}
- \file{chessboard-keys-pgf.sty}{\from{chessboard-src.dtx}{chessboard-keys-pgf}}
+ \file{chessboard.sty}{\from{chessboard.dtx}{chessboard}}
+ \file{chessboard-pgf.sty}{\from{chessboard.dtx}{chessboard-pgf}}
+ \file{chessboard-keys-main.sty}{\from{chessboard.dtx}{chessboard-keys-main}}
+ \file{chessboard-keys-pgf.sty}{\from{chessboard.dtx}{chessboard-keys-pgf}}
}
\endbatchfile
%%
-%%end of file chessboard.ins \ No newline at end of file
+%%end of file chessboard.ins