X-Git-Url: https://git.rohieb.name/bachelor-thesis/written-stuff.git/blobdiff_plain/600380af57fe95132b89fbf21db1ef26258f955b..c549bc150a5190197595f96e980f9b4da4a216b1:/Ausarbeitung/main.tex diff --git a/Ausarbeitung/main.tex b/Ausarbeitung/main.tex index 5f3600b..0749682 100644 --- a/Ausarbeitung/main.tex +++ b/Ausarbeitung/main.tex @@ -3,16 +3,45 @@ \usepackage[T1]{fontenc} \usepackage{ae} \usepackage[ngerman,english]{babel} -\usepackage{hyperref,color,url,acronym,graphicx,makeidx,amsfonts} - -% 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}} % FIXME: add to glossary? -\newcommand{\magicnumber}[1]{\texttt{#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} @@ -22,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] @@ -65,24 +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{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}