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 --- .../source/latex/chessboard/chessboard-src.dtx | 96 +++++++++++----------- .../source/latex/chessboard/chessboard.ins | 18 ++-- 2 files changed, 55 insertions(+), 59 deletions(-) (limited to 'Master/texmf-dist/source/latex/chessboard') diff --git a/Master/texmf-dist/source/latex/chessboard/chessboard-src.dtx b/Master/texmf-dist/source/latex/chessboard/chessboard-src.dtx index 06bccdebce2..c6ab35135b1 100644 --- a/Master/texmf-dist/source/latex/chessboard/chessboard-src.dtx +++ b/Master/texmf-dist/source/latex/chessboard/chessboard-src.dtx @@ -1,9 +1,14 @@ -%<*main> -\NeedsTeXFormat{LaTeX2e}% -\ProvidesPackage{chessboard}[2007/12/20 v1.5 print chessboards] +%<*chessboard> +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{chessboard}[2014/05/01 version v1.7 print chessboards] +%%$Date: 2011/03/23 08:42:57 $$Version: 66142533647c $ + %1.4: Changed to restore style key %1.5: corrected values for mover key (w/b instead of w/s) - +%1.6: corrected bug in \board@do@getpiecelists (def instead of xdef) +% 14.3.2011: added \normallineskip=1pt\relax\normallineskiplimit=0pt\relax +% (default latex values). +% to avoid bad spacing in amsart.cls (see tex.stackexchange discussion) \DeclareOption{skaknew}{}% \ProcessOptions @@ -22,16 +27,16 @@ \RequirePackage{chessfss}[2006/03/31] -% Change in 1.4. -%\PackageWarning{chessboard}{When used together with xkeyval 2.5f, the style key will not work!} \RequirePackage{xkeyval}% \RequirePackage{xifthen}% \RequirePackage{ifpdf}% -\RequirePackage{pgfcore, pgfbaseshapes}% +\RequirePackage{tikz}% +\usepgfmodule{shapes} \ifpdf\else \RequirePackage{pst-node}% -\fi \RequirePackage{amssymb} +\fi + %%%%%%% %% naming conventions %%%%%%% @@ -303,7 +308,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}% @@ -312,8 +317,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 @@ -506,7 +511,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}{% @@ -562,7 +567,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{}% @@ -794,17 +799,18 @@ \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 @@ -1044,6 +1050,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 @@ -1187,7 +1194,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 @@ -1420,9 +1427,11 @@ \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}% -% -%<*pgf> -\ProvidesFile{chessboard-pgf.sty}[2007/12/20 pgf code for chessboard v1.5] + +% +%<*chessboard-pgf> +\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{}% @@ -1909,7 +1918,6 @@ %new 1.5. \newcommand\board@pgf@curvemove[2][]{ - %\begin{pgfscope} \setkeys[UFCB]{bez}{#1}% \pgfsetlinewidth{\board@pgf@linewidth}% \pgfsetarrowsend{\board@pgf@arrow}% @@ -1928,7 +1936,6 @@ {\pgfpointxy{0}{\board@val@pgfsign*\board@val@bezyii}}}% {\pgfpoint{\len@board@tempy}{0cm}}% \pgfusepath{stroke}% -%\end{pgfscope} } \cbDefinePgfMoveStyle{curvemove}{% @@ -2537,10 +2544,11 @@ {\pgfpoint{0pt}{\board@pgf@padding}}}% \pgfusepath{stroke}}% -% -%<*keysmain> -\ProvidesFile{chessboard-keys-main.sty}[2007/12/20 key definitions -for chessboard.sty v1.5 ] + +% +%<*chessboard-keys-main> +\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 @@ -3416,7 +3424,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}{}}% @@ -3823,13 +3832,6 @@ for chessboard.sty v1.5 ] \define@key[UFCB]{glofill}{addfen}{% D \board@do@l@addto@macro\board@val@savedkeylist{,addfen=#1}}% -%\define@key[UFCB]{locfill}{usefen}{% -% \edef\board@temp@curfen{\csname chessgame.#1\endcsname}% -% \board@do@setsinglekeys*[UFCB]{locfill}{language=english, addfen=\board@temp@curfen, language=\board@val@savelang}}% -% -%\define@key[UFCB]{glofill}{usefen}{% -% \board@do@l@addto@macro\board@val@savedkeylist{,usefen=#1}}% - %%% other name for usefen \define@key[UFCB]{locfill}{restorefen}{% D \edef\board@temp@curfen{\csname chessgame.#1\endcsname}% @@ -3849,7 +3851,6 @@ for chessboard.sty v1.5 ] %% rest of fen %%%% -%\define@choicekey*[UFCB]{locfill}{mover}[\board@val@mover]{w,b}{} %D \define@key[UFCB]{locfill}{mover}{\def\board@val@mover{#1}} %D %changed 02.08.2007 to allow commands as input \define@key[UFCB]{locfill}{castling}{\def\board@val@castling{#1}} %D \define@key[UFCB]{locfill}{enpassant}{\def\board@val@enpassant{#1}} %D @@ -4067,12 +4068,12 @@ for chessboard.sty v1.5 ] \define@key[UFCB]{gloinit}{game}{% \board@do@l@addto@macro\board@val@savedkeylist{,game=#1}{}}% -% -%<*keyspgf> -\ProvidesFile{chessboard-keys-pgf.sty}[2007/12/20 key definitions for -chessboard.sty v1.5] +% +%<*chessboard-keys-pgf> +\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}} @@ -4986,8 +4987,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 @@ -5125,4 +5124,5 @@ chessboard.sty v1.5] \define@key[UFCB]{glofill}{pgfborder}[\printarea]{% %D \board@do@l@addto@macro\board@val@savedkeylist{,pgfborder=#1}}% -% + +% diff --git a/Master/texmf-dist/source/latex/chessboard/chessboard.ins b/Master/texmf-dist/source/latex/chessboard/chessboard.ins index 0d58f3eda04..7a2b97d40e0 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 Ulrike Fischer (skak@nililand.de) +%% Copyright 2006-2014 Ulrike Fischer (chess@nililand.de) %% ------------------------------------------- % % @@ -49,7 +49,7 @@ \declarepreamble\UFpreamble 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 @@ -60,18 +60,14 @@ License, or (at your option) any later version. For error reports see documentation. \endpreamble - %% File generation: -\usedir{tex/latex/chessboard} \generate{% \usepreamble\UFpreamble - %% style - \file{chessboard.sty}{\from{chessboard-src.dtx}{main}} - \file{chessboard-pgf.sty}{\from{chessboard-src.dtx}{pgf}} - \file{chessboard-keys-pgf.sty}{\from{chessboard-src.dtx}{keyspgf}} - \file{chessboard-keys-main.sty}{\from{chessboard-src.dtx}{keysmain}} + \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}} } - \endbatchfile %% -%% end of file `scrclass.ins' +%%end of file chessboard.ins \ No newline at end of file -- cgit v1.2.3