docs/diploma

view thesis/tex/header.tex @ 19:caac61e854e8

added shortcuts for 1st, 2nd, etc
author meillo@marmaro.de
date Tue, 30 Sep 2008 12:10:01 +0200
parents 0b3b806f4eb2
children
line source
1 \documentclass[english,a4paper,twoside,openright]{report}
3 \usepackage[utf8]{inputenc}
4 \usepackage{graphicx}
5 \usepackage{url}
7 \usepackage{makeidx}
8 \makeindex
10 \setlength{\parindent}{0em}
11 \setlength{\parskip}{1.0ex plus 1.0ex minus 0.5ex}
12 \setcounter{tocdepth}{3}
14 \pagestyle{headings}
15 %\pagestyle{fancy}
16 %\lhead[\leftmark]{\thepage}
17 %\chead[]{}
18 %\rhead[\thepage]{\rightmark}
19 %\ifoot[\textsc{Markus Schnalke}]{\textsc{Markus Schnalke}}
20 %\cfoot[]{}
21 %\ofoot[\thepage]{\thepage}
23 \usepackage{setspace}
24 \usepackage{relsize}
26 % formating
27 \renewcommand{\path}[1]{\textit{#1}}
28 \newcommand{\name}[1]{\emph{#1}}
29 \newcommand{\NAME}[1]{{\smaller\textsc{#1}\larger}}
31 % \newcommand{\source}[1]{\hspace{1em}\textit{\scriptsize(Quelle: #1)}}
32 \let\OLDcleardoublepage\cleardoublepage
33 \renewcommand{\cleardoublepage}{\thispagestyle{empty}\OLDcleardoublepage}
35 % shortcuts
36 \newcommand{\masqmail}{\name{masqmail}}
37 \newcommand{\sendmail}{\name{sendmail}}
38 \newcommand{\mta}{\name{mail transfer agent}}
39 \newcommand{\email}{\name{email}}
40 \newcommand{\debian}{\name{Debian}}
41 \newcommand{\linux}{\name{Linux}}
42 \newcommand{\gnulinux}{\NAME{GNU}/\name{Linux}}
43 \newcommand{\MTA}{\NAME{MTA}}
44 \newcommand{\RFC}{\NAME{RFC}}
45 \newcommand{\GNU}{\NAME{GNU}}
47 \newcommand{\nth}{\textsuperscript{th}}
48 \newcommand{\st}{\textsuperscript{st}}
49 \newcommand{\nd}{\textsuperscript{nd}}
50 \newcommand{\rd}{\textsuperscript{rd}}
53 %%%% BEGIN DEBUG %%%%
54 %\usepackage{showidx}
55 %\doublespace
56 %%%% END DEBUG %%%%
59 % font
60 \usepackage[T1]{fontenc}
61 \usepackage[sc,osf]{mathpazo}
62 \linespread{1.05} % Palatino needs more leading (space between lines)
66 \usepackage{listings}
67 \lstset{
68 basicstyle=\ttfamily\footnotesize,
69 numberstyle=\tiny,
70 basewidth=0.45em,
71 numbers=left,
72 stepnumber=1,
73 numbersep=2em,
74 showstringspaces=true,
75 showtabs=true,
76 tab=\rightarrowfill,
77 frame=lines,
78 tabsize=4,
79 captionpos=b,
80 breaklines=false,
81 breakatwhitespace=true
82 }
85 \newenvironment{code}[2] {
86 \begin{center}
87 \lstset{label=#1,caption=#2}
88 \begin{list}{}{\setlength{\rightmargin}{2em}\setlength{\leftmargin}{2em}}
89 \item\ttfamily\footnotesize
90 }{
91 \end{list}
92 \end{center}
93 }