From 2b1bd3563948b1f75e35cd54c403edd7239e01d2 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 2 May 2014 21:14:31 +0000 Subject: chessboard (2may14) git-svn-id: svn://tug.org/texlive/trunk@33801 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/chessboard/chessboard-keys-main.sty | 13 +++--- .../tex/latex/chessboard/chessboard-keys-pgf.sty | 11 ++--- .../tex/latex/chessboard/chessboard-pgf.sty | 8 ++-- .../texmf-dist/tex/latex/chessboard/chessboard.sty | 48 ++++++++++++---------- 4 files changed, 41 insertions(+), 39 deletions(-) (limited to 'Master/texmf-dist/tex/latex') 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 ce890281ce8..91a047fd10d 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: `keysmain') +%% chessboard-src.dtx (with options: `chessboard-keys-main') %% %% chessboard: a package to print chessboards -%% Copyright 2006 UlrikeFischer (skak@nililand.de) +%% Copyright 2006-2014 Ulrike Fischer (chess@nililand.de) %% ------------------------------------------- %% %% This file can be redistributed and/or modified under the terms of @@ -16,8 +16,8 @@ %% License, or (at your option) any later version. %% %% For error reports see documentation. -\ProvidesFile{chessboard-keys-main.sty}[2007/12/20 key definitions -for chessboard.sty v1.5 ] +\ProvidesFile{chessboard-keys-main.sty}[2014/05/01 version v1.7 key definitions for chessboard.sty] +%%$Date: 2011/03/23 08:42:57 $$Version: 66142533647c $ %%file=Linie=column=vertikal=al_f_abetisch= a-h %%rank=Reihe=row=horizontal=numbe_r_=1-8 @@ -892,7 +892,8 @@ for chessboard.sty v1.5 ] \define@key[UFCB]{locfill}{addfontcolors}[true]{% D \toks@=\expandafter{\board@val@fontcolorstack}% - \board@do@l@addto@macro\board@val@boardfontcolors{\the\toks@}} + \edef\@@next{\noexpand\board@do@l@addto@macro\noexpand\board@val@boardfontcolors{\the\toks@}}% + \@@next} \define@key[UFCB]{glofill}{setfontcolors}[true]{% D \board@do@l@addto@macro\board@val@savedkeylist{,setfontcolors=#1}{}}% @@ -1298,7 +1299,6 @@ for chessboard.sty v1.5 ] \define@key[UFCB]{glofill}{addfen}{% D \board@do@l@addto@macro\board@val@savedkeylist{,addfen=#1}}% - %%% other name for usefen \define@key[UFCB]{locfill}{restorefen}{% D \edef\board@temp@curfen{\csname chessgame.#1\endcsname}% @@ -1534,6 +1534,7 @@ for chessboard.sty v1.5 ] \define@key[UFCB]{gloinit}{game}{% \board@do@l@addto@macro\board@val@savedkeylist{,game=#1}{}}% + \endinput %% %% End of file `chessboard-keys-main.sty'. 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 5f5eff25d91..d6d8c7a1623 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: `keyspgf') +%% chessboard-src.dtx (with options: `chessboard-keys-pgf') %% %% chessboard: a package to print chessboards -%% Copyright 2006 UlrikeFischer (skak@nililand.de) +%% Copyright 2006-2014 Ulrike Fischer (chess@nililand.de) %% ------------------------------------------- %% %% This file can be redistributed and/or modified under the terms of @@ -16,9 +16,8 @@ %% License, or (at your option) any later version. %% %% For error reports see documentation. - -\ProvidesFile{chessboard-keys-pgf.sty}[2007/12/20 key definitions for -chessboard.sty v1.5] +\ProvidesFile{chessboard-keys-pgf.sty}[2014/05/01 version v1.7 key definitions for chessboard.sty] +%%$Date: 2011/03/17 13:42:38 $$Version: e7ec1b100ede $ %% new 1.5.: style keys for curvemove \define@key[UFCB]{bez}{x1}{\def\board@val@bezxi{#1}} @@ -928,8 +927,6 @@ chessboard.sty v1.5] %% obsolete key, \define@choicekey[UFCB]{locfill}{applycolor}[\@tempval\@tempnr]{all,none,white,black}{% D - \PackageWarning{chessboard}{The behaviour of applycolor has changed - \MessageBreak Please read the documentation!}% \ifcase\@tempnr\relax \board@do@setsinglekeys*[UFCB]{locfill}{trimtocolor=false}% \or diff --git a/Master/texmf-dist/tex/latex/chessboard/chessboard-pgf.sty b/Master/texmf-dist/tex/latex/chessboard/chessboard-pgf.sty index 7878e3517cf..b06623e9bcd 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: `pgf') +%% chessboard-src.dtx (with options: `chessboard-pgf') %% %% chessboard: a package to print chessboards -%% Copyright 2006 UlrikeFischer (skak@nililand.de) +%% Copyright 2006-2014 Ulrike Fischer (chess@nililand.de) %% ------------------------------------------- %% %% This file can be redistributed and/or modified under the terms of @@ -16,7 +16,8 @@ %% License, or (at your option) any later version. %% %% For error reports see documentation. -\ProvidesFile{chessboard-pgf.sty}[2007/12/20 pgf code for chessboard v1.5] +\ProvidesFile{chessboard-pgf.sty}[2014/05/01 version v1.7 pgf code for chessboard.sty] +%%$Date: 2011/01/11 14:07:20 $$Version: 3d9f59c743f1 $ \newcommand\board@pgf@extrabackground{}% \newcommand\board@pgf@extramarkground{}% @@ -499,7 +500,6 @@ \pgfusepath{stroke}}% \newcommand\board@pgf@curvemove[2][]{ - %\begin{pgfscope} \setkeys[UFCB]{bez}{#1}% \pgfsetlinewidth{\board@pgf@linewidth}% \pgfsetarrowsend{\board@pgf@arrow}% diff --git a/Master/texmf-dist/tex/latex/chessboard/chessboard.sty b/Master/texmf-dist/tex/latex/chessboard/chessboard.sty index c1e29f44f15..5bd00fcdfb0 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: `main') +%% chessboard-src.dtx (with options: `chessboard') %% %% chessboard: a package to print chessboards -%% Copyright 2006 UlrikeFischer (skak@nililand.de) +%% Copyright 2006-2014 Ulrike Fischer (chess@nililand.de) %% ------------------------------------------- %% %% This file can be redistributed and/or modified under the terms of @@ -16,8 +16,9 @@ %% License, or (at your option) any later version. %% %% For error reports see documentation. -\NeedsTeXFormat{LaTeX2e}% -\ProvidesPackage{chessboard}[2007/12/20 v1.5 print chessboards] +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{chessboard}[2014/05/01 version v1.7 print chessboards] +%%$Date: 2011/03/23 08:42:57 $$Version: 66142533647c $ \DeclareOption{skaknew}{}% \ProcessOptions @@ -37,14 +38,15 @@ \RequirePackage{chessfss}[2006/03/31] - \RequirePackage{xkeyval}% \RequirePackage{xifthen}% \RequirePackage{ifpdf}% -\RequirePackage{pgfcore, pgfbaseshapes}% +\RequirePackage{tikz}% +\usepgfmodule{shapes} \ifpdf\else \RequirePackage{pst-node}% -\fi \RequirePackage{amssymb} +\fi + %%%%%%% %% naming conventions %%%%%%% @@ -315,7 +317,7 @@ %% getting the list of fields where pieces resides %% added 2007-12-11, version 1.5. -%% the piecelists are stored in cblist +%% the piecelists are stored in cblist \newcommand\board@do@getpiecelists{% \setcounter{cnt@board@file}{\board@val@minfilenum}% @@ -324,8 +326,8 @@ \csname board@\board@val@game @piececharlist\endcsname}% \@for\board@temp@piecechar:=\board@temp@curlist \do {% - \expandafter\def\csname cblist\board@temp@piecechar\endcsname{}% - \expandafter\def\csname board@temp@\board@temp@piecechar @comma\endcsname{}}% + \expandafter\xdef\csname cblist\board@temp@piecechar\endcsname{}% + \expandafter\xdef\csname board@temp@\board@temp@piecechar @comma\endcsname{}}% \xdef\cblistempty{}% \def\board@temp@empty@comma{}% \whiledo @@ -516,7 +518,7 @@ \csname board@val@lang\board@val@curlang @\board@temp@char\endcsname}% \else \PackageError{chessboard}% - {Char #1 unknown in input language \board@val@curlang!}% + {Char #1 unknown in input language \board@val@curlang!}% {You either misspelled the char for the piece or forgot to define it for the current language}% \fi \@namedef{board@the@piece@\board@temp@curpiece @white}{% @@ -572,7 +574,7 @@ \addtocounter{cnt@board@rank}{-1}}}% %%%%%% -%% Scanning a FEN to set the fields +%% Scanning a FEN (only the first part) to set the fields %%%%%% \def\@usenone@until@nil#1\@nil{}% @@ -804,17 +806,17 @@ \cbDefineMoverStyle% {square} - {$\square$} - {$\square$} - {$\blacksquare$} - {$\blacksquare$} + {\tikz \draw[color=black] (0,0) rectangle (0.65em,0.65em);} + {\tikz \draw[color=black] (0,0) rectangle (0.65em,0.65em);} + {\tikz \fill[color=black] (0,0) rectangle (0.65em,0.65em);} + {\tikz \fill[color=black] (0,0) rectangle (0.65em,0.65em);} \cbDefineMoverStyle% - {triangle} - {$\triangledown$} - {$\vartriangle$} - {$\blacktriangledown$} - {$\blacktriangle$} + {triangle} + {\tikz \draw[color=black] (0.6ex,0pt)--(0,1.25ex)--(1.2ex,1.25ex) --cycle;} + {\tikz \draw[color=black] (0.6ex,1.25ex)--(0,0)--(1.2ex,0) --cycle;} + {\tikz \fill[color=black] (0.6ex,0pt)--(0,1.25ex)--(1.2ex,1.25ex) --cycle;} + {\tikz \fill[color=black] (0.6ex,1.25ex)--(0,0)--(1.2ex,0) --cycle;} \cbDefineMoverStyle% %#1: optional, can be used for checks @@ -1054,6 +1056,7 @@ \newcommand\chessboard[1][]{% \begingroup + \normallineskip=1pt\relax\normallineskiplimit=0pt\relax%14.3.2011 \savekeys[UFCB]{locset}{\global{psset},\global{psskak},\global{inverse}}% %%% Initialisation %% combine the the global keys and the keys in argument @@ -1197,7 +1200,7 @@ \csname board@val@moverstyle@\board@val@moverstyle\endcsname \else \PackageWarning{chessboard}% - {Moverstyle \board@val@moverstyle\ is not defined, I will use + {Moverstyle '\board@val@moverstyle' is not defined, I will use type square instead}% \board@val@moverstyle@square \fi @@ -1430,6 +1433,7 @@ \def\currentfontcolors{\board@val@fontcolorstack} \setkeys*[UFCB]{glofill}{language=english,trimtocolor=false,trimarea=\board,trim,usepgf=all,pgfstyle=none}% \board@do@setsinglekeys*[UFCB]{locfill}{language=english}% + \endinput %% %% End of file `chessboard.sty'. -- cgit v1.2.3