From: Roland Hieber Date: Fri, 29 Jul 2011 20:47:06 +0000 (+0200) Subject: fix title page, main matter and front matter X-Git-Url: https://git.rohieb.name/bachelor-thesis/written-stuff.git/commitdiff_plain/b5d7620c21b5b794c535e297abb6ae9ccd70f3b3 fix title page, main matter and front matter --- diff --git a/Ausarbeitung/main.tex b/Ausarbeitung/main.tex index 0749682..454d247 100644 --- a/Ausarbeitung/main.tex +++ b/Ausarbeitung/main.tex @@ -1,38 +1,19 @@ -\documentclass[a4paper,11pt,bibliography=totoc,twoside]{scrbook} +\documentclass[bibtotoc,idxtotoc,twoside,titlepage=yes,a4paper,11pt]{scrbook} \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc} \usepackage{ae} \usepackage[ngerman,english]{babel} \usepackage{makeidx}%,showidx} -% evil hack to enable command expansion in \index -% \makeatletter -% \def\makeindex{% -% \newwrite\@indexfile -% \immediate\openout\@indexfile=\jobname.idx -% \def\index{\@bsphack\begingroup -% \@sanitize -% \@wrindex} \typeout -% {Writing custom index file \jobname.idx}% -% \let\makeindex\@empty -% } -% \def\@wrindex#1{% -% \edef\@wrindex@params{#1}% -% \protected@write\@indexfile{}% -% {\string\indexentry{\@wrindex@params}{\thepage}}% -% \endgroup\@esphack} -% \def\T1{\@empty} % someone needs this... don't know why -% \let\@origindex\index -% \renewcommand{\index}[1]{\expandafter\@origindex{#1}} -% \def\index#1{\expandafter\@datrueindex{#1}\typeout{new index used}} -% \makeatother \usepackage{hyperref,color,url,acronym,graphicx,amsfonts,amsmath} -\usepackage{sidecap} +\usepackage{sidecap} % for SCfigure environment \usepackage{todonotes} \usepackage{enumitem} +\usepackage{geometry} %% use local copy for \newgeometry +\usepackage{showframe} %% FIXME \makeindex -%\newcommand{\todo}[1]{\textcolor{red}{\index{Todo}\LARGE TODO:~#1}} +% \newcommand{\todo}[1]{\textcolor{red}{\index{Todo}\LARGE TODO:~#1}} \newcommand{\definition}[1]{\textit{#1}\index{#1}} \newcommand{\cmd}[1]{\texttt{#1}\index{#1 (command)}} \newcommand{\prog}[1]{\texttt{#1}\index{#1 (program)}} @@ -58,12 +39,15 @@ pdfauthor={\@author}, pdfcreator={\@author} } +\makeatother \begin{document} -\pagenumbering{roman} - +\pagestyle{headings} +\frontmatter +\newgeometry{left=0.5cm,right=0.5cm} \begin{titlepage} \vskip 60pt + \makeatletter \begin{center} {\large Braunschweig University of Technology}\\ {\large Institute of Operating Systems and Computer Networks}\\[2cm] @@ -72,8 +56,10 @@ \vskip 6em {\large by}\\[.5em] {\large \@author}\\[7em] - {\large \bf Thesis Advisor:}\\[.5em] - {\large Prof. Dr. S\'andor Fekete}\\ + {\large \bf Thesis Advisors:}\\[.5em] + {\large Prof.~Dr.~S\'andor Fekete}\\ + {\large Dr.~Alexander Kröeller}\\ + {\large Dipl-Inf.~Tobias Baumgartner}\\ \par \vfill {\large Braunschweig - \today} @@ -82,7 +68,8 @@ % \par % thanks? \end{titlepage} -\cleardoublepage +\restoregeometry +% \cleardoublepage \selectlanguage{ngerman} \vspace*{7cm} @@ -95,17 +82,19 @@ der angegebenen Hilfsmittel angefertigt zu haben. Braunschweig, den \today \selectlanguage{english} -\pagestyle{headings} +% \pagestyle{headings} \cleardoublepage % \begin{abstract} \todo{abstract!!!} % \end{abstract} -\cleardoublepage -\pagenumbering{arabic} -\pagestyle{headings} +% \cleardoublepage +% \pagenumbering{arabic} +% \pagestyle{headings} +\thispagestyle{empty} +\mainmatter \tableofcontents \cleardoublepage \listoffigures @@ -114,7 +103,7 @@ Braunschweig, den \today % \cleardoublepage \input{acronyms} -\cleardoublepage +% \cleardoublepage % chapters \input{introduction} @@ -125,7 +114,7 @@ Braunschweig, den \today \input{conclusion} \input{implementation} -\addcontentsline{toc}{chapter}{Index} +%\addcontentsline{toc}{chapter}{Index} \printindex \bibliographystyle{alpha}