Mercurial > docs > diploma
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 |
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 | 5 \usepackage{url} |
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 | 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 | 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 | 46 |
47 \usepackage{listings} | |
48 \lstset{ | |
49 basicstyle=\ttfamily\footnotesize, | |
50 numberstyle=\tiny, | |
51 basewidth=0.45em, | |
52 numbers=left, | |
53 stepnumber=1, | |
54 numbersep=2em, | |
55 showstringspaces=true, | |
56 showtabs=true, | |
57 tab=\rightarrowfill, | |
58 frame=lines, | |
59 tabsize=4, | |
60 captionpos=b, | |
61 breaklines=false, | |
62 breakatwhitespace=true | |
63 } | |
64 | |
65 | |
66 \newenvironment{code}[2] { | |
67 \begin{center} | |
68 \lstset{label=#1,caption=#2} | |
69 \begin{list}{}{\setlength{\rightmargin}{2em}\setlength{\leftmargin}{2em}} | |
70 \item\ttfamily\footnotesize | |
71 }{ | |
72 \end{list} | |
73 \end{center} | |
74 } | |
75 |