diff options
author | Karl Berry <karl@freefriends.org> | 2022-06-23 20:54:57 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-06-23 20:54:57 +0000 |
commit | d5dbb419bfc9c813884f68f26f223b2be0dd307e (patch) | |
tree | e96e21b644164ba5492a2a1da60798f03db99a2f /Master/texmf-dist/tex/latex/schwalbe-chess | |
parent | 98a8cf07f9f44a4cac1d296b1dd75e3878530ccc (diff) |
schwalbe-chess (23jun22)
git-svn-id: svn://tug.org/texlive/trunk@63702 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/schwalbe-chess')
3 files changed, 107 insertions, 51 deletions
diff --git a/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.cls b/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.cls index d98ac963e61..9b25c465da3 100644 --- a/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.cls +++ b/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.cls @@ -34,9 +34,15 @@ %% %% \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{schwalbe}[2022/05/28] +\ProvidesClass{schwalbe}[2022/06/23] +\DeclareOption{ruler}{% + \AtBeginDocument{\IfFileExists{__finalpdf__.tex}{}{% + \ShowRuler{32mm / 1pt}{-44mm / 1pt}}} +}% +\ProcessOptions\relax% \LoadClass[11pt,a4paper]{article} -\RequirePackage[12pt]{schwalbe}[2019/12/28] +\RequirePackage[12pt]{schwalbe}[2022/06/23] +\RequirePackage{swruler}[2022/06/19] \RequirePackage{cpdparse}[2020/12/27] \RequirePackage[T2A,T1]{fontenc}% fsRUS 140121 \RequirePackage[koi8-r,utf8]{inputenc}% fsRUS 140121 @@ -80,6 +86,8 @@ \def\zB{z.\,B.\ignorespaces} \def\su{s.\,u.\ignorespaces} \def\ep{e.\,p.\ignorespaces} +\def\win{$\pm$} +\def\loose{$\mp$} \def\seedia{s.\,Diagr.} \def\figline{% \centerline{% @@ -113,11 +121,13 @@ \ifcase#1\relax% \or Januar\or Februar\or März\or April\or Mai\or Juni\or Juli\or August\or September\or Oktober\or November\or Dezember\fi% }% +\newcounter{sw@volume}% \newcounter{sw@issue}% \newcounter{sw@month}% \newcounter{sw@year}% \newcommand{\Heft}[5]{% \def\heft@band{#1}% + \setcounter{sw@volume}{#1}% \setcounter{sw@issue}{#2}% \setcounter{sw@month}{#3}% \setcounter{sw@year}{#4}% @@ -127,7 +137,7 @@ {\large\bfseries% HEFT~#2% \hfill% - BAND #1% + BAND \Roman{sw@volume}% \hfill% \sw@monat{\value{sw@month}}~#4% }% @@ -188,9 +198,9 @@ , S.~\the\pages@tk% \fi% \else% - \if@special\relax% + \ifthenelse{\boolean{@cpd@numbering@local}}{}{% \thediag% - \fi + }% \fi\fi% \egroup% } @@ -431,7 +441,7 @@ \AtEndDocument{\immediate\closeout\@cpdfile@loeserkuerzel} \newcommand{\x@cpd@saveloeser}[2]{% - \immediate\write\@cpdfile@loeserkuerzel{\unexpanded{#1:#2}} + \immediate\write\@cpdfile@loeserkuerzel{\unexpanded{#1:#2}}% } \newcommand{\y@cpd@saveloeser}[2]{% \x@cpd@saveloeser{#1}{#2}% @@ -485,11 +495,11 @@ } \newcommand{\showsol}{} \newcommand{\cpd@Loesung}[3]{% - \textbf{#1}\ \sw@loesung@authors{#2}% + \textbf{#1}\ \sw@loesung@authors{#2}.\ % \renewcommand{\showsol}{#3}% } \newcommand{\cpd@Loesung@star}[3]{% - \textbf{#1}\ \sw@loesung@authors{#2}\ #3% + \textbf{#1}\ \sw@loesung@authors{#2}.\ #3.% \renewcommand{\showsol}{}% } \newcommand{\Loesung}{% @@ -1230,30 +1240,6 @@ \renewcommand{\x}{:} \newcommand{\mal}{\mbox{\ifmmode\times\else$\times$\fi}} -\newcommand{\Ruler}{% -\makebox{% -\setlength{\unitlength}{13mm} -\begin{picture}(1,20) -\put(0.4,-20){\line(0,1){20}} - -\multiput(0.4,-20)(0,2){11}{\line(1,0){0.4}} -\multiput(0.4,-19)(0,2){10}{\line(1,0){0.2}} -\put(0,-20){10} -\put(0,-18){9} -\put(0,-16){8} -\put(0,-14){7} -\put(0,-12){6} -\put(0,-10){5} -\put(0,-8){4} -\put(0,-6){3} -\put(0,-4){2} -\put(0,-2){1} -\end{picture} -}}% Ruler -\newcommand{\ShowRuler}{% -\AddToHook{shipout/background}{\put(32mm,-46mm){\Ruler}}% -}% -\AtBeginDocument{\IfFileExists{__finalpdf__.tex}{}{\ShowRuler}} \newboolean{MeasureMode} \setboolean{MeasureMode}{false} diff --git a/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.sty b/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.sty index ffa06263d4f..616549dc9d5 100644 --- a/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.sty +++ b/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.sty @@ -34,12 +34,12 @@ %% %% \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{schwalbe}[2019/12/28] +\ProvidesPackage{schwalbe}[2022/06/23] \DeclareOption{10pt}{\PassOptionsToPackage{10pt}{diagram}} \DeclareOption{11pt}{\PassOptionsToPackage{11pt}{diagram}} \DeclareOption{12pt}{\PassOptionsToPackage{12pt}{diagram}} \ProcessOptions -\RequirePackage{diagram}[2020/02/09] +\RequirePackage{diagram}[2022/06/19] \newcommand{\rb}[1]{\raisebox{0.4ex}{#1}} \nocomputer \setboolean{piececounter}{true} @@ -90,11 +90,9 @@ } \def\@dia@number{}% Die Diagrammnummer wird bei den Autoren gesetzt! \def\@dia@numberx{% - \if@special% - \thediag% - \else\ifdi@no% - \thediag% - \fi\fi% + \ifthenelse{\boolean{@cpd@numbering@local}}{% + {\authorfont\thediag}% + }{}% } \def\@dia@authors{% \ifauth@r% @@ -105,8 +103,10 @@ \let\@action=\@dia@writename% Parse the list of authors \@parseTokenlist\aut@tk;% \else% - \above@newline - {\authorfont\@dia@numberx}% + \ifthenelse{\boolean{@cpd@numbering@local}}{% + \above@newline% + \@dia@numberx% + }{}% \fi% } \def\@dia@writename#1; {% @@ -143,16 +143,20 @@ \newlength{\double@boardwidth}% \def\doublediagram#1{% - \def\dia@above{\if@special\else% - \setlength{\helplength}{\textwidth}% - \addtolength{\helplength}{-3\board@width}% - \setlength{\boardskip}{.5\helplength}% - \setlength{\double@boardwidth}{2\board@width}% - \addtolength{\double@boardwidth}{\boardskip}% - \begin{minipage}[b]{\double@boardwidth}% - #1% - \end{minipage}% - \fi}% + \def\dia@above{% + \ifthenelse{@cpd@numbering@local}{}{% + % \if@special\else% + \setlength{\helplength}{\textwidth}% + \addtolength{\helplength}{-3\board@width}% + \setlength{\boardskip}{.5\helplength}% + \setlength{\double@boardwidth}{2\board@width}% + \addtolength{\double@boardwidth}{\boardskip}% + \begin{minipage}[b]{\double@boardwidth}% + #1% + \end{minipage}% + % \fi + }% + }% } \endinput diff --git a/Master/texmf-dist/tex/latex/schwalbe-chess/swruler.sty b/Master/texmf-dist/tex/latex/schwalbe-chess/swruler.sty new file mode 100644 index 00000000000..273bd57ed3d --- /dev/null +++ b/Master/texmf-dist/tex/latex/schwalbe-chess/swruler.sty @@ -0,0 +1,66 @@ +%% +%% This is file `swruler.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% schwalbe.dtx (with options: `rulerstyle') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from swruler.sty. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file schwalbe.dtx. +%% +%% This generated file may be distributed as long as the +%% original source files, as listed above, are part of the +%% same distribution. (The sources need not necessarily be +%% in the same archive or directory.) +%% File 'schwalbe.dtx' +%% +%% This file may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version +%% 1.2 of this license or (at your option) any later version. +%% The latest version of this license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.2 or later is part of all distributions of LaTeX +%% version 1999/12/01 or later. +%% +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{swruler}[2022/06/19] +\RequirePackage{calc} +\newcommand{\Ruler}{% +\makebox{% +\setlength{\unitlength}{\textheight / 20} +\begin{picture}(1,20) +\put(0.4,-20){\line(0,1){20}} +\multiput(0.4,-20)(0,2){11}{\line(1,0){0.4}} +\multiput(0.4,-19)(0,2){10}{\line(1,0){0.2}} +\put(0,-20){10} +\put(0,-18){9} +\put(0,-16){8} +\put(0,-14){7} +\put(0,-12){6} +\put(0,-10){5} +\put(0,-8){4} +\put(0,-6){3} +\put(0,-4){2} +\put(0,-2){1} +\end{picture} +}}% Ruler +\providecommand{\AddToHook}[2]{% +\message{^^JWARNING: Your LaTeX is too old to activate a Ruler on each page.^^J}% +}% +\newcommand{\ShowRuler}[2]{% +\AddToHook{shipout/background}{\put(#1,#2){\Ruler}}% +}% +\endinput +%% +%% End of file `swruler.sty'. |