|
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
2 % Masters/Doctoral Thesis |
|
3 % Class File |
|
4 % Version 1.6 (27/8/17) |
|
5 % |
|
6 % This class was downloaded from: |
|
7 % http://www.LaTeXTemplates.com |
|
8 % |
|
9 % Authors: |
|
10 % Vel (vel@latextemplates.com) |
|
11 % Johannes Böttcher |
|
12 % |
|
13 % Notes: |
|
14 % 1) This class file defines the structure and layout of the template file (main.tex). |
|
15 % 2) It has been written in such a way that under most circumstances you should not need |
|
16 % to edit it; updating it to a newer version will be harder. If you do make changes, please change the name of |
|
17 % the file and add comments to make your changes more visible. |
|
18 % |
|
19 % Class license: |
|
20 % LPPL v1.3c (http://www.latex-project.org/lppl) |
|
21 % |
|
22 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
23 |
|
24 %---------------------------------------------------------------------------------------- |
|
25 % CLASS DEFINITION AND PARAMETERS |
|
26 %---------------------------------------------------------------------------------------- |
|
27 |
|
28 \NeedsTeXFormat{LaTeX2e}[1996/12/01] |
|
29 \newcommand{\classname}{MastersDoctoralThesis} |
|
30 \ProvidesClass{\classname}[2017/08/27 v1.6 LaTeXTemplates.com] |
|
31 \providecommand{\baseclass}{book} |
|
32 \RequirePackage{etoolbox} |
|
33 \RequirePackage{xparse} |
|
34 \newbool{nolistspace} |
|
35 \newbool{chapteroneline} |
|
36 \newbool{listtoc} |
|
37 \newbool{toctoc} |
|
38 \newbool{parskip} |
|
39 \newbool{hyperrefsupport} |
|
40 \booltrue{hyperrefsupport} |
|
41 \newbool{headsepline} |
|
42 \newbool{consistentlayout} |
|
43 |
|
44 \DeclareOption{nohyperref}{\boolfalse{hyperrefsupport}} |
|
45 \DeclareOption{nolistspacing}{\booltrue{nolistspace}} |
|
46 \DeclareOption{liststotoc}{\booltrue{listtoc}} |
|
47 \DeclareOption{chapterinoneline}{\booltrue{chapteroneline}} |
|
48 \DeclareOption{toctotoc}{\booltrue{toctoc}} |
|
49 \DeclareOption{parskip}{\booltrue{parskip}} |
|
50 \DeclareOption{headsepline}{\booltrue{headsepline}} |
|
51 \DeclareOption{consistentlayout}{\booltrue{consistentlayout}} |
|
52 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{\baseclass}} |
|
53 |
|
54 \ProcessOptions\relax |
|
55 |
|
56 \LoadClass{\baseclass} |
|
57 |
|
58 % Simple interface for the user to customize the chapter titles |
|
59 \ProvideDocumentCommand{\abovechapterskip}{}{\vspace*{20pt}} |
|
60 \ProvideDocumentCommand{\chapterbelowskip}{}{\vspace*{40pt}} |
|
61 \ProvideDocumentCommand{\chapterinbetweenskip}{}{\vspace*{20pt}} |
|
62 \ProvideDocumentCommand{\autodot}{}{} |
|
63 \ProvideDocumentCommand{\mdtChapapp}{}{} |
|
64 \ProvideDocumentCommand{\chapteralign}{}{\raggedright} |
|
65 \ProvideDocumentCommand{\chapterfont}{}{\Huge\bfseries} |
|
66 \ProvideDocumentCommand{\chapterprefixfont}{}{\LARGE\bfseries} |
|
67 \DeclareDocumentCommand{\@makechapterhead}{ m }{% |
|
68 \abovechapterskip |
|
69 {\parindent \z@ \chapteralign \normalfont |
|
70 \ifnum \c@secnumdepth >\m@ne |
|
71 \if@mainmatter |
|
72 \ifbool{chapteroneline}{% |
|
73 \chapterfont \mdtChapapp\thechapter\autodot\enspace |
|
74 }{% |
|
75 \chapterprefixfont \@chapapp\space \thechapter |
|
76 \par\nobreak |
|
77 \chapterinbetweenskip |
|
78 }% |
|
79 \fi |
|
80 \fi |
|
81 \interlinepenalty\@M% |
|
82 \chapterfont #1\par\nobreak |
|
83 \chapterbelowskip |
|
84 } |
|
85 \thispagestyle{\chapter@p@gestyle} |
|
86 } |
|
87 \def\@makeschapterhead#1{% |
|
88 \abovechapterskip |
|
89 {\parindent \z@ \chapteralign |
|
90 \normalfont |
|
91 \interlinepenalty\@M |
|
92 \chapterfont #1\par\nobreak |
|
93 \chapterbelowskip |
|
94 } |
|
95 \thispagestyle{\chapter@p@gestyle} |
|
96 } |
|
97 |
|
98 |
|
99 % Addchap provides unnumbered chapters with an entry in the table of contents as well as an updated header |
|
100 \ProvideDocumentCommand{\addchap}{ s o m }{% |
|
101 \chapter*{#3}% |
|
102 \markboth{}{}% |
|
103 \IfBooleanTF{#1}{% |
|
104 }{% |
|
105 \IfNoValueTF{#2}{% |
|
106 \addchaptertocentry{#3}% |
|
107 \markboth{\MakeMarkcase{#3}}{\MakeMarkcase{#3}}% |
|
108 }{% |
|
109 \addchaptertocentry{#2}% |
|
110 \markboth{\MakeMarkcase{#2}}{\MakeMarkcase{#2}}% |
|
111 }% |
|
112 }% |
|
113 }% |
|
114 |
|
115 \ProvideDocumentCommand{\addsec}{ s o m }{% |
|
116 \section*{#3}% |
|
117 \markright{}% |
|
118 \IfBooleanTF{#1}{% |
|
119 }{% |
|
120 \IfNoValueTF{#2}{% |
|
121 \addcontentsline{toc}{section}{#3}% |
|
122 \markright{\MakeMarkcase{#3}}%% |
|
123 }{% |
|
124 \addcontentsline{toc}{section}{#2}% |
|
125 \markright{\MakeMarkcase{#2}}% |
|
126 }% |
|
127 }% |
|
128 }% |
|
129 |
|
130 %---------------------------------------------------------------------------------------- |
|
131 % CLASS OPTIONS |
|
132 %---------------------------------------------------------------------------------------- |
|
133 |
|
134 \ifbool{parskip}{\RequirePackage{parskip}} % If the parskip option is passed to the class, require the parskip package |
|
135 |
|
136 |
|
137 \ifbool{listtoc}{% If the liststotoc option has been passed to the class, add the lists to the table of contents |
|
138 \patchcmd{\listoftables}{\@starttoc{lot}}{% |
|
139 \addchaptertocentry{\listtablename}\@starttoc{lot}% |
|
140 }{}{}% |
|
141 \patchcmd{\listoffigures}{\@starttoc{lof}}{% |
|
142 \addchaptertocentry{\listfigurename}\@starttoc{lof}% |
|
143 }{}{}% |
|
144 } |
|
145 |
|
146 \ifbool{toctoc}{% If the toctotoc options has been passed to the class, add the table of contents to the table of contents |
|
147 \patchcmd{\tableofcontents}{\@starttoc{toc}% |
|
148 }{% |
|
149 \addchaptertocentry{\contentsname}\@starttoc{toc}}{}{}% |
|
150 } |
|
151 |
|
152 \patchcmd{\tableofcontents}{\MakeUppercase}{\MakeMarkcase}{}{} |
|
153 \patchcmd{\tableofcontents}{\MakeUppercase}{\MakeMarkcase}{}{} |
|
154 \patchcmd{\listoffigures}{\MakeUppercase}{\MakeMarkcase}{}{} |
|
155 \patchcmd{\listoffigures}{\MakeUppercase}{\MakeMarkcase}{}{} |
|
156 \patchcmd{\listoftables}{\MakeUppercase}{\MakeMarkcase}{}{} |
|
157 \patchcmd{\listoftables}{\MakeUppercase}{\MakeMarkcase}{}{} |
|
158 |
|
159 % If the option `nolistspacing' is given, the spacing in the different lists is reduced to single spacing. This option is only useful, if the spacing of the document has been changed to onehalfspacing or doublespacing. |
|
160 \ifbool{nolistspace}{ |
|
161 \patchcmd{\listoffigures}{% |
|
162 \@starttoc{lof} |
|
163 }{% |
|
164 \begingroup% |
|
165 \singlespace\@starttoc{lof}\endgroup% |
|
166 }{}{}% |
|
167 \patchcmd{\listoftables}{% |
|
168 \@starttoc{lot} |
|
169 }{% |
|
170 \begingroup% |
|
171 \singlespace\@starttoc{lot}\endgroup% |
|
172 }{}{}% |
|
173 \patchcmd{\tableofcontents}{% |
|
174 \@starttoc{toc} |
|
175 }{% |
|
176 \begingroup% |
|
177 \singlespace\@starttoc{toc}\endgroup% |
|
178 }{}{}% |
|
179 }{} |
|
180 |
|
181 |
|
182 %---------------------------------------------------------------------------------------- |
|
183 % REQUIRED PACKAGES |
|
184 %---------------------------------------------------------------------------------------- |
|
185 |
|
186 \RequirePackage{babel} % Required for automatically changing names of document elements to languages besides english |
|
187 |
|
188 \RequirePackage{scrbase} % Required for handling language-dependent names of sections/document elements |
|
189 |
|
190 \RequirePackage{scrhack} % Loads fixes for various packages |
|
191 |
|
192 \RequirePackage{setspace} % Required for changing line spacing |
|
193 |
|
194 \RequirePackage{longtable} % Required for tables that span multiple pages (used in the symbols, abbreviations and physical constants pages) |
|
195 |
|
196 \RequirePackage{siunitx} % Required for \SI commands |
|
197 |
|
198 \RequirePackage{graphicx} % Required to include images |
|
199 \graphicspath{{Figures/}{./}} % Specifies where to look for included images |
|
200 |
|
201 \RequirePackage{booktabs} % Required for better table rules |
|
202 |
|
203 \RequirePackage{caption} % Required for customising the captions |
|
204 \captionsetup{justification=centerlast,font=small,labelfont=sc,margin=50pt} |
|
205 |
|
206 %---------------------------------------------------------------------------------------- |
|
207 % DEFINE CUSTOM THESIS INFORMATION COMMANDS |
|
208 %---------------------------------------------------------------------------------------- |
|
209 |
|
210 \NewDocumentCommand{\thesistitle} { o m }{% |
|
211 \IfValueTF{#1}{\def\shorttitle{#1}}{\def\shorttitle{#2}}% |
|
212 \def\@title{#2}% |
|
213 \def\ttitle{#2}% |
|
214 } |
|
215 \DeclareDocumentCommand{\author}{m}{\newcommand{\authorname}{#1}\renewcommand{\@author}{#1}} |
|
216 \NewDocumentCommand{\supervisor}{m}{\newcommand{\supname}{#1}} |
|
217 \NewDocumentCommand{\examiner}{m}{\newcommand{\examname}{#1}} |
|
218 \NewDocumentCommand{\degree}{m}{\newcommand{\degreename}{#1}} |
|
219 \NewDocumentCommand{\addresses}{m}{\newcommand{\addressname}{#1}} |
|
220 \NewDocumentCommand{\university}{m}{\newcommand{\univname}{#1}} |
|
221 \NewDocumentCommand{\department}{m}{\newcommand{\deptname}{#1}} |
|
222 \NewDocumentCommand{\group}{m}{\newcommand{\groupname}{#1}} |
|
223 \NewDocumentCommand{\faculty}{m}{\newcommand{\facname}{#1}} |
|
224 \NewDocumentCommand{\subject}{m}{\newcommand{\subjectname}{#1}} |
|
225 \NewDocumentCommand{\keywords}{m}{\newcommand{\keywordnames}{#1}} |
|
226 |
|
227 \newcommand{\checktoopen}{% New command to move content to the next page which prints to the next odd page if twosided mode is active |
|
228 \if@openright\cleardoublepage\else\clearpage\fi |
|
229 \ifdef{\phantomsection}{\phantomsection}{}% The \phantomsection command is necessary for hyperref to jump to the correct page |
|
230 } |
|
231 |
|
232 \NewDocumentCommand{\bhrule}{}{\typeout{--------------------}} |
|
233 \NewDocumentCommand{\tttypeout}{m}{\bhrule\typeout{\space #1}\bhrule} |
|
234 |
|
235 \newcommand{\HRule}{\rule{.9\linewidth}{.6pt}} % New command to make the lines in the title page |
|
236 \newcommand{\decoRule}{\rule{.8\textwidth}{.4pt}} % New command for a rule to be used under figures |
|
237 |
|
238 \setcounter{tocdepth}{3} % The depth to which the document sections are printed to the table of contents |
|
239 \ProvideDocumentCommand{\addchaptertocentry}{ m }{% |
|
240 \addcontentsline{toc}{chapter}{#1}% |
|
241 } |
|
242 |
|
243 %---------------------------------------------------------------------------------------- |
|
244 % COLOURS |
|
245 %---------------------------------------------------------------------------------------- |
|
246 |
|
247 \usepackage{xcolor} % Required for specifying custom colours |
|
248 |
|
249 \colorlet{mdtRed}{red!50!black} |
|
250 |
|
251 %---------------------------------------------------------------------------------------- |
|
252 % MARGINS |
|
253 %---------------------------------------------------------------------------------------- |
|
254 |
|
255 \RequirePackage{geometry} |
|
256 \geometry{ |
|
257 headheight=4ex, |
|
258 includehead, |
|
259 includefoot |
|
260 } |
|
261 |
|
262 \raggedbottom |
|
263 |
|
264 %---------------------------------------------------------------------------------------- |
|
265 % PENALTIES |
|
266 %---------------------------------------------------------------------------------------- |
|
267 |
|
268 \doublehyphendemerits=10000 % No consecutive line hyphens |
|
269 \brokenpenalty=10000 % No broken words across columns/pages |
|
270 \widowpenalty=9999 % Almost no widows at bottom of page |
|
271 \clubpenalty=9999 % Almost no orphans at top of page |
|
272 \interfootnotelinepenalty=9999 % Almost never break footnotes |
|
273 |
|
274 %---------------------------------------------------------------------------------------- |
|
275 % HEADERS AND FOOTERS |
|
276 %---------------------------------------------------------------------------------------- |
|
277 |
|
278 \RequirePackage[markcase=used]{scrlayer-scrpage} |
|
279 \providepairofpagestyles{thesisSimple}{% |
|
280 \clearpairofpagestyles% |
|
281 \automark[chapter]{chapter} |
|
282 \ihead{\headmark}% Inner header |
|
283 \ohead[\pagemark]{\pagemark}% Outer header |
|
284 } |
|
285 \ifoot{}% Inner footer |
|
286 \ofoot{}% Outer footer |
|
287 \pagestyle{thesisSimple} |
|
288 \providepairofpagestyles[thesisSimple]{thesis}{% |
|
289 \automark*[section]{}% |
|
290 } |
|
291 \providepairofpagestyles[thesisSimple]{review}{% |
|
292 \ofoot[\shorttitle/\authorname]{\shorttitle/\authorname} |
|
293 \ifoot[\today]{\today} |
|
294 } |
|
295 \pagestyle{thesis} |
|
296 \ifbool{headsepline}{\KOMAoption{headsepline}{true}}{} |
|
297 \PreventPackageFromLoading[\ClassError{\classname}{Package `fancyhdr' is |
|
298 incompatible\MessageBreak with this class}{The pagesyles are defined |
|
299 using package `scrlayer-scrpage', please consult the\MessageBreak |
|
300 KOMA-script documentation for details.}]{fancyhdr} |
|
301 |
|
302 |
|
303 \newcommand{\blank@p@gestyle}{empty} |
|
304 \newcommand{\chapter@p@gestyle}{plain} |
|
305 \NewDocumentCommand{\blankpagestyle}{ m }{% |
|
306 \ClassWarning{\classname}{\string\blankpagestyle\space is |
|
307 obsolete,\MessageBreak use \string\setblankpagestyle \space instead}\renewcommand{\blank@p@gestyle}{}{#1} |
|
308 } |
|
309 \NewDocumentCommand{\setblankpagestyle}{ m }{\renewcommand{\blank@p@gestyle}{#1}} |
|
310 \NewDocumentCommand{\setchapterpagestyle}{ m }{\renewcommand{\chapter@p@gestyle}{#1}} |
|
311 |
|
312 \DeclareDocumentCommand\cleardoublepage{}{\clearpage\if@twoside \ifodd\c@page\else |
|
313 \hbox{} |
|
314 \thispagestyle{\blank@p@gestyle} |
|
315 \newpage |
|
316 \if@twocolumn\hbox{}\newpage\fi\fi\fi% |
|
317 } |
|
318 |
|
319 %---------------------------------------------------------------------------------------- |
|
320 % ABBREVIATIONS PAGE DESIGN |
|
321 %---------------------------------------------------------------------------------------- |
|
322 |
|
323 \newcommand{\abbrevname}{List of Abbreviations} |
|
324 \providecaptionname{english,british,american}{\abbrevname}{List of Abbreviations} |
|
325 \providecaptionname{ngerman,german,austrian,naustrian}{\abbrevname}{Abk\"urzungsverzeichnis} |
|
326 \NewDocumentEnvironment{abbreviations}{ m }{% |
|
327 \ifbool{nolistspace}{\begingroup\singlespacing}{} |
|
328 \ifbool{listtoc}{\addchap{\abbrevname}}{\addchap*{\abbrevname}} |
|
329 \begin{longtable}{#1} |
|
330 }{% |
|
331 \end{longtable} |
|
332 \addtocounter{table}{-1}% Don't count this table as one of the document tables |
|
333 \ifbool{nolistspace}{\endgroup}{} |
|
334 } |
|
335 |
|
336 %---------------------------------------------------------------------------------------- |
|
337 % ABSTRACT PAGE DESIGN |
|
338 %---------------------------------------------------------------------------------------- |
|
339 |
|
340 \DeclareDocumentCommand{\abstractauthorfont}{}{} |
|
341 \DeclareDocumentCommand{\abstracttitlefont}{}{} |
|
342 \newcommand{\byname}{by} |
|
343 \newcommand{\abstractname}{Abstract} |
|
344 \providecaptionname{german,ngerman,austrian,naustrian}{\byname}{von} |
|
345 \providecaptionname{american,australian,british,canadian,english,newzealand,UKenglish,USenglish}{\byname}{by} |
|
346 \ifbool{consistentlayout}{ |
|
347 \DeclareDocumentEnvironment{abstract}{ O{} }{% |
|
348 \addchap*{\abstractname}% |
|
349 {\chapteralign\normalsize\abstractauthorfont \authorname \par}% Author name |
|
350 \vspace{\baselineskip} |
|
351 {\chapteralign\parbox{.7\linewidth}{\chapteralign\normalsize\itshape\abstracttitlefont\@title}\par}% Thesis title |
|
352 \bigskip\noindent\ignorespaces |
|
353 }% |
|
354 {}%end alt-abstract |
|
355 }{% |
|
356 \DeclareDocumentEnvironment{abstract}{ O{\null\vfill} }{ |
|
357 \checktoopen |
|
358 \tttypeout{\abstractname} |
|
359 #1%added to be able to have abstract more than one page long |
|
360 \thispagestyle{plain} |
|
361 \begin{center} |
|
362 {\normalsize \MakeUppercase{\univname} \par}% University name in capitals |
|
363 \bigskip |
|
364 {\huge\textit{\abstractname} \par} |
|
365 \bigskip |
|
366 {\normalsize \facname \par}% Faculty name |
|
367 {\normalsize \deptname \par}% Department name |
|
368 \bigskip |
|
369 {\normalsize \degreename\par}% Degree name |
|
370 \bigskip |
|
371 {\normalsize\bfseries \@title \par}% Thesis title |
|
372 \medskip |
|
373 {\normalsize \byname{} \authorname \par}% Author name |
|
374 \bigskip |
|
375 \end{center} |
|
376 } |
|
377 { |
|
378 \vfill\null |
|
379 } |
|
380 } |
|
381 |
|
382 \DeclareDocumentEnvironment{extraAbstract}{ O{\null\vfill} }{ |
|
383 \checktoopen |
|
384 \tttypeout{\abstractname} |
|
385 #1%added to be able to have abstract more than one page long |
|
386 \thispagestyle{empty} |
|
387 \begin{center} |
|
388 {\normalsize \MakeUppercase{\univname} \par}% University name in capitals |
|
389 \bigskip |
|
390 {\huge\textit{\abstractname} \par} |
|
391 \bigskip |
|
392 {\normalsize \facname \par}% Faculty name |
|
393 {\normalsize \deptname \par}% Department name |
|
394 \bigskip |
|
395 {\normalsize \degreename\par}% Degree name |
|
396 \bigskip |
|
397 {\normalsize\bfseries \@title \par}% Thesis title |
|
398 \medskip |
|
399 {\normalsize \byname{} \authorname \par}% Author name |
|
400 \bigskip |
|
401 \end{center} |
|
402 } |
|
403 { |
|
404 \vfill\null |
|
405 } |
|
406 |
|
407 %---------------------------------------------------------------------------------------- |
|
408 % ACKNOWLEDGEMENTS PAGE DESIGN |
|
409 %---------------------------------------------------------------------------------------- |
|
410 |
|
411 \usepackage{xcolor} |
|
412 \colorlet{mdtRed}{red!50!black} |
|
413 \newcommand{\acknowledgementname}{Acknowledgements} |
|
414 \providecaptionname{american,australian,british,canadian,english,newzealand,UKenglish,USenglish} {\acknowledgementname}{Acknowledgements} % Acknowledgement text for English countries |
|
415 \providecaptionname{german,ngerman,austrian,naustrian}{\acknowledgementname}{Danksagung} % Acknowledgement text for Germanic countries |
|
416 |
|
417 \ifbool{consistentlayout}{ |
|
418 \DeclareDocumentEnvironment{acknowledgements}{}{% |
|
419 \tttypeout{\acknowledgementname} |
|
420 \addchap*{\acknowledgementname} |
|
421 } |
|
422 } |
|
423 { |
|
424 \DeclareDocumentEnvironment{acknowledgements}{}{% |
|
425 \checktoopen |
|
426 \tttypeout{\acknowledgementname} |
|
427 \thispagestyle{plain} |
|
428 \begin{center}{\huge\textit{\acknowledgementname}\par}\end{center} |
|
429 } |
|
430 { |
|
431 \vfil\vfil\null |
|
432 } |
|
433 } |
|
434 |
|
435 %---------------------------------------------------------------------------------------- |
|
436 % DECLARATION PAGE DESIGN |
|
437 %---------------------------------------------------------------------------------------- |
|
438 |
|
439 \newcommand{\authorshipname}{Declaration of Authorship} |
|
440 \providecaptionname{american,australian,british,canadian,english,newzealand,UKenglish,USenglish}{\authorshipname}{Declaration of Authorship} % Declaration of Authorship text for English countries |
|
441 \providecaptionname{german,ngerman,austrian,naustrian}{\authorshipname}{Eidesstattliche Erkl\"arung} % Declaration of Authorship text for Germanic countries |
|
442 |
|
443 \ifbool{consistentlayout}{ |
|
444 \DeclareDocumentEnvironment{declaration}{}{ |
|
445 \addchap*{\authorshipname} |
|
446 }{}% |
|
447 }{ |
|
448 \DeclareDocumentEnvironment{declaration}{}{ |
|
449 \checktoopen |
|
450 \tttypeout{\authorshipname} |
|
451 \thispagestyle{plain} |
|
452 \null\vfil |
|
453 {\noindent\huge\bfseries\authorshipname\par\vspace{10pt}} |
|
454 }{} |
|
455 } |
|
456 |
|
457 %---------------------------------------------------------------------------------------- |
|
458 % DEDICATION PAGE DESIGN |
|
459 %---------------------------------------------------------------------------------------- |
|
460 |
|
461 \ifbool{consistentlayout}{ |
|
462 \DeclareDocumentCommand{\dedicatory}{ |
|
463 m O{\vspace*{.7\textheight} } }{ |
|
464 \checktoopen\tttypeout{Dedicatory} |
|
465 \markboth{}{} |
|
466 #2 |
|
467 {\hfill\parbox{.4\textwidth}{\flushright#1\par}} |
|
468 } |
|
469 }{ |
|
470 \newcommand\dedicatory[1]{ |
|
471 \checktoopen |
|
472 \tttypeout{Dedicatory} |
|
473 \null\vfil |
|
474 \thispagestyle{plain} |
|
475 \begin{center}{\Large\slshape #1}\end{center} |
|
476 \vfil\null |
|
477 } |
|
478 } |
|
479 |
|
480 |
|
481 %---------------------------------------------------------------------------------------- |
|
482 % PHYSICAL CONSTANTS PAGE DESIGN |
|
483 %---------------------------------------------------------------------------------------- |
|
484 |
|
485 \newcommand{\constantsname}{Physical Constants} |
|
486 \providecaptionname{english,british,american}{\constantsname}{Physical Constants} |
|
487 \providecaptionname{ngerman,german,austrian,naustrian}{\constantsname}{Physikalische Konstanten} |
|
488 |
|
489 \NewDocumentEnvironment{constants}{ m }{% |
|
490 \ifbool{nolistspace}{\begingroup\singlespacing}{} |
|
491 \ifbool{listtoc}{\addchap{\constantsname}}{\addchap*{\constantsname}} |
|
492 \begin{longtable}{#1} |
|
493 }{% |
|
494 \end{longtable} |
|
495 \addtocounter{table}{-1}% Don't count this table as one of the document tables |
|
496 \ifbool{nolistspace}{\endgroup}{} |
|
497 } |
|
498 |
|
499 %---------------------------------------------------------------------------------------- |
|
500 % SYMBOLS PAGE DESIGN |
|
501 %---------------------------------------------------------------------------------------- |
|
502 |
|
503 \newcommand{\symbolsname}{List of Symbols} |
|
504 \providecaptionname{english,british,american}{\symbolsname}{List of Symbols} |
|
505 \providecaptionname{ngerman,german,austrian,naustrian}{\symbolsname}{Symbolverzeichnis} |
|
506 |
|
507 \NewDocumentEnvironment{symbols}{ m }{% |
|
508 \ifbool{nolistspace}{\begingroup\singlespacing}{} |
|
509 \ifbool{listtoc}{\addchap{\symbolsname}}{\addchap*{\symbolsname}} |
|
510 \begin{longtable}{#1} |
|
511 }{% |
|
512 \end{longtable} |
|
513 \addtocounter{table}{-1}% Don't count this table as one of the document tables |
|
514 \ifbool{nolistspace}{\endgroup}{} |
|
515 } |
|
516 |
|
517 %---------------------------------------------------------------------------------------- |
|
518 |
|
519 \ifbool{hyperrefsupport}{% If the nohyperref class option has not been specified |
|
520 \AtEndPreamble{\RequirePackage{hyperref} |
|
521 \hypersetup{pdfpagemode={UseOutlines}, |
|
522 bookmarksopen=true, |
|
523 bookmarksopenlevel=0, |
|
524 hypertexnames=false, |
|
525 colorlinks=true,% Set to false to disable coloring links |
|
526 citecolor=magenta,% The color of citations |
|
527 linkcolor=red,% The color of references to document elements (sections, figures, etc) |
|
528 urlcolor=mdtRed,% The color of hyperlinks (URLs) |
|
529 pdfstartview={FitV}, |
|
530 unicode, |
|
531 breaklinks=true, |
|
532 } |
|
533 |
|
534 \pdfstringdefDisableCommands{% If there is an explicit linebreak in a section heading (or anything printed to the pdf-bookmarks), it is replaced by a space |
|
535 \let\\\space% |
|
536 } |
|
537 } |
|
538 }{%nothing |
|
539 } |
|
540 |
|
541 %---------------------------------------------------------------------------------------- |
|
542 |
|
543 \endinput |
|
544 % lazyLizardTracer |