summaryrefslogtreecommitdiff
path: root/info/german/tex-kurs/ssfolie.sty
blob: 969762b0ea85bab251d1e48179870293294cbda7 (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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
% This is SSFOLIE.STY in text format, as of 11 July 1988.
% article.sty 23 Sep 85
%
% Modified by D. Heinrich (Uni Karlsruhe)

\typeout{Document Style `ssfolie'. Modified at TH Khe, 11 July 1988}

\def\@ptsize{0}
\@namedef{ds@11pt}{\def\@ptsize{1}}
\@namedef{ds@12pt}{\def\@ptsize{2}}
\@namedef{ds@10pt}{\def\@ptsize{0}} % einegfuegt 22.12.87 (hei)
\def\ds@twoside{\@twosidetrue \@mparswitchtrue}
\def\ds@draft{\overfullrule 5pt}

% A Redefinition of OPTIONS to use '_STY' or '.STY' or... <---------
{\catcode`\_=12
\gdef\@options{\let\@elt\relax
    \@for\@tempa:=\@optionlist\do
        {\@ifundefined{ds@\@tempa}{\xdef\@optionfiles{\@optionfiles
             \@elt \@tempa.sty\relax}}{\csname ds@\@tempa\endcsname}}}% <-- _/.
} % <------------
\@options
\input ssfol1\@ptsize.sty\relax % <-- _/.


\def\labelenumi{\arabic{enumi}.}
\def\theenumi{\arabic{enumi}}
\def\labelenumii{(\alph{enumii})}
\def\theenumii{\alph{enumii}}
\def\p@enumii{\theenumi}
\def\labelenumiii{\roman{enumiii}.}
\def\theenumiii{\roman{enumiii}}
\def\p@enumiii{\theenumi(\theenumii)}
\def\labelenumiv{\Alph{enumiv}.}
\def\theenumiv{\Alph{enumiv}}
\def\p@enumiv{\p@enumiii\theenumiii}

\def\labelitemi{$\bullet$}
\def\labelitemii{\bf --}
\def\labelitemiii{$\ast$}
\def\labelitemiv{$\cdot$}

\def\verse{\let\\=\@centercr
 \list{}{\itemsep\z@ \itemindent -1.5em\listparindent \itemindent
 \rightmargin\leftmargin\advance\leftmargin 1.5em}\item[]}
\let\endverse\endlist
\def\quotation{\list{}{\listparindent 1.5em
 \itemindent\listparindent
 \rightmargin\leftmargin \parsep 0pt plus 1pt}\item[]}
\let\endquotation=\endlist
\def\quote{\list{}{\rightmargin\leftmargin}\item[]}
\let\endquote=\endlist

\def\descriptionlabel#1{\hspace\labelsep \LAfont #1}
\def\description{\list{}{\labelwidth\z@ \itemindent-\leftmargin
 \let\makelabel\descriptionlabel}}
\let\enddescription\endlist


\def\theequation{\arabic{equation}}


\def\titlepage{%
 \oddsidemargin\titlepagemargin% eingefuegt 26.01.88 (hei)
 \evensidemargin\titlepagemargin% eingefuegt 26.01.88 (hei)
 \@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
 \else \newpage \fi \thispagestyle{empty}\c@page\z@}
\def\endtitlepage{\if@restonecol\twocolumn \else \newpage \fi}

\arraycolsep 5pt
\tabcolsep 6pt
\arrayrulewidth .4pt
\doublerulesep 2pt
\tabbingsep \labelsep

\skip\@mpfootins = \skip\footins
\fboxsep = 3pt \fboxrule = .4pt

\newcounter{part}
\newcounter {section}
\newcounter {subsection}[section]
\newcounter {subsubsection}[subsection]
\newcounter {paragraph}[subsubsection]
\newcounter {subparagraph}[paragraph]

\def\thepart{\Roman{part}} \def\thesection {\arabic{section}}
\def\thesubsection {\thesection.\arabic{subsection}}
\def\thesubsubsection {\thesubsection .\arabic{subsubsection}}
\def\theparagraph {\thesubsubsection.\arabic{paragraph}}
\def\thesubparagraph {\theparagraph.\arabic{subparagraph}}

\def\@pnumwidth{1.55em}
\def\@tocrmarg {2.55em}
\def\@dotsep{4.5}
\setcounter{tocdepth}{3}

% \tableofcontents <----------
\def\tableofcontents{\section*{\contentsname
\@mkboth{\uppercase{\contentsname}}{\uppercase{\contentsname}}}
\@starttoc{toc}}
\def\contentsname{Contents} % <----------
% \def\tableofcontents{\section*{Contents\@mkboth{CONTENTS}{CONTENTS}}
% \@starttoc{toc}}

\def\l@part#1#2{\addpenalty{\@secpenalty}
 \addvspace{2.25em plus 1pt} \begingroup
 \@tempdima 3em
 \parindent \z@
 \rightskip \@pnumwidth
 \parfillskip -\@pnumwidth
 {\large \bf \leavevmode #1\hfil \hbox to\@pnumwidth{\hss #2}}\par
 \nobreak \endgroup}
\def\l@section#1#2{\addpenalty{\@secpenalty}
 \addvspace{1.0em plus 1pt}
 \@tempdima 1.5em \begingroup
 \parindent \z@ \rightskip \@pnumwidth
 \parfillskip -\@pnumwidth
 \bf \leavevmode #1\hfil \hbox to\@pnumwidth{\hss #2}\par
 \endgroup}
\def\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
\def\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
\def\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
\def\l@subparagraph{\@dottedtocline{5}{10em}{5em}}

% \listoffigures and \listoftables <----------
\def\listoffigures{\section*{\listfigurename\@mkboth
 {\uppercase{\listfigurename}}{%
 \uppercase{\listfigurename}}}\@starttoc{lof}}
\def\listoftables{\section*{\listtablename\@mkboth
 {\uppercase{\listtablename}}{%
 \uppercase{\listtablename}}}\@starttoc{lot}}
\def\listfigurename{List of Figures} % <----------
% \def\listoffigures{\section*{List of Figures\@mkboth
%  {LIST OF FIGURES}{LIST OF FIGURES}}\@starttoc{lof}}
\def\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
\def\listtablename{List of Tables} % <----------
% \def\listoftables{\section*{List of Tables\@mkboth
%  {LIST OF TABLES}{LIST OF TABLES}}\@starttoc{lot}}
\let\l@table\l@figure


% \thebibliography <----------
\def\thebibliography#1{\section*{\refname\@mkboth
 {\uppercase{\refname}}{\uppercase{\refname}}}\list
 {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}%
 \leftmargin\labelwidth
 \advance\leftmargin\labelsep
 \usecounter{enumi}}
 \def\newblock{\hskip .11em plus .33em minus -.07em}
 \addcontentsline{toc}{section}{\refname} % 15.04.88 (hei)
 \sloppy
 \sfcode`\.=1000\relax}
\let\endthebibliography=\endlist
\def\refname{References} % <----------
% \def\thebibliography#1{\section*{References\@mkboth
%  {REFERENCES}{REFERENCES}}\list
%  {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
%  \advance\leftmargin\labelsep
%  \usecounter{enumi}}
%  \def\newblock{\hskip .11em plus .33em minus -.07em}
%  \sloppy
%  \sfcode`\.=1000\relax}
% \let\endthebibliography=\endlist


\newif\if@restonecol
% \theindex <----------
\def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
 \columnseprule \z@
 \columnsep 35pt\twocolumn[\section*{\indexname}]
 \@mkboth{\uppercase{\indexname}}{\uppercase{\indexname}}%
 \thispagestyle{plain}\parindent\z@
 \parskip\z@ plus .3pt\relax\let\item\@idxitem}
\def\indexname{Index} % <----------
% \def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
% \columnseprule \z@
% \columnsep 35pt\twocolumn[\section*{Index}]
%  \@mkboth{INDEX}{INDEX}\thispagestyle{plain}\parindent\z@
%  \parskip\z@ plus .3pt\relax\let\item\@idxitem}

\def\@idxitem{\par\hangindent 40pt}
\def\subitem{\par\hangindent 40pt \hspace*{20pt}}
\def\subsubitem{\par\hangindent 40pt \hspace*{30pt}}
\def\endtheindex{\if@restonecol\onecolumn\else\clearpage\fi}
\def\indexspace{\par \vskip 10pt plus 5pt minus 3pt\relax}

\def\footnoterule{\kern-3\p@
 \hrule width .4\columnwidth
 \kern 2.6\p@}

\long\def\@makefntext#1{\parindent 1em\noindent
 \hbox to 1.8em{\hss$^{\@thefnmark}$}#1}


\setcounter{topnumber}{2}
\def\topfraction{.7}
\setcounter{bottomnumber}{1}
\def\bottomfraction{.3}
\setcounter{totalnumber}{3}
\def\textfraction{.2}
\def\floatpagefraction{.5}
\setcounter{dbltopnumber}{2}
\def\dbltopfraction{.7}
\def\dblfloatpagefraction{.5}

\long\def\@makecaption#1#2{
 \vskip 10pt
 \setbox\@tempboxa\hbox{#1: #2}
 \ifdim \wd\@tempboxa >\hsize \unhbox\@tempboxa\par \else \hbox
to\hsize{\hfil\box\@tempboxa\hfil}
 \fi}


\newcounter{figure}
\def\thefigure{\@arabic\c@figure}
\def\fps@figure{tbp}
\def\ftype@figure{1}
\def\ext@figure{lof}
% \fnum@figure <----------
\def\fnum@figure{\figurename\ \thefigure}
\def\figurename{Figure} % <----------
% \def\fnum@figure{Figure \thefigure}
\def\figure{\@float{figure}}
\let\endfigure\end@float
\@namedef{figure*}{\@dblfloat{figure}}
\@namedef{endfigure*}{\end@dblfloat}
\newcounter{table}
\def\thetable{\@arabic\c@table}
\def\fps@table{tbp}
\def\ftype@table{2}
\def\ext@table{lot}

% \fnum@table <----------
\def\fnum@table{\tablename\ \thetable}
\def\tablename{Table} % <----------
% \def\fnum@table{Table \thetable}
\def\table{\@float{table}}
\let\endtable\end@float
\@namedef{table*}{\@dblfloat{table}}
\@namedef{endtable*}{\end@dblfloat}


\def\maketitle{\par
 \begingroup
 \def\thefootnote{\fnsymbol{footnote}}
 \def\@makefnmark{\hbox
 to 0pt{$^{\@thefnmark}$\hss}}
 \if@twocolumn
 \twocolumn[\@maketitle]
 \else \newpage
 \global\@topnum\z@ \@maketitle \fi\thispagestyle{plain}\@thanks
 \endgroup
 \setcounter{footnote}{0}
 \let\maketitle\relax
 \let\@maketitle\relax
 \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax}
\def\@maketitle{\newpage
 \null
 \vskip 2em \begin{center}
 {\LARGE \@title \par} \vskip 1.5em {\large \lineskip .5em
\begin{tabular}[t]{c}\@author
 \end{tabular}\par}
 \vskip 1em {\large \@date} \end{center}
 \par
 \vskip 1.5em}

% \abstract <----------
\def\abstract{\if@twocolumn
\section*{\abstractname}
\else \small
\begin{center}
{\bf \abstractname\vspace{-.5em}\vspace{0pt}}
\end{center}
\quotation
\fi}
\def\abstractname{Abstract} % <----------
% \def\abstract{\if@twocolumn
% \section*{Abstract}
% \else \small
% \begin{center}
% {\bf Abstract\vspace{-.5em}\vspace{0pt}}
% \end{center}
% \quotation
% \fi}
\def\endabstract{\if@twocolumn\else\endquotation\fi}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                               %
% Generierung des Folien-Layouts                %
%                                               %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def\folie{\clearpage}
\def\endfolie{\clearpage}

\def\@kommentar#1{\gdef\@@kommentar{#1}}
\def\kommentfolien{\@kommentar{yes}}
\def\nurfolien{\@kommentar{}}
\def\titel#1{{\Hufont #1} \vspace{2cm}}
\def\untertitel#1{{\LAfont #1} \vspace{2cm}}
\def\kommentar#1{
   \ifx\@empty\@@kommentar
      \else \input{#1}\fi}

\mark{{}{}}

\if@twoside
\def\ps@headings{\let\@mkboth\markboth
 \def\@oddfoot{}\def\@evenfoot{}%
 \def\@evenhead{\rm \thepage\hfil \sl
 \leftmark}\def\@oddhead{\hbox{}\sl \rightmark \hfil
 \rm\thepage}%
 \def\sectionmark##1{\markboth {\uppercase{\ifnum \c@secnumdepth
 >\z@
 \thesection\hskip 1em\relax \fi ##1}}{}}\def\subsectionmark##1{\markright
 {\ifnum \c@secnumdepth >\@ne
 \thesubsection\hskip 1em\relax \fi ##1}}}
\else
\def\ps@headings{\let\@mkboth\markboth
 \def\@oddfoot{}\def\@evenfoot{}%
 \def\@oddhead{\hbox {}\sl \rightmark \hfil
 \rm\thepage}%
 \def\sectionmark##1{\markright{\uppercase{\ifnum \c@secnumdepth
 >\z@
 \thesection\hskip 1em\relax \fi ##1}}}}
\fi

\def\ps@myheadings{\let\@mkboth\@gobbletwo
 \def\@oddfoot{\hbox{}\footnotesize\fosit\rightmark
               \hfil \fosrm\thepage}
 \def\@oddhead{}
 \def\@evenfoot{\footnotesize\fosrm\thepage\hfil
                \fosit\leftmark\hbox{}}
 \def\@evenhead{}%
 \def\sectionmark##1{}\def\subsectionmark##1{}}


\def\today{\ifcase\month\or
 January\or February\or March\or April\or May\or June\or
 July\or August\or September\or October\or November\or December\fi
 \space\number\day, \number\year}

\ps@myheadings
\pagenumbering{arabic}
\onecolumn
\if@twoside\else\raggedbottom\fi