annotate thesis/header.tex @ 13:f4d199ebf793

new macros and relative fontsize for NAME
author meillo@marmaro.de
date Tue, 23 Sep 2008 22:23:55 +0200
parents 558301bfa9b5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
1 \documentclass[english,a4paper,twoside,openright]{report}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
2
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
3 \usepackage[utf8]{inputenc}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
4 \usepackage{graphicx}
10
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
5 \usepackage{url}
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
6
8
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
7 \usepackage{makeidx}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
8 \makeindex
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
9
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
10 \setlength{\parindent}{0em}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
11 \setlength{\parskip}{1.0ex plus 1.0ex minus 0.5ex}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
12 \setcounter{tocdepth}{3}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
13
10
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
14 \pagestyle{headings}
8
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
15 %\pagestyle{fancy}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
16 %\lhead[\leftmark]{\thepage}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
17 %\chead[]{}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
18 %\rhead[\thepage]{\rightmark}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
19 %\ifoot[\textsc{Markus Schnalke}]{\textsc{Markus Schnalke}}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
20 %\cfoot[]{}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
21 %\ofoot[\thepage]{\thepage}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
22
13
f4d199ebf793 new macros and relative fontsize for NAME
meillo@marmaro.de
parents: 10
diff changeset
23 \usepackage{setspace}
f4d199ebf793 new macros and relative fontsize for NAME
meillo@marmaro.de
parents: 10
diff changeset
24 \usepackage{relsize}
8
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
25
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
26 % formating
10
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
27 \renewcommand{\path}[1]{\textit{#1}}
8
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
28 \newcommand{\name}[1]{\emph{#1}}
13
f4d199ebf793 new macros and relative fontsize for NAME
meillo@marmaro.de
parents: 10
diff changeset
29 \newcommand{\NAME}[1]{{\smaller\textsc{#1}\larger}}
8
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
30
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
31 % \newcommand{\source}[1]{\hspace{1em}\textit{\scriptsize(Quelle: #1)}}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
32 \let\OLDcleardoublepage\cleardoublepage
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
33 \renewcommand{\cleardoublepage}{\thispagestyle{empty}\OLDcleardoublepage}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
34
13
f4d199ebf793 new macros and relative fontsize for NAME
meillo@marmaro.de
parents: 10
diff changeset
35 % shortcuts
f4d199ebf793 new macros and relative fontsize for NAME
meillo@marmaro.de
parents: 10
diff changeset
36 \newcommand{\masqmail}{\name{masqmail}}
f4d199ebf793 new macros and relative fontsize for NAME
meillo@marmaro.de
parents: 10
diff changeset
37 \newcommand{\sendmail}{\name{sendmail}}
f4d199ebf793 new macros and relative fontsize for NAME
meillo@marmaro.de
parents: 10
diff changeset
38 \newcommand{\mta}{\name{mail transfer agent}}
f4d199ebf793 new macros and relative fontsize for NAME
meillo@marmaro.de
parents: 10
diff changeset
39 \newcommand{\email}{\name{email}}
f4d199ebf793 new macros and relative fontsize for NAME
meillo@marmaro.de
parents: 10
diff changeset
40 \newcommand{\debian}{\name{Debian}}
f4d199ebf793 new macros and relative fontsize for NAME
meillo@marmaro.de
parents: 10
diff changeset
41 \newcommand{\linux}{\name{Linux}}
f4d199ebf793 new macros and relative fontsize for NAME
meillo@marmaro.de
parents: 10
diff changeset
42 \newcommand{\gnulinux}{\NAME{GNU}/\name{Linux}}
f4d199ebf793 new macros and relative fontsize for NAME
meillo@marmaro.de
parents: 10
diff changeset
43 \newcommand{\MTA}{\NAME{MTA}}
f4d199ebf793 new macros and relative fontsize for NAME
meillo@marmaro.de
parents: 10
diff changeset
44 \newcommand{\RFC}{\NAME{RFC}}
f4d199ebf793 new macros and relative fontsize for NAME
meillo@marmaro.de
parents: 10
diff changeset
45 \newcommand{\GNU}{\NAME{GNU}}
8
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
46
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
47 %%%% BEGIN DEBUG %%%%
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
48 %\usepackage{showidx}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
49 %\doublespace
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
50 %%%% END DEBUG %%%%
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
51
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
52
13
f4d199ebf793 new macros and relative fontsize for NAME
meillo@marmaro.de
parents: 10
diff changeset
53 % font
8
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
54 \usepackage[T1]{fontenc}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
55 \usepackage[sc,osf]{mathpazo}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
56 \linespread{1.05} % Palatino needs more leading (space between lines)
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
57
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
58
10
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
59
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
60 \usepackage{listings}
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
61 \lstset{
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
62 basicstyle=\ttfamily\footnotesize,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
63 numberstyle=\tiny,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
64 basewidth=0.45em,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
65 numbers=left,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
66 stepnumber=1,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
67 numbersep=2em,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
68 showstringspaces=true,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
69 showtabs=true,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
70 tab=\rightarrowfill,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
71 frame=lines,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
72 tabsize=4,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
73 captionpos=b,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
74 breaklines=false,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
75 breakatwhitespace=true
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
76 }
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
77
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
78
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
79 \newenvironment{code}[2] {
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
80 \begin{center}
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
81 \lstset{label=#1,caption=#2}
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
82 \begin{list}{}{\setlength{\rightmargin}{2em}\setlength{\leftmargin}{2em}}
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
83 \item\ttfamily\footnotesize
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
84 }{
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
85 \end{list}
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
86 \end{center}
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
87 }
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
88