diff options
author | Karl Berry <karl@freefriends.org> | 2015-02-17 23:11:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-02-17 23:11:17 +0000 |
commit | 460ad823d97bcad332e3db0b9c43d2723d250808 (patch) | |
tree | 7dc6a6dc4f15c50b83463f49be3b9b8e3f372dbc /Master/texmf-dist/tex/latex/schwalbe-chess | |
parent | 29f590621e4729cf07be8eeae76b0eeb7bc945f3 (diff) |
schwalbe-chess (17feb15)
git-svn-id: svn://tug.org/texlive/trunk@36309 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 | 95 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.sty | 79 |
2 files changed, 107 insertions, 67 deletions
diff --git a/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.cls b/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.cls index ebcae890cad..7af414df331 100644 --- a/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.cls +++ b/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.cls @@ -20,7 +20,7 @@ %% 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 'diagram.dtx' +%% File 'schwalbe.dtx' %% %% This file may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version @@ -34,11 +34,22 @@ %% %% \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{schwalbe}[2015/01/11] +\ProvidesClass{schwalbe}[2015/02/17] \LoadClass[11pt]{article} -\RequirePackage{schwalbe} +\RequirePackage[12pt]{schwalbe} +\RequirePackage[T2A,T1]{fontenc}% fsRUS 140121 +\RequirePackage[koi8-r,utf8]{inputenc}% fsRUS 140121 +\RequirePackage[ngerman,english,german]{babel} \RequirePackage{ifthen} +\RequirePackage{times} +\RequirePackage{picinpar} +\RequirePackage{multicol} \RequirePackage{url} +\hyphenation{Patt-idee Da-men-op-fer nicht-ortho-doxe Grim-shaw Rein-form} + +\advance\exhyphenpenalty by -10 +\tolerance2000\relax +\emergencystretch15\p@ \hoffset-25mm \voffset-25mm \textheight26cm @@ -58,6 +69,29 @@ \hbox to \textwidth{\thepage\hfill}% \fi% } +\def\dh{d.\,h.\ \ignorespaces} +\def\ua{u.\,a.\ \ignorespaces} +\def\zB{z.\,B.\ignorespaces} +\def\su{s.\,u.\ignorespaces} +\def\ep{e.\,p.\ignorespaces} +\def\seedia{s.\,Diagr.} +\def\figline{% +\centerline{% +\wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK % +\wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK % +\wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK % +}} +\def\foto#1#2#3{% + \begin{minipage}[t]{#1} + \hbox to #1{\hsize#1% + \vtop to #2{% + \noindent\hbox{}\vfill\hbox{}% + }% + }% + \par% + #3% + \end{minipage} +}% \renewcommand\footnotesize{% \@setfontsize\footnotesize\@xpt\@xiipt \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@ @@ -125,6 +159,50 @@ }% \expandafter\egroup\@tempa% }{} +\newcommand{\@dia@award@InformalEntscheid}{% + \above@newline% + \bgroup% + \authorfont\the\award@tk\hfill% + \if@sourcenr\relax% + \the\sourcenr@tk% + \else\if@issue% + Heft~\the\issue@tk% + \if@pages% + , S.~\the\pages@tk% + \fi% + \else% + \if@special\relax% + \thediag% + \fi + \fi\fi% + \egroup% +} +\newcommand{\@dia@authors@InformalEntscheid}{% + \ifauth@r% + \ifnormal@names% + \def\@dianame{\@normalname}% + \fi% + \@firstfalse% + \let\@action=\@dia@writename% Parse the list of authors + \@parseTokenlist\aut@tk;% + \fi% +} +\newboolean{normaldiaabove} +\setboolean{normaldiaabove}{true} +\newcommand{\dia@above@InformalEntscheid}{% + \ifthenelse{\boolean{normaldiaabove}}{% + \orig@dia@above% + }{% + \setboolean{above@newline}{false}% + \@dia@award@InformalEntscheid% + \@dia@authors@InformalEntscheid% + \@dia@after% + \@dia@version% + \@dia@correction% + \@dia@dedic% + \@dia@fidealbum% + }% +} \newenvironment{InformalEntscheid}{% \@ifstar{\x@InformalEntscheid}{\y@InformalEntscheid}% }{} @@ -132,13 +210,9 @@ \stepcounter{@inhalt}% \inhalt@label\relax% % Weitere Einstellungen - \def\@dia@numberx{% - \if@special% - \thediag\ % - \else\ifdi@no% - \if@sourcenr\the\sourcenr@tk\fi\ % - \fi\fi% - }% + \let\orig@dia@above=\dia@above% + \let\dia@above=\dia@above@InformalEntscheid% + \setboolean{normaldiaabove}{false}% % Erzeuge den Eintrag f\"ur das Inhaltsverzeichnis \bgroup% \def\@tempb{\InformalEntscheid}% @@ -937,6 +1011,7 @@ \renewcommand{\section}{\@startsection{section}{1}{\z@}{2ex}{.5ex}{\normalfont\large\bfseries}} \renewcommand{\subsection}{\@startsection{subsection}{2}{\z@}{1ex}{.3ex}{\normalfont\bfseries}} \renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}{.4ex}{.1ex}{\normalfont}} +\InputIfFileExists{schwalbe.ext}{}{}% \endinput %% %% End of file `schwalbe.cls'. diff --git a/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.sty b/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.sty index ed80d8a7129..f416849f785 100644 --- a/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.sty +++ b/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.sty @@ -20,7 +20,7 @@ %% 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 'diagram.dtx' +%% File 'schwalbe.dtx' %% %% This file may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version @@ -34,74 +34,39 @@ %% %% \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{schwalbe}[2015/01/11] -\RequirePackage[T2A,T1]{fontenc}% fsRUS 140121 -\RequirePackage[koi8-r,utf-8]{inputenc}% fsRUS 140121 -\RequirePackage[ngerman,english,german]{babel} -\RequirePackage{ifthen} +\ProvidesPackage{schwalbe}[2015/02/17] +\DeclareOption{10pt}{\PassOptionsToPackage{10pt}{diagram}} +\DeclareOption{11pt}{\PassOptionsToPackage{11pt}{diagram}} +\DeclareOption{12pt}{\PassOptionsToPackage{12pt}{diagram}} +\ProcessOptions \RequirePackage{diagram} -\usepackage{times} -\usepackage{picinpar} -\usepackage{multicol} -\hyphenation{Patt-idee Da-men-op-fer nicht-ortho-doxe Grim-shaw} -\advance\exhyphenpenalty by -10 -\tolerance2000\relax -\emergencystretch15\p@ -\def\dh{d.\,h.\ \ignorespaces} -\def\ua{u.\,a.\ \ignorespaces} -\def\zB{z.\,B.\ignorespaces} -\def\su{s.\,u.\ignorespaces} -\def\ep{e.\,p.\ignorespaces} -\def\seedia{s.\,Diagr.} -\def\figline{% -\centerline{% -\wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK % -\wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK % -\wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK \wK % -}} -\def\foto#1#2#3{% - \begin{minipage}[t]{#1} - \hbox to #1{\hsize#1% - \vtop to #2{% - \noindent\hbox{}\vfill\hbox{}% - }% - }% - \par% - #3% - \end{minipage} -}% \newcommand{\rb}[1]{\raisebox{0.4ex}{#1}} \nocomputer \setboolean{piececounter}{true} \diagcenter \setmonthstyle{Roman} + +\renewcommand*\authorfont{\bfseries} +\renewcommand*\cityfont{\itshape} +\renewcommand*\sourcefont{\slshape} +\renewcommand*\awardfont{} +\renewcommand*\dedicfont{\itshape} +\renewcommand*\stipfont{} +\renewcommand*\remfont{} +\renewcommand*\labelfont{\footnotesize} +\renewcommand*\cpd@boardfont{\footnotesize} + \def\normaldia{% - \font\chessfont=fselch16% - \renewcommand*\authorfont{\bfseries} - \renewcommand*\cityfont{\itshape} - \renewcommand*\sourcefont{\slshape} - \renewcommand*\awardfont{} - \renewcommand*\dedicfont{\itshape} - \renewcommand*\stipfont{} - \renewcommand*\remfont{} - \renewcommand*\labelfont{\footnotesize} - \renewcommand*\cpd@boardfont{\footnotesize} + \normalsize% + \diagramxii% \setboardwidth% } \def\smalldia{% - \font\chessfont=fselch12% - \renewcommand*\authorfont{\small\bfseries}% - \renewcommand*\cityfont{\small\itshape}% - \renewcommand*\sourcefont{\small\slshape}% - \renewcommand*\awardfont{\small}% - \renewcommand*\dedicfont{\small\itshape}% - \renewcommand*\stipfont{\small}% - \renewcommand*\remfont{\small}% - \renewcommand*\labelfont{\small\footnotesize}% - \renewcommand*\cpd@boardfont{\small\footnotesize}% + \small% + \diagramx% \setboardwidth% } -\renewcommand*{\diagramxi}{\normaldia} + \def\do@dia@job{% \@write@sol\ifvmode\noindent\fi\unhbox\dia@box% \sw@problem% |