X-Git-Url: https://git.rohieb.name/bachelor-thesis/written-stuff.git/blobdiff_plain/31c576ac200aa443984d141a393893acff4787e5..c549bc150a5190197595f96e980f9b4da4a216b1:/Ausarbeitung/main.tex

diff --git a/Ausarbeitung/main.tex b/Ausarbeitung/main.tex
index 21dfd16..0749682 100644
--- a/Ausarbeitung/main.tex
+++ b/Ausarbeitung/main.tex
@@ -3,18 +3,45 @@
 \usepackage[T1]{fontenc}
 \usepackage{ae}
 \usepackage[ngerman,english]{babel}
-\usepackage{hyperref,color,url,acronym,graphicx,makeidx,amsfonts,amsmath}
-
-% FIXME hyperref setup
+\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{todonotes}
+\usepackage{enumitem}
 
 \makeindex
 
-\newcommand{\todo}[1]{\textcolor{red}{\index{Todo}\LARGE TODO:~#1}}
-\newcommand{\definition}[1]{\textit{#1}\index{#1}} % FIXME: add to glossary?
-\newcommand{\cmd}[1]{\texttt{#1}\index{#1 (command)}} % FIXME: add to glossary?
-\newcommand{\prog}[1]{\texttt{#1}\index{#1 (program)}} % FIXME: add to glossary?
-\newcommand{\magicnumber}[1]{\texttt{#1}}
-\newcommand{\opcode}[1]{\ac{opcode} \magicnumber{#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)}}
+\newcommand{\code}[1]{\texttt{#1}}
+\newcommand{\class}[1]{\code{#1}\index{#1 (class)}}
+\newcommand{\file}[1]{\texttt{#1}\index{#1 (file)}}
+\newcommand{\filepath}[1]{\texttt{#1}}
+\newcommand{\magicvalue}[1]{\code{#1}}
+\newcommand{\opcode}[1]{\ac{opcode} \magicvalue{#1}}
 
 % ignore output, but evaluate command with side-effects
 \newsavebox{\trashbox}
@@ -24,11 +51,19 @@
 \title{Error modeling of an autonomous, mobile robot}
 % \date{July 9, 2011}
 
+\makeatletter
+\hypersetup{
+  colorlinks=false, % FIXME turn of for printing
+  pdftitle={\@title},
+  pdfauthor={\@author},
+  pdfcreator={\@author}
+}
+
 \begin{document}
+\pagenumbering{roman}
 
 \begin{titlepage}
   \vskip 60pt
-  \makeatletter
   \begin{center}
     {\large Braunschweig University of Technology}\\
     {\large Institute of Operating Systems and Computer Networks}\\[2cm]
@@ -67,25 +102,19 @@ Braunschweig, den \today
   \todo{abstract!!!}
 % \end{abstract}
 
+\cleardoublepage
+\pagenumbering{arabic}
+\pagestyle{headings}
+
 \tableofcontents
 \cleardoublepage
 \listoffigures
 \cleardoublepage
 % \listoftables
 % \cleardoublepage
-\chapter*{Table of Acronyms}
-\begin{acronym}
- \acro{GNU}{GNU's Not Unix}
- \acro{GPS}{Global Positioning System}
- \acro{LED}{Light-Emitting Diode}
- \acro{opcode}{operation code}
- \acro{ROI}{Roomba Open Interface}
- \acro{SVN}{Subversion}
- \acro{USB}{Universal Serial Bus}
-\end{acronym}
 
-\pagenumbering{arabic}
-\pagestyle{headings}
+\input{acronyms}
+\cleardoublepage
 
 % chapters
 \input{introduction}
