aboutsummaryrefslogtreecommitdiffstats
path: root/doc/thesis/tex/preamble.tex
diff options
context:
space:
mode:
Diffstat (limited to 'doc/thesis/tex/preamble.tex')
-rw-r--r--doc/thesis/tex/preamble.tex29
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/thesis/tex/preamble.tex b/doc/thesis/tex/preamble.tex
new file mode 100644
index 0000000..0d42fe5
--- /dev/null
+++ b/doc/thesis/tex/preamble.tex
@@ -0,0 +1,29 @@
+% vim: set ts=2 sw=2 noet:
+
+% Table of contents
+\pdfbookmark[1]{\contentsname}{tableofcontents}
+\tableofcontents
+
+\clearpage
+
+% List of figures, tables and listings
+\begingroup
+ \let\clearpage\relax
+ \let\cleardoublepage\relax
+
+ \automark[section]{chapter}
+ \renewcommand{\chaptermark}[1]{\markboth{\spacedlowsmallcaps{#1}}{\spacedlowsmallcaps{#1}}}
+ \renewcommand{\sectionmark}[1]{\markright{\textsc{\thesection}\enspace\spacedlowsmallcaps{#1}}}
+
+ \pagestyle{scrheadings}
+
+ \pdfbookmark[1]{\listfigurename}{lof}
+ \listoffigures
+
+ \pdfbookmark[1]{\listtablename}{lot}
+ \listoftables
+
+ \pdfbookmark[1]{\lstlistlistingname}{lol}
+ \lstlistoflistings
+\endgroup
+