summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/schwalbe-chess/schwalbe.sty
blob: cd2153e3be386bd1fd3dcfaa126528486aa207a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
%%
%% This is file `schwalbe.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% schwalbe.dtx  (with options: `style')
%% 
%% IMPORTANT NOTICE:
%% 
%% For the copyright see the source file.
%% 
%% Any modified versions of this file must be renamed
%% with new filenames distinct from schwalbe.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{schwalbe}[2019/12/28]
\DeclareOption{10pt}{\PassOptionsToPackage{10pt}{diagram}}
\DeclareOption{11pt}{\PassOptionsToPackage{11pt}{diagram}}
\DeclareOption{12pt}{\PassOptionsToPackage{12pt}{diagram}}
\ProcessOptions
\RequirePackage{diagram}[2019/12/28]
\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{%
   \normalsize%
   \diagramxii%
   \setboardwidth%
}
\def\smalldia{%
   \small%
   \diagramx%
   \setboardwidth%
}
\setboolean{showacademictitle}{false}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\inner@frame\z@%
\v@frame@dist\z@%
\h@frame@dist\z@%
\setboardwidth
\newif\if@first%
\newif\if@urdruck\@urdruckfalse
\def\urdruck{\@urdrucktrue}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\windowpar}{%
  \newline\hbox{\vbox to \parskip{\vss}}\newline%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\let\bel=\any
\let\ferner=\further
\newcommand\reprint{%
   \hbox to \textwidth{\bfseries%
      PLEASE~REPRINT\hfill BITTE~NACHDRUCKEN\hfill PRIERE~DE~REIMPRIMER%
   }%
}
\def\@dia@number{}% Die Diagrammnummer wird bei den Autoren gesetzt!
\def\@dia@numberx{%
   \if@special%
      \thediag%
   \else\ifdi@no%
      \thediag%
   \fi\fi%
}
\def\@dia@authors{%
   \ifauth@r%
      \ifnormal@names%
         \def\@dianame{\@normalname}%
      \fi%
      \@firsttrue%
      \let\@action=\@dia@writename% Parse the list of authors
      \@parseTokenlist\aut@tk;%
   \else%
      \above@newline
      {\authorfont\@dia@numberx}%
   \fi%
}
\def\@dia@writename#1; {%
   \above@newline
   \if@first%
      \@firstfalse%
      \setbox\@test@box=\hbox{%
         \authorfont%
         \@dia@numberx\ %
         \@dianame#1; %
      }%
      \@test@dimen=\wd\@test@box%
      \ifdim\@test@dimen>\board@width\relax%
         \noindent\hbox to\board@width{\authorfont\@dia@numberx\hfill}\above@newline%
         \setbox\@test@box=\hbox{\authorfont\@dianame#1; }%
         \@test@dimen=\wd\@test@box%
         \ifdim\@test@dimen>\board@width\relax%
            \noindent\hbox to\board@width{\authorfont\@dianame#1; \hss}%
         \else%
            {\authorfont\@dianame#1; }%
         \fi%
      \else%
         {\authorfont\@dia@numberx\hfill\@dianame#1; }%
      \fi%
   \else%
      % Changed to get the resulting names centered.
      \hbox to\board@width{\hss\authorfont\@dianame#1; \hss}%
   \fi%
   \l@@klist%
}
\def\@figurine@number{{\authorfont\thediag\ }}
\newlength{\helplength}%
\newlength{\boardskip}%
\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}%
}

\endinput
%%
%% End of file `schwalbe.sty'.