diff options
author | Karl Berry <karl@freefriends.org> | 2015-02-06 23:27:13 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-02-06 23:27:13 +0000 |
commit | 970ab76da64fc81430c87913150c65dad35e7665 (patch) | |
tree | 967880b01bebe5add7efddaf895a0b3ab82b34ba /Master/texmf-dist/tex/latex/chess-problem-diagrams/diagram.sty | |
parent | 2eb3feff3ee5b9dab06d26bde41a3b6ea0802738 (diff) |
chess-problem-diagrams (6feb15)
git-svn-id: svn://tug.org/texlive/trunk@36223 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/chess-problem-diagrams/diagram.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/chess-problem-diagrams/diagram.sty | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/chess-problem-diagrams/diagram.sty b/Master/texmf-dist/tex/latex/chess-problem-diagrams/diagram.sty index c72486da10e..3316bc21e78 100644 --- a/Master/texmf-dist/tex/latex/chess-problem-diagrams/diagram.sty +++ b/Master/texmf-dist/tex/latex/chess-problem-diagrams/diagram.sty @@ -36,12 +36,15 @@ %% %% -\ProvidesPackage{diagram}[2015/01/10] -\DeclareOption{10pt}{\AtBeginDocument{}} -\DeclareOption{11pt}{\AtBeginDocument{\renewcommand{\DefaultDiagramSize}{\diagramxi}}} -\DeclareOption{12pt}{\AtBeginDocument{\renewcommand{\DefaultDiagramSize}{\diagramxii}}} +\ProvidesPackage{diagram}[2015/01/30] +\newcommand*{\DefaultDiagramSize}{} +\DeclareOption{10pt}{\renewcommand*{\DefaultDiagramSize}{\diagramx}} +\DeclareOption{11pt}{\renewcommand*{\DefaultDiagramSize}{\diagramxi}} +\DeclareOption{12pt}{\renewcommand*{\DefaultDiagramSize}{\diagramxii}} \ExecuteOptions{10pt} + \ProcessOptions +\AtBeginDocument{\DefaultDiagramSize} \RequirePackage{ifthen} \RequirePackage{calc} \RequirePackage{pstricks} @@ -582,7 +585,6 @@ \dia@lineskip\tw@\p@ \dia@type\tw@ } -\newcommand{\DefaultDiagramSize}{\diagramx} \def\defaultelchfont{% \ifcase\@ptsize\relax% \diagramx\or% @@ -932,6 +934,7 @@ \ifx@twins\else% \@dia@twins% \fi% + \@dia@piecedefs% \@dia@remark% \ifthenelse{\boolean{@solafterdiagram}}{% \below@newline% @@ -1180,6 +1183,17 @@ \l@@klist% } +\def\@dia@piecedefs{% + \if@piecedefs% + \bgroup% + \@lefttrue% + \let\below@newline\newline% + \remfont\let\@action=\write@piecedefs% + \@parseTokenlist\piecedefs@tk;% + \egroup% + \fi% +} + \def\@dia@remark{% \if@remark% \bgroup% @@ -1189,14 +1203,6 @@ \egroup% \let\below@newline\newline% \fi% - \if@piecedefs% - \bgroup% - \@lefttrue% - \let\below@newline\newline% - \remfont\let\@action=\write@piecedefs% - \@parseTokenlist\piecedefs@tk;% - \egroup% - \fi% } \def\parse@params#1{% |