From 8f126c2c31e11c3e30f040d836bde384dfe193be Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 24 Jun 2019 21:06:01 +0000 Subject: chessboard (24jun19) git-svn-id: svn://tug.org/texlive/trunk@51445 c570f23f-e606-0410-a88d-b1316a301751 --- .../chessboard/UF-chessboard-documentation.sty | 220 +++++++++++++++++++++ .../tex/latex/chessboard/chessboard-keys-main.sty | 6 +- .../tex/latex/chessboard/chessboard-keys-pgf.sty | 6 +- .../tex/latex/chessboard/chessboard-pgf.sty | 12 +- .../texmf-dist/tex/latex/chessboard/chessboard.sty | 34 ++-- 5 files changed, 252 insertions(+), 26 deletions(-) create mode 100644 Master/texmf-dist/tex/latex/chessboard/UF-chessboard-documentation.sty (limited to 'Master/texmf-dist/tex') diff --git a/Master/texmf-dist/tex/latex/chessboard/UF-chessboard-documentation.sty b/Master/texmf-dist/tex/latex/chessboard/UF-chessboard-documentation.sty new file mode 100644 index 00000000000..eec0e064ea5 --- /dev/null +++ b/Master/texmf-dist/tex/latex/chessboard/UF-chessboard-documentation.sty @@ -0,0 +1,220 @@ +\ProvidesFile{UF-xskak-documentation.sty}[2008/01/09 local style for documentations] +\DeclareOption{codemargin}{\AtEndOfPackage{% + \advance\oddsidemargin by 0.5in\relax + \advance\marginparwidth by 1in\relax}} +\ProcessOptions +\newcommand\filetype[1] {\upshape\texttt{#1}} %e.g. \filetype{.pdf} +\newcommand\programm[1] {\upshape\textsf{#1}} %e.g. \programm{afm2tfm} +\newcommand\chessfontname[1]{\upshape\textsf{#1}} %e.g. chessfontname{maya} +\newcommand\konzept[1] {\upshape\textsf{#1}} %e.g. \konzept{nfss} +\newcommand\packagename[1] {\upshape\textsf{#1}} + +\newcommand\skaksty{the package \packagename{skak}\xspace} +\newcommand\Skaksty{The package \packagename{skak}\xspace} + +\newcommand\xskak{the package \packagename{xskak}\xspace} +\newcommand\Xskak{The package \packagename{xskak}\xspace} + +\newcommand\chessfss{the package \packagename{chessfss}\xspace} +\newcommand\Chessfss{The package \packagename{chessfss}\xspace} + +\newcommand\pchessboard{the package \packagename{chessboard}\xspace} +\newcommand\Pchessboard{The package \packagename{chessboard}\xspace} + + +\newcommand\mynobreakpar{\par\nobreak\@afterheading} +\newcommand\key[1]{\texttt{#1}} +\newcommand\obsoletekey[1]{\key{#1}\index{#1 (obsolete)}} +\providecommand\gobble[1]{} +\newcommand\keyoarg{\oarg{key=value list}} +\newcommand\keymarg{\marg{key=value list}} +\newcommand\keylist{\textit{key=value list}\xspace} +\newcommand\keylists{\textit{key=value lists}\xspace} +\newcommand\keyvalue{\textit{key=value}\xspace} + +\AtBeginDocument{% + \renewcommand*\lstlistlistingname{Examples} + \renewcommand*\lstlistingname{Example} +} + +% +\setcounter{secnumdepth}{4} +\renewcommand{\theparagraph}{\alph{paragraph})} + + +%% standard needed packages +\RequirePackage[english]{babel} +\RequirePackage{microtype} + +\RequirePackage{array} +\RequirePackage{booktabs} +\RequirePackage{xspace} +\RequirePackage{ifluatex} + +%% fonts +\ifluatex +\else +\RequirePackage[scaled=0.85]{luximono} +\RequirePackage{fourier} +\RequirePackage[scaled=0.86]{helvet} +\fi +%\addtokomafont{sectioning}{\rmfamily} +\renewcommand*\descfont{\rmfamily\bfseries} + +%% colors +\RequirePackage{xcolor} +\colorlet{hellgelb}{yellow!15} + + +% Quotes +\RequirePackage[babel]{csquotes} +\MakeAutoQuote {«}{»} + + +%% index +\RequirePackage{makeidx} +\makeindex % number of columns set after doc + +\begin{filecontents}{\jobname.mst} +actual '=' +quote '!' +level '>' +preamble +"\n \\begin{theindex} \n \\makeatletter\\scan@allowedfalse\n" +postamble +"\n\n \\end{theindex}\n" +item_x1 "\\efill \n \\subitem " +item_x2 "\\efill \n \\subsubitem " +delim_0 "\\pfill " +delim_1 "\\pfill " +delim_2 "\\pfill " +% The next lines will produce some warnings when +% running Makeindex as they try to cover two different +% versions of the program: +lethead_prefix "{\\bfseries\\hfil " +lethead_suffix "\\hfil}\\nopagebreak\n" +lethead_flag 1 +heading_prefix "{\\bfseries\\hfil " +heading_suffix "\\hfil}\\nopagebreak\n" +headings_flag 1 +%% +%% +\end{filecontents} + + +%% codes and examples +\begin{filecontents}{UFlstlocal.cfg} +\ProvidesFile{UFlstlocal.cfg}[2005/07/01 lokale Listingsdefinitionen (UF)] + +\RequirePackage{xcolor} + + +\colorlet{UFkeyscolor}{black} +\colorlet{UFidentifiercolor}{black} +\colorlet{UFcommentscolor}{red} +\colorlet{UFstringcolor}{green!50} +\colorlet{UFbackgroundcolor}{yellow!10} + +\lstdefinestyle{inline}{% + basicstyle=\ttfamily, + keywordstyle={}} + + +\lstdefinestyle{UFdocu}{% mehr oder weniger kopiert aus showexpl.cfg + language=[LaTeX]TeX,% + float=hbp,% + basicstyle=\ttfamily,% + identifierstyle=\color{UFidentifiercolor},% + keywordstyle=\color{UFkeyscolor},% + stringstyle=\color{UFstringcolor},% + commentstyle=\itshape,% + columns=flexible,% + tabsize=4,% + frame=single,% + extendedchars=true,% + showspaces=false,% + showstringspaces=false,% + numbers=none,% + %numberstyle=\tiny\ttfamily,% + breaklines=true,% + breakindent=10pt,% + backgroundcolor=\color{UFbackgroundcolor},% + breakautoindent=true,% + captionpos=t,% + xleftmargin=1em,% + xrightmargin=\fboxsep,% + %numbersep=1em,% + breakatwhitespace=true, + preset=\raggedright\setlength{\parskip}{1ex},% + explpreset={numbers=none, basicstyle=\footnotesize\ttfamily},% ueberschreibt default + rframe={},% code ist im Rahmen + varwidth=true,% Breite des Beispiels + pos=o, + overhang=4em,% + literate={ü}{{\"u}}1{ö}{{\"o}}1{ä}{{\"a}}1 +} + +\lstdefinestyle{inline}{% + basicstyle=\ttfamily, + keywordstyle={}} + +\newcommand\mylstinline{\lstinline[style=inline]} + +\endinput +%% +%% End of file `UFlstlocal.cfg'. +\end{filecontents} + +\RequirePackage[final]{showexpl} +\input{UFlstlocal.cfg} +\lstset{style=UFdocu} + +\newcommand\UFleftexamples{% +\let\OriisSX@odd\isSX@odd +\renewcommand*{\isSX@odd}[2]{##2}} + +\UFleftexamples + +\RequirePackage{doc} +\def\meta@font@select{\rmfamily\itshape} +\c@IndexColumns = 2 +\renewcommand\MacroFont{\scriptsize\ttfamily} +\renewcommand\encapchar{ -- } +% from ltxdoc.sty +\DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}} +\providecommand\marg[1]{% + {\ttfamily\char`\{}\meta{#1}{\ttfamily\char`\}}} +\providecommand\oarg[1]{% + {\ttfamily[}\meta{#1}{\ttfamily]}} +\providecommand\parg[1]{% + {\ttfamily(}\meta{#1}{\ttfamily)}} + + +%% pagestyle and layout +\providecommand\UFcurrentpackage{unknown} +\providecommand\UFcurrentversion{version unknown} + +\reversemarginpar + +\RequirePackage{fancyhdr} +\pagestyle{fancy} + +\renewcommand\headrulewidth{0pt} +\fancyhf{} +\cfoot{\thepage} +\lfoot{\today} +\rfoot{\packagename{\UFcurrentpackage} \UFcurrentversion} + + +%% captions +\RequirePackage[tableposition=top]{caption} +\captionsetup{singlelinecheck=false,format=hang,belowskip=1em} + + + +%% pdf-goodies: +\RequirePackage{animate} +\RequirePackage[colorlinks=true, %options are passed to hyperref + linkcolor=black, + hyperindex=true% true clashes with doc.sty + ]{attachfile} diff --git a/Master/texmf-dist/tex/latex/chessboard/chessboard-keys-main.sty b/Master/texmf-dist/tex/latex/chessboard/chessboard-keys-main.sty index 91a047fd10d..f8d11a84daf 100644 --- a/Master/texmf-dist/tex/latex/chessboard/chessboard-keys-main.sty +++ b/Master/texmf-dist/tex/latex/chessboard/chessboard-keys-main.sty @@ -4,10 +4,10 @@ %% %% The original source files were: %% -%% chessboard-src.dtx (with options: `chessboard-keys-main') +%% chessboard.dtx (with options: `chessboard-keys-main') %% %% 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 @@ -16,7 +16,7 @@ %% License, or (at your option) any later version. %% %% For error reports see documentation. -\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 diff --git a/Master/texmf-dist/tex/latex/chessboard/chessboard-keys-pgf.sty b/Master/texmf-dist/tex/latex/chessboard/chessboard-keys-pgf.sty index d6d8c7a1623..acc5b03a376 100644 --- a/Master/texmf-dist/tex/latex/chessboard/chessboard-keys-pgf.sty +++ b/Master/texmf-dist/tex/latex/chessboard/chessboard-keys-pgf.sty @@ -4,10 +4,10 @@ %% %% The original source files were: %% -%% chessboard-src.dtx (with options: `chessboard-keys-pgf') +%% chessboard.dtx (with options: `chessboard-keys-pgf') %% %% 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 @@ -16,7 +16,7 @@ %% License, or (at your option) any later version. %% %% For error reports see documentation. -\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/tex/latex/chessboard/chessboard-pgf.sty b/Master/texmf-dist/tex/latex/chessboard/chessboard-pgf.sty index b06623e9bcd..2e1ea4c071e 100644 --- a/Master/texmf-dist/tex/latex/chessboard/chessboard-pgf.sty +++ b/Master/texmf-dist/tex/latex/chessboard/chessboard-pgf.sty @@ -4,10 +4,10 @@ %% %% The original source files were: %% -%% chessboard-src.dtx (with options: `chessboard-pgf') +%% chessboard.dtx (with options: `chessboard-pgf') %% %% 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 @@ -16,7 +16,7 @@ %% License, or (at your option) any later version. %% %% For error reports see documentation. -\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{}% @@ -90,7 +90,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}}}% @@ -204,7 +204,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}}}% @@ -222,7 +222,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}}}% diff --git a/Master/texmf-dist/tex/latex/chessboard/chessboard.sty b/Master/texmf-dist/tex/latex/chessboard/chessboard.sty index 5bd00fcdfb0..0c316d7d9ea 100644 --- a/Master/texmf-dist/tex/latex/chessboard/chessboard.sty +++ b/Master/texmf-dist/tex/latex/chessboard/chessboard.sty @@ -4,10 +4,10 @@ %% %% The original source files were: %% -%% chessboard-src.dtx (with options: `chessboard') +%% chessboard.dtx (with options: `chessboard') %% %% 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 @@ -17,7 +17,7 @@ %% %% For error reports see documentation. \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 $ \DeclareOption{skaknew}{}% @@ -46,7 +46,7 @@ \ifpdf\else \RequirePackage{pst-node}% \fi - +\RequirePackage{etoolbox} %%%%%%% %% naming conventions %%%%%%% @@ -304,13 +304,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}}}% @@ -695,7 +695,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{% @@ -706,7 +706,7 @@ {\value{cnt@board}>0}% {\edef\board@temp@currankposition{% \board@temp@currankposition - \arabic{cnt@board}}}% + \number\value{cnt@board}}}% {}}% %% stores the fen in chessgame. (as in skak.sty the \storegame command @@ -1361,10 +1361,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{% @@ -1372,8 +1378,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}}}}% -- cgit v1.2.3