annotate thesis/header.tex @ 10:558301bfa9b5

customized listings and code env
author meillo@marmaro.de
date Fri, 19 Sep 2008 10:43:22 +0200
parents 1d35768e1643
children f4d199ebf793
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
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
23
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
24 % formating
10
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
25 \renewcommand{\path}[1]{\textit{#1}}
8
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
26 \newcommand{\name}[1]{\emph{#1}}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
27 \newcommand{\NAME}[1]{{\footnotesize\textsc{#1}}}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
28
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
29 % \newcommand{\source}[1]{\hspace{1em}\textit{\scriptsize(Quelle: #1)}}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
30 \let\OLDcleardoublepage\cleardoublepage
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
31 \renewcommand{\cleardoublepage}{\thispagestyle{empty}\OLDcleardoublepage}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
32
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
33
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
34 %%%% BEGIN DEBUG %%%%
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
35 %\usepackage{showidx}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
36 \usepackage{setspace}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
37 %\doublespace
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
38 %%%% END DEBUG %%%%
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
39
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
40
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
41 \usepackage[T1]{fontenc}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
42 \usepackage[sc,osf]{mathpazo}
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
43 \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
44
1d35768e1643 first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff changeset
45
10
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
46
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
47 \usepackage{listings}
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
48 \lstset{
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
49 basicstyle=\ttfamily\footnotesize,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
50 numberstyle=\tiny,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
51 basewidth=0.45em,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
52 numbers=left,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
53 stepnumber=1,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
54 numbersep=2em,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
55 showstringspaces=true,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
56 showtabs=true,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
57 tab=\rightarrowfill,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
58 frame=lines,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
59 tabsize=4,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
60 captionpos=b,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
61 breaklines=false,
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
62 breakatwhitespace=true
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
63 }
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
64
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
65
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
66 \newenvironment{code}[2] {
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
67 \begin{center}
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
68 \lstset{label=#1,caption=#2}
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
69 \begin{list}{}{\setlength{\rightmargin}{2em}\setlength{\leftmargin}{2em}}
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
70 \item\ttfamily\footnotesize
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
71 }{
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
72 \end{list}
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
73 \end{center}
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
74 }
558301bfa9b5 customized listings and code env
meillo@marmaro.de
parents: 8
diff changeset
75