diff options
author | Karl Berry <karl@freefriends.org> | 2020-01-02 22:12:09 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-01-02 22:12:09 +0000 |
commit | 58cbae92d3a8712b4c8e5da3ad9d1cae7c5d7e11 (patch) | |
tree | 4edba05cb565a2dd557bfefe0f5462a2bf5f865b /Master/texmf-dist/tex/latex/schwalbe-chess | |
parent | 3caa7617b1cbef09ddd5456faf34623319629cba (diff) |
schwalbe-chess (2jan20)
git-svn-id: svn://tug.org/texlive/trunk@53305 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/schwalbe-chess')
-rw-r--r-- | Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.cls | 75 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.sty | 9 |
2 files changed, 65 insertions, 19 deletions
diff --git a/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.cls b/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.cls index 4efe1923a29..1e62b103eb4 100644 --- a/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.cls +++ b/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.cls @@ -34,9 +34,9 @@ %% %% \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{schwalbe}[2017/01/31] +\ProvidesClass{schwalbe}[2019/12/28] \LoadClass[11pt,a4paper]{article} -\RequirePackage[12pt]{schwalbe} +\RequirePackage[12pt]{schwalbe}[2019/12/28] \RequirePackage[T2A,T1]{fontenc}% fsRUS 140121 \RequirePackage[koi8-r,utf8]{inputenc}% fsRUS 140121 \RequirePackage[russian,german,english,ngerman]{babel} @@ -109,19 +109,28 @@ \itemsep \parsep}% \belowdisplayskip \abovedisplayskip } +\newcommand{\sw@monat}[1]{% +\ifcase#1\relax% +\or Januar\or Februar\or M\"arz\or April\or Mai\or Juni\or Juli\or August\or September\or Oktober\or November\or Dezember\fi% +}% +\newcounter{sw@issue}% +\newcounter{sw@month}% +\newcounter{sw@year}% \newcommand{\Heft}[5]{% \def\heft@band{#1}% - \def\heft@nr{#2}% - \def\heft@monat{#3}% - \def\heft@year{#4}% + \setcounter{sw@issue}{#2}% + \setcounter{sw@month}{#3}% + \setcounter{sw@year}{#4}% \setcounter{page}{#5}% \hbox to \textwidth{\vbox to 60mm{\vfill}\hfill}% \hbox to \textwidth{% - {\large\bfseries HEFT~#2}% + {\large\bfseries% + HEFT~#2% \hfill% - {\large\bfseries BAND #1}% + BAND #1% \hfill% - {\large\bfseries #3~#4}% + \sw@monat{\value{sw@month}}~#4% + }% }% \vskip2mm% \hrule width \textwidth height 1\p@% @@ -267,6 +276,22 @@ }% \expandafter\endgroup\@tempd% }{} +\newcounter{sw@loesungen@bis@monat} +\newcounter{sw@loesungen@bis@jahr} +\newcommand{\LoesungenBis}{% + \setcounter{sw@loesungen@bis@monat}{\value{sw@month}}% + \setcounter{sw@loesungen@bis@jahr}{\value{sw@year}}% + \addtocounter{sw@loesungen@bis@monat}{3}% + \ifthenelse{\value{sw@loesungen@bis@monat} > 12}% + {% + \addtocounter{sw@loesungen@bis@monat}{-12}% + \addtocounter{sw@loesungen@bis@jahr}{1}% + \sw@monat{\value{sw@loesungen@bis@monat}}\ \arabic{sw@loesungen@bis@jahr}% + }% + {% + \sw@monat{\value{sw@loesungen@bis@monat}}% + }% +}% \newcommand{\sw@urd@abteilung}{% \@ifstar% \@sw@urd@abteilung@one% @@ -323,8 +348,8 @@ \newcommand{\@sw@lsg@abteilung}[4]{% \textbf{#1 Nr. #2-#3} (Bearbeiter = #4)% } -\newenvironment{Loesungen}[2]{% - \begingroup% +\newcommand{\sw@loesungen}[2]{% + \begingroup% \ttitel@skip% \centerline{\Large\bfseries L\"osungen der Urdrucke aus Heft #1, #2}% \titel@skip% @@ -340,8 +365,8 @@ \edef\@tempa{ \write\sw@contents{% \@nearverbatim\@tempb{% - {\@nearverbatim\@tempc}% - {\@nearverbatim\@tempd}% + {\@tempc}% + {\@tempd}% {\@nearverbatim\pageref{inhalt\@nameuse{the@inhalt}}}% }% }% @@ -349,6 +374,26 @@ \expandafter\egroup\@tempa% \parskip.5ex plus 2ex% \catcode`/=\active% +} +\newcounter{sw@loesungen@aus@heft} +\newcounter{sw@loesungen@aus@monat} +\newcounter{sw@loesungen@aus@jahr} +\newcommand{\sw@loesungen@star}{% + \setcounter{sw@loesungen@aus@heft}{\value{sw@issue}}% + \addtocounter{sw@loesungen@aus@heft}{-3}% + \setcounter{sw@loesungen@aus@jahr}{\value{sw@year}}% + \setcounter{sw@loesungen@aus@monat}{\value{sw@month}}% + \addtocounter{sw@loesungen@aus@monat}{-6}% + \ifthenelse{\value{sw@loesungen@aus@monat} < 1}% + {% + \addtocounter{sw@loesungen@aus@monat}{12}% + \addtocounter{sw@loesungen@aus@jahr}{-1}% + }{}% + \sw@loesungen{\arabic{sw@loesungen@aus@heft}}{\sw@monat{\value{sw@loesungen@aus@monat}} \arabic{sw@loesungen@aus@jahr}}% +} + +\newenvironment{Loesungen}{% + \@ifstar{\sw@loesungen@star}{\sw@loesungen}% }{% \catcode`/=12% \endgroup% @@ -971,6 +1016,10 @@ \expandafter\l@@klist\the\aut@tk; \e@list% \egroup% } +\def\do@dia@job{% + \@write@sol\ifvmode\noindent\fi\unhbox\dia@box% + \sw@problem% +} \def\sw@problemAuthor#1; {% \bgroup% \def\@tempc{\problem}% @@ -1099,6 +1148,8 @@ \def\bsol{\catcode`/=\active\relax} \def\esol{\catcode`/=12\relax} \bsol +\renewcommand{\cpd@begindiagram@hook}{\esol} +\renewcommand{\cpd@enddiagram@hook}{\bsol} \renewcommand{\section}{\@startsection{section}{1}{\z@}{2ex}{.5ex}{\normalfont\large\bfseries}} \renewcommand{\subsection}{\@startsection{subsection}{2}{\z@}{1ex}{.3ex}{\normalfont\bfseries}} diff --git a/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.sty b/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.sty index a1e542d851a..cd2153e3be3 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}[2017/01/31] +\ProvidesPackage{schwalbe}[2019/12/28] \DeclareOption{10pt}{\PassOptionsToPackage{10pt}{diagram}} \DeclareOption{11pt}{\PassOptionsToPackage{11pt}{diagram}} \DeclareOption{12pt}{\PassOptionsToPackage{12pt}{diagram}} \ProcessOptions -\RequirePackage{diagram} +\RequirePackage{diagram}[2019/12/28] \newcommand{\rb}[1]{\raisebox{0.4ex}{#1}} \nocomputer \setboolean{piececounter}{true} @@ -66,11 +66,6 @@ \diagramx% \setboardwidth% } - -\def\do@dia@job{% - \@write@sol\ifvmode\noindent\fi\unhbox\dia@box% - \sw@problem% -} \setboolean{showacademictitle}{false} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \inner@frame\z@% |