Mercurial > docs > diploma
annotate thesis/thesis.sty @ 24:563205a1b07e
the header is now a package
author | meillo@marmaro.de |
---|---|
date | Thu, 02 Oct 2008 15:28:42 +0200 |
parents | thesis/tex/header.tex@caac61e854e8 |
children | 01f154f8f477 |
rev | line source |
---|---|
24 | 1 \ProvidesPackage{thesis} |
8
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 |
13 | 23 \usepackage{setspace} |
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 | 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 | 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 | 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}} | |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
46 |
19 | 47 \newcommand{\nth}{\textsuperscript{th}} |
48 \newcommand{\st}{\textsuperscript{st}} | |
49 \newcommand{\nd}{\textsuperscript{nd}} | |
50 \newcommand{\rd}{\textsuperscript{rd}} | |
51 | |
52 | |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
53 %%%% BEGIN DEBUG %%%% |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
54 %\usepackage{showidx} |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
55 %\doublespace |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
56 %%%% END DEBUG %%%% |
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 |
13 | 59 % font |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
60 \usepackage[T1]{fontenc} |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
61 \usepackage[sc,osf]{mathpazo} |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
62 \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
|
63 |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
64 |
10 | 65 |
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 } | |
83 | |
84 | |
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 } | |
94 |