-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathubonn-thesis.sty
655 lines (602 loc) · 21.3 KB
/
ubonn-thesis.sty
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
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
%------------------------------------------------------------------------------
% Style file for a thesis written in the University of Bonn
%
% See ChangeLog or Git log for history of changes.
% Responsible: Ian Brock ([email protected])
%------------------------------------------------------------------------------
\ProvidesPackage{ubonn-thesis}[2016/07/11 Version 5.2 University of Bonn thesis package]
\NeedsTeXFormat{LaTeX2e}
% Set TeX Live version
\providecommand*{\texlive}{2014}
% Set institute information
\providecommand*{\InstituteName}{\PI}
\providecommand*{\inInstitute}{\inPI}
\providecommand*{\InstituteAddress}{\PIaddress}
% Thesis type
\providecommand*{\ThesisType}{Unknown}
\providecommand*{\ThesisVersion}{Draft}
% ifthen package gives more possibilities than native \if
\RequirePackage{ifthen}
%-------------------------------------------------------------------------------
% Use kvoptions package to set options
\RequirePackage{kvoptions}
\SetupKeyvalOptions{
family=UBN,
prefix=UBN@
}
\DeclareBoolOption[false]{PhD}
\DeclareBoolOption[false]{Master}
\DeclareBoolOption[false]{Diplom}
\DeclareBoolOption[false]{Bachelor}
\DeclareBoolOption[false]{Draft}
\DeclareBoolOption[false]{Submit}
\DeclareBoolOption[false]{Final}
\DeclareBoolOption[false]{PILibrary}
\DeclareStringOption{thesistype}
\DeclareStringOption{thesisversion}
\DeclareBoolOption[false]{newtx}
\DeclareBoolOption[true]{txfonts}
\DeclareBoolOption[false]{palatino}
\DeclareBoolOption[false]{feynmf}
\DeclareBoolOption[false]{feynmp}
\DeclareBoolOption[true]{subcaption}
\DeclareBoolOption[false]{subfig}
\DeclareBoolOption[false]{subfigure}
\DeclareBoolOption[true]{xtab}
\DeclareBoolOption[false]{longtable}
\DeclareBoolOption[false]{supertabular}
\DeclareBoolOption[true]{biblatex}
\DeclareBoolOption[true]{siunitx}
\DeclareBoolOption[false]{eVkern}
\DeclareBoolOption[true]{dcolumn}
\DeclareBoolOption[false]{physics}
\DeclareBoolOption[true]{hepparticles}
\DeclareBoolOption[true]{hepitalic}
\DeclareBoolOption[true]{mhchem}
\DeclareBoolOption[false]{titlesec}
\DeclareBoolOption[false]{astrobib}
\DeclareBoolOption[true]{floatopt}
\DeclareStringOption{texlive}
\DeclareStringOption[true]{backref}
\DeclareStringOption[biber]{backend}
\DeclareStringOption{bibencoding}
\DeclareStringOption[numeric-comp]{bibstyle}
\ProcessKeyvalOptions*
%-------------------------------------------------------------------------------
% TeX Live version specified as an option
\ifx\UBN@texlive\@empty
\relax
\else
\renewcommand*{\texlive}{\UBN@texlive}
\fi
\typeout{Package ubonn-thesis Info: texlive is [\texlive]}
% Thesis type specified as an option
\ifUBN@PhD
\typeout{Package ubonn-thesis Info: Setting things up for a PhD thesis}
\renewcommand*{\ThesisType}{PhD}
\fi
\ifUBN@Master
\typeout{Package ubonn-thesis Info: Setting things up for a Master thesis}
\renewcommand*{\ThesisType}{Master}
\fi
\ifUBN@Diplom
\typeout{Package ubonn-thesis Info: Setting things up for a Diplom thesis}
\renewcommand*{\ThesisType}{Diplom}
\fi
\ifUBN@Bachelor
\typeout{Package ubonn-thesis Info: Setting things up for a Bachelor thesis}
\renewcommand*{\ThesisType}{Bachelor}
\fi
% PI library thesis version - includes extra cover page
\ifUBN@PILibrary
\typeout{Package ubonn-thesis Info: Creating version for PI library}
\renewcommand*{\ThesisVersion}{PILibrary}
\fi
% Submission version of thesis
\ifUBN@Submit
\typeout{Package ubonn-thesis Info: Creating submission version of thesis}
\renewcommand*{\ThesisVersion}{Submit}
\fi
% Final print version of thesis
\ifUBN@Final
\typeout{Package ubonn-thesis Info: Creating final version of thesis for print shop and ULB}
\renewcommand*{\ThesisVersion}{Final}
\fi
% Thesis type/version specified as a string
\ifx\UBN@thesistype\@empty
\relax
\else
\renewcommand*{\ThesisType}{\UBN@thesistype}
\fi
\ifx\UBN@thesisversion\@empty
\relax
\else
\renewcommand*{\ThesisVersion}{\UBN@thesisversion}
\fi
% Only one font package at a time!
\ifUBN@newtx
\typeout{Package ubonn-thesis Info: Using newtx fonts}
\UBN@txfontsfalse
\UBN@palatinofalse
\else
\ifUBN@palatino
\typeout{Package ubonn-thesis Info: Using Palatino fonts}
\UBN@txfontsfalse
\UBN@newtxfalse
\else
\ifUBN@txfonts
\typeout{Package ubonn-thesis Info: Using txfonts}
\UBN@newtxfalse
\UBN@palatinofalse
\fi
\fi
\fi
% xtab and supertabular do not mix
\ifUBN@supertabular
\UBN@xtabfalse
\else
\ifUBN@xtab
\UBN@supertabularfalse
\fi
\fi
% Only one subfigure package at a time!
\ifUBN@subfigure
\UBN@subfigfalse
\UBN@subcaptionfalse
\else
\ifUBN@subfig
\UBN@subfigurefalse
\UBN@subcaptionfalse
\else
\ifUBN@subcaption
\UBN@subfigurefalse
\UBN@subfigfalse
\fi
\fi
\fi
% Check backend - if TeX Live is earlier than 2011 and backend is biber,
% change it to something more appropriate
\ifthenelse{\texlive < 2011 \AND \equal{\UBN@backend}{biber}}{%
\typeout{Package ubonn-thesis Warning: Setting backend to bibtex}
\renewcommand*{\UBN@backend}{bibtex} %Used to be {bibtex8,bibencoding=latin1}
}{%
}
% Switch from subcaption to subfig if TeX Live is earlier than 2012
%\ifthenelse{\texlive < 2012 \AND \boolean{UBN@subcaption}}{%
% \typeout{Package ubonn-thesis Warning: Using subfig instead of subcaption}
% \UBN@subfigurefalse
% \UBN@subfigtrue
% \UBN@subcaptionfalse
%}{%
%}
%------------------------------------------------------------------------------
% General KOMA script options - other options affecting header/footer
% section titles and captions are at the end of this file
\KOMAoptions{fontsize=11pt,paper=a4,twoside}
% Add List of Figures/Tables to Table of Contents
\KOMAoptions{listof=totoc}
% Commands to add bibliography to the Table of Contents are in the main file
% For biblatex, add option [heading=bibintoc] to \printbibliography
% For traditional BibTeX, add option \KOMAoptions{toc=bibliography}
% No paragraph indentation, but instead half-line space
% \KOMAoptions{parskip=half}
%------------------------------------------------------------------------------
% Page layout
% You can either use geometry or the built-in typearea
% Typarea allows you to easily take into acccount extra space needed
% for binding using the BCOR parameter.
% The DIV parameter tells it how many elements the page
% should be split into.
% \RequirePackage[scale=0.75]{geometry}
\KOMAoptions{DIV=14,BCOR=8mm}
\KOMAoptions{headinclude=true}
% Header and footer
\RequirePackage[headsepline]{scrpage2}
%-------------------------------------------------------------------------------
% Math packages that have to come early
% AMS math (for some font collections this has to come before their selection)
\RequirePackage{amsmath,amssymb}
%-------------------------------------------------------------------------------
% Input encoding, font and language
\RequirePackage[utf8]{inputenc}
% New version of the txfonts times-roman font
\ifUBN@newtx
\RequirePackage{newtxtext}
\RequirePackage{newtxmath}
\fi
% Times-roman font
\ifUBN@txfonts
\RequirePackage[varg]{txfonts} % Used in ATLAS papers
\RequirePackage[T1]{fontenc}
\fi
% Palatino font
\ifUBN@palatino
% Palatino for rm and math | Helvetica for ss | Courier for tt
\RequirePackage{mathpazo} % math & rm
\linespread{1.05} % Palatino needs more leading (space between lines)
\RequirePackage[scaled]{helvet} % ss
\RequirePackage{courier} % tt
\normalfont
\RequirePackage[T1]{fontenc}
\fi
% Other font collections one can consider
% \RequirePackage{lmodern}
% Variations with times
% \RequirePackage{mathptmx} % Included as an option in ATLAS papers
% \RequirePackage{times}
% Math design
% \RequirePackage[utopia]{mathdesign}
% \RequirePackage[charter]{mathdesign}
% Palatino
% \RequirePackage{pxfonts}
% Collections with different fonts for numbers in text and math mode
% \RequirePackage{bookman}
% \RequirePackage{newcent}
% \RequirePackage{palatino}
%------------------------------------------------------------------------------
% Specify the language(s) in the documentclass and then use babel.
% csquotes is recommended for quoting correctly for the language used
% The option autostyle=true continuously adapts the style to the language.
% Use autostyle=once to fix it to the main language of the document.
\RequirePackage{babel}
% \RequirePackage[german=guillemets,autostyle=true,style=mythesis]{csquotes}
\ifthenelse {\texlive < 2010} {%
% Use babel=true for older versions (2009 and earlier) of csquotes
\RequirePackage[babel=true]{csquotes}
}{%
% Use autostyle=true for newer versions (2011 and later) of csquotes
% Use American quotes `` xxx `yyy' '' instead of British default.
\RequirePackage[autostyle=true]{csquotes}
% \RequirePackage[german=guillemets,autostyle=true]{csquotes}
}
% It seems common in British documents to use American-like quotes,
% i.e. outer double quotes and inner single quotes
% The following commands define a new variant called myenglish
% and then use this variant if the language is set to british or UKenglish
\DeclareQuoteStyle[mybritish]{myenglish}%
{\textquotedblleft}{\textquotedblright}%
{\textquoteleft}{\textquoteright}
\DeclareQuoteAlias[mybritish]{myenglish}{myenglish}
\DeclareQuoteAlias{myenglish}{british}
\DeclareQuoteAlias{myenglish}{UKenglish}
% It is possible for you to define your own quotation style
% \DeclareQuoteStyle{mythesis}%
% {\textquotedblleft}{\textquotedblright}%
% {\textquoteleft}{\textquoteright}
% \setquotestyle{mythesis}
%-------------------------------------------------------------------------------
% Nicer fractions - load before siunitx for older versions of TeX Live
\RequirePackage{xfrac}
%-------------------------------------------------------------------------------
\ifUBN@siunitx
\ifthenelse{\texlive < 2012}{
\ifthenelse{\texlive < 2011} {%
\RequirePackage[noload=addn]{siunitx}
\sisetup{alsoload=hep}
\sisetup{seperr}
\sisetup{repeatunits=false}
\sisetup{obeyall}
\sisetup{sepfour}
\newunit{\barn}{b}
\newunit{\TeVc}{\tera\eVperc}
\newunit{\GeVc}{\giga\eVperc}
\newunit{\MeVc}{\mega\eVperc}
\newunit{\keVc}{\kilo\eVperc}
\newunit{\eVc}{\eVperc}
}{%
\RequirePackage{siunitx}
\sisetup{load-configurations=abbreviations}
\sisetup{separate-uncertainty}
\sisetup{detect-all}
\sisetup{range-units=single, list-units=single}
\sisetup{group-digits=true, group-four-digits=true}
\ifUBN@eVkern
\typeout{ubonn-thesis: Applying kern to eV}
\DeclareSIUnit\electronvolt{\text{e\kern-.1em V}}
\fi
}
}{%
\RequirePackage{siunitx}
\sisetup{separate-uncertainty}
\sisetup{range-units=single, list-units=single}
\sisetup{group-digits=integer, group-minimum-digits=4}
\sisetup{detect-all}
\ifUBN@eVkern
\typeout{ubonn-thesis: Applying kern to eV}
\DeclareSIUnit\electronvolt{\text{e\kern-.1em V}}
\fi
}
% Units - for German thesis \num{4.3} will be printed as 4,3
\addto\extrasngerman{\sisetup{locale = DE}}
\addto\extrasamerican{\sisetup{locale = US}}
\addto\extrasUSenglish{\sisetup{locale = US}}
\addto\extrasbritish{\sisetup{locale = UK}}
\addto\extrasUKenglish{\sisetup{locale = UK}}
\fi
% \RequirePackage{units}
% \RequirePackage{hepunits}
% \RequirePackage[squaren]{SIunits}
%-------------------------------------------------------------------------------
% Figures and graphics
\RequirePackage{graphicx}
\ifUBN@feynmf
\RequirePackage{feynmf}
\fi
\ifUBN@feynmp
\RequirePackage{feynmp}
\DeclareGraphicsRule{*}{mps}{*}{}
\fi
\ifUBN@subcaption
\ifthenelse{\texlive < 2012}{%
\RequirePackage{caption}
}{%
}
\RequirePackage[labelformat=simple]{subcaption}
\renewcommand\thesubfigure{(\alph{subfigure})}
\renewcommand\thesubtable{(\alph{subtable})}
\else
\ifUBN@subfig
\RequirePackage[labelformat=simple,listofformat=subsimple,subrefformat=empty]{subfig}
\renewcommand\thesubfigure{(\alph{subfigure})}
\renewcommand\thesubtable{(\alph{subtable})}
\else
\ifUBN@subfigure
\RequirePackage[TABBOTCAP]{subfigure}
\fi
\fi
\fi
% \RequirePackage[lofdepth,lotdepth]{subfig}
% Alternative to subfig, which is also newer
% \RequirePackage{subcaption}
%-------------------------------------------------------------------------------
% Tables
\RequirePackage{rotating}
\RequirePackage{array}
\RequirePackage{booktabs}
\ifUBN@dcolumn
\RequirePackage{dcolumn}
\fi
\ifUBN@xtab
\RequirePackage[pageshow]{xtab}
\fi
\ifUBN@longtable
\RequirePackage{longtable}
\fi
\ifUBN@supertabular
\RequirePackage{supertabular}
\fi
% Be careful trying to use ziffer and dcolumn together
% \RequirePackage{ziffer}
% Multiple references - does not seem to work together with hyperref
% Also is not compatible with biblatex, which is the way to go
% \RequirePackage{mcite}
% Mathematical construction that are useful in physics
\ifUBN@physics
\RequirePackage{physics}
\fi
% Standardised particles names and format
\ifUBN@hepparticles
\ifUBN@hepitalic
\RequirePackage[italic]{hepnicenames}
\else
\RequirePackage{hepnicenames}
\fi
\fi
% Chemical elements
\ifUBN@mhchem
\RequirePackage[version=3]{mhchem}
\fi
\RequirePackage{xcolor}
\RequirePackage{xspace}
\RequirePackage{setspace}
\RequirePackage{scrdate,scrtime}
%-------------------------------------------------------------------------------
% Use biblatex and biber for the bibliography
% Style is numeric and comp option changes [1,2,3] into [1-3]
% sorting=none means the order is as they are cited
% block=ragged turns off block form, which avoids large spaces
% firstinits=true means initials are used for first names
% Some more tweaks should be made to the appearance,
% see/include ubonn-biblatex.sty
\ifUBN@biblatex
\ifx\UBN@bibencoding\@empty
\newcommand*{\UBN@biblatexencoding}{}
\else
\newcommand*{\UBN@biblatexencoding}{bibencoding=\UBN@bibencoding,}
\fi
\ifUBN@astrobib
% \RequirePackage[backend=\UBN@backend,backref=\UBN@backref,
% style=authoryear,uniquelist=minyear,uniquename=init,refsection=chapter,natbib=true,
% block=none]{biblatex}
\RequirePackage[backend=\UBN@backend, \UBN@biblatexencoding
backref=\UBN@backref,
style=authoryear, natbib=true, refsection=chapter,
block=none, firstinits=true]{biblatex}
\else
\ifthenelse {\texlive < 2010} {%
\RequirePackage[backend=\UBN@backend, hyperref=true, \UBN@biblatexencoding
backref=\UBN@backref,
style=\UBN@bibstyle, sorting=none,
block=ragged, firstinits=true]{biblatex}
}{%
\RequirePackage[backend=\UBN@backend, \UBN@biblatexencoding
backref=\UBN@backref,
style=\UBN@bibstyle, sorting=none,
block=ragged, firstinits=true]{biblatex}
}
\fi
\fi
%-------------------------------------------------------------------------------
% Add ability to click on links and references.
% Define some darker colours first
\definecolor{darkred}{rgb}{0.5,0,0}
\definecolor{darkgreen}{rgb}{0,0.5,0}
\definecolor{darkblue}{rgb}{0,0,0.5}
\definecolor{darkyellow}{rgb}{0.5,0.5,0}
\definecolor{darkcyan}{rgb}{0,0.5,0.5}
\definecolor{darkmagenta}{rgb}{0.5,0,0.5}
% Note that the colours also apply to the printed version.
% It probably make sense to keep them for an online version and set
% them all to black when producing the printed thesis.
% The hyperref package should come last
\PassOptionsToPackage{hyphens}{url}
% \RequirePackage[colorlinks=true,linkcolor=blue,citecolor=green,
% urlcolor=black,bookmarksopen]{hyperref}
\RequirePackage[colorlinks=true,linkcolor=blue,citecolor=darkmagenta,
urlcolor=darkgreen,bookmarksopen]{hyperref}
% \newcommand{\url}[1]{\texttt{#1}}
%-------------------------------------------------------------------------------
% More options for KOMA script
% Turn on bold math when using \bfseries
\def\bfseries{\fontseries\bfdefault\selectfont\boldmath}
% General font for title, section headings etc.
% \setkomafont{disposition}{\rmfamily\bfseries\upshape}
\setkomafont{title}{\normalfont\bfseries\huge}
\setkomafont{subtitle}{\normalfont\Large}
% Do not put a dot after Section/Chapter, nor in the figure caption.
\KOMAoptions{numbers=noendperiod}
% Write Chapter 1 at beginning of each chapter, if this is not an article
\@ifclassloaded{scrartcl}{}{\KOMAoptions{chapterprefix=true,appendixprefix=true}}
%-------------------------------------------------------------------------------
% Only change chapter titles if this ios not an article
\@ifclassloaded{scrartcl}{}{%
\ifUBN@titlesec
% Packages to change the chapter heading format
% titlesec works, but gives a warning from KOMA-Script
\RequirePackage{titlesec}
\titleformat{\chapter}[display]
{\bfseries\sffamily\huge}
{\filleft\MakeUppercase{\Large\chaptertitlename} \Huge\thechapter}
{2ex}
{\titlerule
\vspace{1ex}%
\filright}
[\vspace{1ex}%
\titlerule]
\else
% Code from http://www.komascript.de/chapterwithlines
\RequirePackage{microtype}
%\renewcommand*{\thechapter}{\Roman{chapter}}
\newcommand*{\chapternumbersize}{\Huge}
\renewcommand*{\chapterformat}{%
\raggedleft
\textls{\MakeUppercase{\Large\chapapp}}\enskip\chapternumbersize\thechapter\\
%\MakeUppercase{\Large\chapapp}\enskip\chapternumbersize\thechapter\\
\hrulefill\\[-.25ex]
}
\renewcommand*{\chapterheadstartvskip}{\vskip 4\baselineskip}
\renewcommand*{\chapterheadendvskip}{%
\vspace{-\baselineskip}\noindent{\setlength{\parskip}{0pt}\Huge\hrulefill\par}
\vspace{\baselineskip}
}
\fi
}
% Alternative way of adjusting the \chapter heading
% Taken from http://tex.stackexchange.com/questions/173389/chapter-title-adjusting-with-koma-script
% This code works well, except that the bibliography gets a chapter number.
% The KOMA-Script solution above is also simpler.
% \def\@makechapterhead#1{%
% \vspace*{10\p@}%
% {\parindent \z@ \raggedleft \reset@font
% \sffamily \bfseries \Huge \MakeUppercase{\Large\@chapapp} \thechapter\vspace*{-5\p@}
% \par\nobreak
% \interlinepenalty\@M\hrulefill\newline\vspace*{-5\p@}
% \huge \bfseries #1\par\nobreak
% \vspace*{-8\p@}%
% \hrulefill
% \par\nobreak
% \vskip 30\p@
% }
% }
%
% % Adjust the \chapter* heading
% \def\@makeschapterhead#1{%
% \vspace*{4\p@}%
% {\parindent \z@ \raggedright \reset@font
% \sffamily
% \interlinepenalty\@M\hrulefill\newline\vspace*{-5\p@}
% \huge \bfseries #1\par\nobreak
% \vspace*{-8\p@}%
% \hrulefill
% \par\nobreak
% \vskip 30\p@
% }
% }
% \fi
%-------------------------------------------------------------------------------
% Do not centre one-line figure captions.
% \KOMAoptions{captions=nooneline}
% Font and layout for figure and table captions
\setkomafont{caption}{\normalfont\small}
% \setkomafont{caption}{\normalfont\slshape}
% Do not include a : after the figure/table number
% \renewcommand*{\captionformat}{\ }
% \renewcommand*{\figureformat}{\bfseries\slshape Fig.\ \thefigure}
\setcapindent{0pt}
% Default width for figures
\newlength{\figwidth}
\setlength{\figwidth}{0.8\textwidth}
% More space between rows in tables
% \setlength{\extrarowheight}{0.5ex}
% Adjust float settings to try to avoid problems.
% These follow the UK FAQ - see also P.199-200 of the LaTeX Book
\ifUBN@floatopt
\renewcommand{\topfraction}{0.85}
\renewcommand{\bottomfraction}{0.70}
\renewcommand{\textfraction}{0.15}
\renewcommand{\floatpagefraction}{0.66}
\renewcommand{\dbltopfraction}{0.66}
\renewcommand{\dblfloatpagefraction}{0.66}
\setcounter{topnumber}{9}
\setcounter{bottomnumber}{9}
\setcounter{totalnumber}{20}
\fi
%-------------------------------------------------------------------------------
% Set the header and footer
% The optional argument is for pages in scrplain mode - first page of chapters etc.
% The required argument is for the usual scrheadings pages
%
% Use the following to debug what header/footer is used where
% \ihead[Scrplain ihead]{Scrheadings ihead}
% \chead[Scrplain chead]{Scrheadings chead}
% \ohead[Scrplain ohead]{Scrheadings ohead}
% \ifoot[Scrplain ifoot]{Scrheadings ifoot}
% \cfoot[Scrplain cfoot]{Scrheadings cfoot}
% \ofoot[Scrplain ofoot]{Scrheadings ofoot}
%
% \cfoot[\thepage]{\thepage}
\pagestyle{scrheadings}
% Footnote settings
\deffootnote{1em}{1em}{\textsuperscript{\thefootnotemark}\ }
% Unit of length used for Feynman graphs in feynmf
\setlength{\unitlength}{1mm}
% Make sure everything is set up properly, even after spacings have
% been changed.
\KOMAoptions{DIV=last}
%-------------------------------------------------------------------------------
% Institutes names and addresses - maybe put in an extra file?
\newcommand*{\PI}{Physikalisches Institut}
\newcommand*{\inPI}{im Physikalischen Institut}
\newcommand{\PIaddress}{Physikalisches Institut der\\
Universität Bonn\\
Nussallee 12\\
D-53115 Bonn}
\newcommand*{\HISKP}{Helmholtz-Institut für\\ Strahlen- und Kernphysik}
\newcommand*{\inHISKP}{im Helmholtz-Institut für Strahlen- und Kernphysik}
\newcommand{\HISKPaddress}{Helmholtz-Institut für\\
Strahlen- und Kernphysik\\
Universität Bonn\\
Nussallee 14--16\\
D-53115 Bonn}
\newcommand*{\IAP}{Institut für Angewandte Physik}
\newcommand*{\inIAP}{im Institut für Angewandte Physik}
\newcommand{\IAPaddress}{Institut für Angewandte Physik\\
Universität Bonn\\
Wegelstr.\ 8\\
D-53115 Bonn}
\newcommand*{\AIFA}{Argelander-Institut für Astronomie}
\newcommand*{\inAIFA}{im Argelander-Institut für Astronomie}
\newcommand{\AIFAaddress}{Argelander-Institut für Astronomie\\
Universität Bonn\\
Auf dem Hügel 71\\
D-53121 Bonn}