summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ebsthesis/ebsthesis.cls
blob: 2e119522ff110349a700c1a8249dbfbd63369b77 (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
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
%%
%% This is file `ebsthesis.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% ebsthesis.dtx  (with options: `ebsthesis')
%% 
%% The ebsthesis document class and ebstools package
%% Copyright (c) 2003 Philipp N. Baecker. All right reserved.
%%
%% \CharacterTable
%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%%   Digits        \0\1\2\3\4\5\6\7\8\9
%%   Exclamation   \!     Double quote  \"     Hash (number) \#
%%   Dollar        \$     Percent       \%     Ampersand     \&
%%   Acute accent  \'     Left paren    \(     Right paren   \)
%%   Asterisk      \*     Plus          \+     Comma         \,
%%   Minus         \-     Point         \.     Solidus       \/
%%   Colon         \:     Semicolon     \;     Less than     \<
%%   Equals        \=     Greater than  \>     Question mark \?
%%   Commercial at \@     Left bracket  \[     Backslash     \\
%%   Right bracket \]     Circumflex    \^     Underscore    \_
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%%   Right brace   \}     Tilde         \~}
%%
\NeedsTeXFormat{LaTeX2e}[2001/06/01]
\ProvidesClass{ebsthesis}
              [2003/11/11 v0.9j EBS Thesis Class (PNB)]
\newif\if@singlespacing
\DeclareOption{onehalfspacing}{\@singlespacingfalse}
\DeclareOption{singlespacing}{\@singlespacingtrue}
\newif\if@headrules
\DeclareOption{headrules}{\@headrulestrue}
\DeclareOption{noheadrules}{\@headrulesfalse}
\newif\if@tools
\DeclareOption{tools}{\@toolstrue}
\DeclareOption{notools}{\@toolsfalse}
\newif\if@fancyfoot
\DeclareOption{fancyfoot}{\@fancyfoottrue}
\DeclareOption{nofancyfoot}{\@fancyfootfalse}
\DeclareOption{8pt}{\OptionNotUsed}
\DeclareOption{10pt}{\OptionNotUsed}
\DeclareOption{11pt}{\OptionNotUsed}
\DeclareOption{12pt}{\OptionNotUsed}
\DeclareOption{14pt}{\OptionNotUsed}
\DeclareOption{17pt}{\OptionNotUsed}
\DeclareOption{20pt}{\OptionNotUsed}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{extbook}}
\ExecuteOptions{onehalfspacing,headrules,notools,nomathematica,nofancyfoot}
\ProcessOptions\relax
\LoadClass[9pt]{extbook}[1999/01/07]
%% Modified generic headings and names
\renewcommand{\contentsname}{Table of Contents}
\renewcommand{\figurename}{Fig.}
\renewcommand{\tablename}{Table}
%% New generic headings and names
\newcommand{\abkuerzungsverzeichnisname}{List of Abbreviations}
\newcommand{\geleitwortname}{Foreword}
\newcommand{\inhaltsubersichtname}{Summary of Contents}
\newcommand{\symbolverzeichnisname}{List of Symbols}
\newcommand{\vorwortname}{Preface}
\newcommand{\appendicesname}{Appendices}
\newcommand{\listappendixname}{List of Appendices}
%% Babel support
\AtBeginDocument{%
  \@ifpackageloaded{babel}{%
     \addto\captionsenglish{%
       \renewcommand{\contentsname}{Table of Contents}%
       \renewcommand{\figurename}{Fig.}%
       \renewcommand{\tablename}{Table}%
     }%
     \addto\extrasenglish{%
       \renewcommand{\abkuerzungsverzeichnisname}{List of Abbreviations}%
       \renewcommand{\geleitwortname}{Foreword}%
       \renewcommand{\inhaltsubersichtname}{Summary of Contents}%
       \renewcommand{\symbolverzeichnisname}{List of Symbols}%
       \renewcommand{\vorwortname}{Preface}%
       \renewcommand{\appendicesname}{Appendices}%
       \renewcommand{\listappendixname}{List of Appendices}%
     }
     \addto{\captionsngerman}{%
       \renewcommand{\figurename}{Abb.}%
       \renewcommand{\tablename}{Tab.}%
     }
     \addto{\extrasngerman}{%
       \renewcommand{\abkuerzungsverzeichnisname}{Abk^^fcrzungsverzeichnis}%
       \renewcommand{\geleitwortname}{Geleitwort}%
       \renewcommand{\inhaltsubersichtname}{Inhalts^^fcbersicht}%
       \renewcommand{\symbolverzeichnisname}{Symbolverzeichnis}%
       \renewcommand{\vorwortname}{Vorwort}%
       \renewcommand{\appendicesname}{Anhang}%
       \renewcommand{\listappendixname}{Verzeichnis des Anhangs}%
     }%
   }{\relax}%
 }
%% New paper format and margins
\RequirePackage{geometry}[2002/07/08]
\geometry{%
  a5paper,%
  includeheadfoot,%
  centering,%
  totalwidth=11.5cm,%
  totalheight=18cm}
%% New linespacing
\RequirePackage[nodisplayskipstretch]{setspace}[2000/12/01]
\if@singlespacing
\setstretch{1.1}
\else
\setstretch{1.3}
\fi
%% New figures and tables
\RequirePackage{float}[2001/11/08]
\newcommand\floatc@ebs[2]{\small{\@fs@cfont #1}\enspace#2\par}
\newcommand\fs@ebsbottom{%
  \def\@fs@cfont{\bfseries}
  \let\@fs@capt\floatc@ebs%
  \def\@fs@pre{}%
  \def\@fs@mid{\vspace\abovecaptionskip\relax}%
  \def\@fs@post{}%
  \let\@fs@iftopcapt\iffalse}
\newcommand\fs@ebstop{%
  \def\@fs@cfont{\bfseries}%
  \let\@fs@capt\floatc@ebs%
  \def\@fs@pre{}%
  \def\@fs@mid{\vspace\belowcaptionskip\relax}%
  \def\@fs@post{}%
  \let\@fs@iftopcapt\iftrue}
\floatstyle{ebsbottom}
\restylefloat{figure}
\floatstyle{ebstop}
\restylefloat{table}
\setlength{\belowcaptionskip}{10pt}
%% New footnotes
\RequirePackage[hang,splitrule,stable]{footmisc}[2003/01/27]
\setlength{\footnotemargin}{\parindent}
\renewcommand{\mpfootnoterule}{\relax}
\if@fancyfoot
  \def\@makefntext#1{%
    \ifFN@hangfoot
      \@hangfrom{%
        \ifdim\footnotemargin>0pt
          \hb@xt@\footnotemargin{\hbox{\normalfont\@thefnmark}.\hss}%
        \else
          \@makefnmark
        \fi
      }%
    \else
      \parindent1em
      \noindent
      \ifdim\footnotemargin>0pt
        \hb@xt@ \footnotemargin{\hss\@makefnmark}%
      \else
        \ifdim\footnotemargin=0pt
          \llap{\textsuperscript{\@thefnmark}}%
        \else
          \llap{\hb@xt@ -\footnotemargin{\textsuperscript{\@thefnmark}\hss}}%
        \fi
      \fi
    \fi
    \footnotelayout#1%
  }
\fi
%% New headings
\RequirePackage[nobottomtitles*,%
                newparttoc,%
                clearempty,%
                pagestyles]{titlesec}[2002/04/07]
                \RequirePackage{calc}[1998/07/07]
\titleformat{\part}[display]{%
  \thispagestyle{empty}\normalfont\huge\mdseries}{%
  \bfseries\partname~\thepart}{0pt}{}
\titlespacing*{\part}{%
  0pt}{-\headheight-\headsep}{1.5ex plus .2ex}
\titleformat{\chapter}{%
  \normalfont\Large\bfseries}{%
  \thechapter}{1em}{}
\titlespacing*{\chapter}{%
  0pt}{-\headheight-\headsep}{1.5ex plus .2ex}
\titleformat{\section}{%
  \normalfont\large\bfseries}{%
  \thesection}{1em}{}
\titlespacing*{\section}{%
  0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
\titleformat{\subsection}{%
  \normalfont\normalsize\mdseries\itshape}{%
  \upshape\thesubsection}{1em}{}
\titlespacing*{\subsection}{%
  0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
\titleformat{\subsubsection}{%
  \normalfont\normalsize\mdseries\upshape}{%
  \thesubsubsection}{1em}{}
\titlespacing*{\subsubsection}{%
  0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
\titleformat{\paragraph}{%
  \normalfont\normalsize\mdseries\itshape}{%
  \upshape\theparagraph}{1em}{}
\titlespacing*{\paragraph}{%
  0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
\titleformat{\subparagraph}{%
  \normalfont\normalsize\mdseries\upshape}{%
  \thesubparagraph}{1em}{}
\titlespacing*{\subparagraph}{%
  0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
%% New numbering
\setcounter{secnumdepth}{3}
%% New headers and footers
\renewpagestyle{plain}[\small]{
  \sethead[][][]%
          {}{}{}
  \setfoot[\usepage][][]%
          {}{}{\usepage}
}
\if@headrules
\newlength{\headrulewidth}
\setlength{\headrulewidth}{0.05em}
\fi
\newpagestyle{ebs}[\small]{
  \if@headrules
  \headrule
  \setheadrule{\headrulewidth}
  \fi
  \sethead[\usepage][][\ifthechapter{\thechapter\quad}{}\textit{\chaptertitle}]%
          {\ifthesection{\thesection\quad}{}\textit{\sectiontitle}}{}{\usepage}
  \setfoot[][][]%
          {}{}{}
}
\pagestyle{ebs}
\RequirePackage{titletoc}[2002/03/27]
%% New part TOC entry
\titlecontents{part}[0pt]{%
  \addvspace{10pt}\filright}{%
  \textbf{\partname\space\thecontentslabel:\enspace}}{}{}
%% Appendix
\newcommand{\listofappendices}{%
  \section*{\listappendixname\sectionmark{\listappendixname}}
  \printcontents[appendix]{1}{1}{\setcounter{tocdepth}{3}}
}
\renewcommand{\appendix}{%
  \ClassWarningNoLine{ebsthesis}{%
    Use \noexpand\appendices to start the appendix}
  \appendices}
\newcommand{\appendices}{%
  \ttl@toclabelfalse
  \ttl@setifthe{chapter}
  \setcounter{chapter}{0}
  \setcounter{section}{0}
  \renewcommand{\chaptername}{\appendixname}
  \renewcommand{\thesection}{\Alph{section}}
  \chapter*{\appendicesname\chaptermark{\appendicesname}}
  \addcontentsline{toc}{chapter}{\appendicesname}
  \titleformat{\section}{%
    \normalfont\large\bfseries}{%
    \chaptertitlename~\thesection}{1em}{}
  \stopcontents[main]
  \startcontents[appendix]
}
%% New titlepage
\newcommand{\thegrad}{Doctor rerum politicarum}
\newcommand{\grad}[1]{%
  \renewcommand{\thegrad}{#1}}
\newcommand{\thetitel}{%
  \ClassWarningNoLine{ebsthesis}{%
    Kein \noexpand\titel angegeben}}
\newcommand{\titel}[1]{%
  \renewcommand{\thetitel}{#1}}
\newcommand{\theuntertitel}{}
\newcommand{\untertitel}[1]{%
  \renewcommand{\theuntertitel}{#1}}
\newcommand{\thefachbereich}{Betriebswirtschaftslehre}
\newcommand{\fachbereich}[1]{%
  \renewcommand{\thefachbereich}{#1}}
\newcommand{\thehochschule}{%
  European Business School}
\newcommand{\hochschule}[1]{%
  \renewcommand{\thehochschule}{#1}}
\newcommand{\thename}{%
  \ClassWarningNoLine{ebsthesis}{%
    Kein \noexpand\name angegeben}}
\newcommand{\name}[1]{%
  \renewcommand{\thename}{#1}}
\newcommand{\thegeburtsort}{%
  \ClassWarningNoLine{ebsthesis}{%
    Kein \noexpand\geburtsort angegeben}}
\newcommand{\geburtsort}[1]{%
  \renewcommand{\thegeburtsort}{#1}}
\newcommand{\thereferenten}{%
  \ClassWarningNoLine{ebsthesis}{%
    Keine \noexpand\referenten angegeben}}
\newcommand{\referenten}[1]{%
  \renewcommand{\thereferenten}{#1}}
\newcommand{\theeinreichungstermin}{%
  \ClassWarningNoLine{ebsthesis}{%
    Kein \noexpand\einreichungstermin angegeben}}
\newcommand{\einreichungstermin}[1]{%
  \renewcommand{\theeinreichungstermin}{#1}}
\newcommand{\thepruefungstermin}{%
  \ClassWarningNoLine{ebsthesis}{%
    Kein \noexpand\pruefungstermin angegeben}}
\newcommand{\pruefungstermin}[1]{%
  \renewcommand{\thepruefungstermin}{#1}}
\newcommand{\theerscheinungsort}{Wiesbaden}
\newcommand{\erscheinungsort}[1]{%
  \renewcommand{\theerscheinungsort}{#1}}
\newcommand{\theerscheinungsjahr}{%
  \ClassWarningNoLine{ebsthesis}{%
    Kein \noexpand\erscheinungsjahr angegeben}}
\newcommand{\erscheinungsjahr}[1]{%
  \renewcommand{\theerscheinungsjahr}{#1}}
\newcommand{\thehochschulkennziffer}{154}
\newcommand{\hochschulkennziffer}[1]{%
  \renewcommand{\thehochschulkennziffer}{#1}}
\RequirePackage{array}[1998/05/13]
\renewcommand{\maketitle}{%
  \renewcommand{\and}{\tabularnewline &}
  \begin{titlepage}
    \begin{singlespacing}
      \begin{center}
        {\Large\bfseries Dissertation}\\
        zur Erlangung des akademischen Grades\\
        \thegrad\par
        \vspace{\stretch{1}}
        {\huge\bfseries\thetitel\par\mdseries\theuntertitel\par}
        \vspace{\stretch{1.618033988}}
        \begin{tabular}{@{}>{\bfseries}ll@{}}
          Fachbereich:&\thefachbereich\tabularnewline
          Hochschule:&\thehochschule\tabularnewline
          Name:&\thename\tabularnewline
          Geburtsort:&\thegeburtsort\tabularnewline
          Referenten:&\thereferenten\tabularnewline
          Einreichungstermin:&\theeinreichungstermin\tabularnewline
          Pr^^fcfungstermin:&\thepruefungstermin\tabularnewline
          Erscheinungsort:&\theerscheinungsort\tabularnewline
          Erscheinungsjahr:&\theerscheinungsjahr\tabularnewline
          Hochschulkennziffer:&\thehochschulkennziffer\tabularnewline
        \end{tabular}
      \end{center}
    \end{singlespacing}
  \end{titlepage}
  \startcontents[main]
}
%% Summary and table of contents
\newcommand{\inhaltsuebersicht}{%
  \chapter*{\inhaltsubersichtname\chaptermark{\inhaltsubersichtname}}
  \printcontents[main]{0}{-1}{\setcounter{tocdepth}{1}}
}
\renewcommand{\tableofcontents}{%
  \chapter*{\contentsname\chaptermark{\contentsname}}
  \printcontents[main]{0}{-1}{\setcounter{tocdepth}{3}}
}
%% Page composition
\setcounter{topnumber}{3}
\setcounter{bottomnumber}{2}
\setcounter{totalnumber}{4}
\renewcommand{\topfraction}{0.85}
\renewcommand{\bottomfraction}{0.5}
\renewcommand{\textfraction}{0.15}
\renewcommand{\floatpagefraction}{0.7}
\interfootnotelinepenalty=10000
\clubpenalty=10000
\widowpenalty=10000
\displaywidowpenalty=10000
\renewcommand{\frontmatter}{%
  \cleardoublepage
  \@mainmatterfalse
  \pagenumbering{Roman}
}
\RequirePackage[nottoc]{tocbibind}[2003/02/04]
%% Preface and Foreword
\newcommand{\geleitwort}{%
  \chapter*{\geleitwortname\chaptermark{\geleitwortname}}
}
\newcommand{\vorwort}{%
  \chapter*{\vorwortname\chaptermark{\vorwortname}}
}
%% List of Symbols
\RequirePackage{nomencl}[2000/12/03]
\RequirePackage{mdwlist}[1996/05/02]
\newcommand{\symbolverzeichnis}{\printglossary}
\renewcommand{\nomname}{\symbolverzeichnisname}
\newlength{\glossindent}
\setlength{\glossindent}{3em}
\def\theglossary{%
  \chapter*{\nomname\chaptermark{\nomname}}
  \addcontentsline{toc}{chapter}{\nomname}
  \nompreamble
  \addvspace{10pt}
  \begin{basedescript}{%
      \desclabelwidth{\glossindent}
      \desclabelstyle{\nextlinelabel}
      \renewcommand{\makelabel}[1]{##1}
      \parskip\z@\itemsep\z@
    }
}
\def\endtheglossary{%
  \end{basedescript}
  \nompostamble
}
\makeglossary
%% List of Abbreviations
\newcommand{\abkuerzungsverzeichnis}{%
  \chapter*{\abkuerzungsverzeichnisname\chaptermark{%
      \abkuerzungsverzeichnisname}}
  \addcontentsline{toc}{chapter}{\abkuerzungsverzeichnisname}
  \addvspace{10pt}%
}
\RequirePackage{acronym}[2000/05/21]
\newlength{\acroindent}
\setlength{\acroindent}{6em}
\renewenvironment{acronym}{%
  \begin{basedescript}{%
      \desclabelwidth{\acroindent}
      \desclabelstyle{\nextlinelabel}
      \renewcommand{\makelabel}[1]{##1}
      \parskip\z@\itemsep\z@
    }
    \providecommand*{\acro}[1]{\AC@dblargafter{##1}\AC@acro}%
  }{%
  \end{basedescript}%
}
%% Advanced mathematics functions and equation alignment
\RequirePackage[leqno,centertags]{amsmath}[2000/07/18]
\if@tools
\RequirePackage{ebstools}[2003/11/11]
\fi
\endinput
%%
%% End of file `ebsthesis.cls'.