Added header comment for needed packets on Debian/Ubuntu
[ana-net.git] / doc / thesis / preamble.tex
blob12a9225ab1a36e2eb6c068843d6c9ef30c84b892
1 \usepackage[english]{babel}
2 \usepackage[utf8]{inputenc}
3 \usepackage[T1]{fontenc}
4 \usepackage{type1cm}
5 \usepackage{ae,aecompl}
6 \usepackage{a4}
7 \usepackage{graphicx}
8 \usepackage[font=small,labelfont=bf,justification=RaggedRight]{caption}
9 \usepackage{subfigure}
10 \usepackage{fancyhdr}
11 \usepackage{fancybox}
12 \usepackage{pst-gantt}
13 \usepackage{float}
14 \usepackage{longtable}
15 \usepackage{paralist}
16 %%\usepackage{hyperref}
17 \usepackage{url}
18 % Allow better control over tabular environments
19 \usepackage{array}
20 % Algorithm environment based on algorithmicx.sty.
21 % No need to include algorithmicx
22 % Include algorithm and one of {algpseudocode, algpascal, algc}
23 %\usepackage{algorithmicx} % Do not include algorithmicx
24 \usepackage{algorithm}
25 \usepackage{algpseudocode}
26 %\usepackage{algpascal}
27 %\usepackage{algc}
28 % URL handling
29 \usepackage{url}
30 \usepackage{amsmath}
31 \usepackage{amsfonts}
32 % Font for listings
33 %\usepackage{LuxiMono}
34 % Program listings
35 \usepackage[final]{listings}
36 \lstloadlanguages{[GNU]C++,Perl,tcl}
37 \lstset{language=[GNU]C++}
38 \newcommand{\?}{\discretionary{/}{}{/}}
39 %\newcommand{\liter}[0]{/home/ruf/Lib/Bibl/}
40 \newcommand{\reffig}[1]{\mbox{Figure~\ref{#1}}}
41 \newcommand{\reftbl}[1]{\mbox{Table~\ref{#1}}}
42 \newcommand{\refsec}[1]{\mbox{Section~\ref{#1}}}
43 \newcommand{\refchp}[1]{\mbox{Chapter~\ref{#1}}}
44 \newcommand{\refapp}[1]{\mbox{Appendix~\ref{#1}}}
45 \newcommand{\refalg}[1]{\mbox{Algorithm~\ref{#1}}}
46 \newcommand{\reflst}[1]{\mbox{Listing~\ref{#1}}}
47 \newcommand{\refeqn}[1]{\mbox{\eqref{#1}}}
48 \pagestyle{fancy}
49 %%-lpr Note: 'chapters' are defined for 'book's only
50 %%-lpr in articles, we make use of sections only
51 %%-lpr \renewcommand{\chaptermark}[1]{\markboth{#1}{}}
52 \renewcommand{\chaptermark}[1]{\markboth{\thechapter\ #1}{}}
53 \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
54 \fancyhf{}
55 \fancyhead[LE,RO]{\bfseries\thepage}
56 \fancyhead[LO]{\bfseries\rightmark}
57 \fancyhead[RE]{\bfseries\leftmark}
58 \renewcommand{\headrulewidth}{0.2pt}
59 \addtolength{\headheight}{0.5pt}
60 \fancypagestyle{plain}{%
61 \fancyhf{}
62 \fancyfoot[C]{\bfseries \thepage}
63 \fancyhead{}%get rid of headers on plain pages
64 \renewcommand{\headrulewidth}{0pt} % get rid of the line on plain pages
66 \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}\cleardoublepage}}
67 % Indent paragraphs by 1em
68 \setlength{\parindent}{1em}
69 \newcommand{\Appendix}[2][?]
71 \refstepcounter{section}
72 \addcontentsline{toc}{appendix}
74 \protect\numberline{\appendixname~\thesection} %1
77 \flushright\large\bfseries\appendixname\ \thesection\par
78 \nohypens\centering#1\par
80 \vspace{\baselineskip}
82 % Stressed words
83 \newcommand\strong[1]{\textbf{#1}}
84 % First occurrence of a key word
85 \newcommand\keyfirst[1]{\textbf{#1}}
86 % Title in an eunmerate environment
87 \newcommand\enumtitle[1]{\textbf{#1}}
88 % Leave one empty line before paragraph
89 \newcommand\largeskip{\vspace{\baselineskip}\noindent}
90 % Bibliography
91 % Number like [23]
92 \bibliographystyle{ieeetr}
93 % Number like [ZKF02]
94 %\bibliographystyle{alpha}
95 % Add line to table of contents
96 \usepackage[notlot,nottoc,notlof]{tocbibind}