docs/diploma

view thesis/thesis.sty @ 171:9415e41e765e

removed extra appendix part page
author meillo@marmaro.de
date Sat, 20 Dec 2008 20:51:48 +0100
parents a83a29e10b10
children 5c873e6478ef
line source
1 \ProvidesPackage{thesis}
3 \usepackage[utf8]{inputenc}
4 \usepackage{graphicx}
5 \usepackage{url}
7 \usepackage{makeidx}
8 \makeindex
10 \usepackage{multibib}
11 \newcites{web}{Websites}
13 \setlength{\parindent}{0em}
14 \setlength{\parskip}{1.0ex plus 1.0ex minus 0.5ex}
15 \setcounter{tocdepth}{2}
17 \pagestyle{headings}
18 %\pagestyle{fancy}
19 %\lhead[\leftmark]{\thepage}
20 %\chead[]{}
21 %\rhead[\thepage]{\rightmark}
22 %\ifoot[\textsc{Markus Schnalke}]{\textsc{Markus Schnalke}}
23 %\cfoot[]{}
24 %\ofoot[\thepage]{\thepage}
26 \usepackage{setspace}
27 \usepackage{relsize}
29 % formating
30 \renewcommand{\path}[1]{\textit{#1}}
31 \newcommand{\name}[1]{\emph{#1}\index{#1}}
32 \newcommand{\NAME}[1]{{\smaller\textsc{#1}}\index{#1}}
33 \newcommand{\person}[1]{\textsc{#1}}
35 % \newcommand{\source}[1]{\hspace{1em}\textit{\scriptsize(Quelle: #1)}}
36 \let\OLDcleardoublepage\cleardoublepage
37 \renewcommand{\cleardoublepage}{\thispagestyle{empty}\OLDcleardoublepage}
39 % shortcuts
40 \newcommand{\masqmail}{\name{masqmail}}
41 \newcommand{\sendmail}{\name{sendmail}}
42 \newcommand{\qmail}{\name{qmail}}
43 \newcommand{\exim}{\name{exim}}
44 \newcommand{\postfix}{\name{postfix}}
45 \newcommand{\mta}{mail transfer agent}
46 \newcommand{\email}{email}
47 \newcommand{\debian}{\name{Debian}}
48 \newcommand{\linux}{\name{Linux}}
49 \newcommand{\gnulinux}{\NAME{GNU}/\name{Linux}}
50 \newcommand{\MTA}{\NAME{MTA}}
51 \newcommand{\RFC}{\NAME{RFC}}
52 \newcommand{\GNU}{\NAME{GNU}}
53 \newcommand{\unix}{\name{Unix}}
54 \newcommand{\freesw}{Free Software}
55 \newcommand{\gpl}{General Public License}
56 \newcommand{\GPL}{\NAME{GPL}}
57 \newcommand{\SMTP}{\NAME{SMTP}}
59 \newcommand{\nth}{\textsuperscript{th}}
60 \newcommand{\st}{\textsuperscript{st}}
61 \newcommand{\nd}{\textsuperscript{nd}}
62 \newcommand{\rd}{\textsuperscript{rd}}
65 %%%% BEGIN DEBUG %%%%
66 %\usepackage{showidx}
67 %\doublespace
68 %%%% END DEBUG %%%%
71 % font
72 \usepackage[T1]{fontenc}
73 \usepackage[sc,osf]{mathpazo}
74 \linespread{1.05} % Palatino needs more leading (space between lines)
75 %\linespread{2.05} % for debugging
79 \usepackage{listings}
80 \lstset{
81 basicstyle=\ttfamily\footnotesize,
82 numberstyle=\tiny,
83 basewidth=0.45em,
84 numbers=left,
85 stepnumber=1,
86 numbersep=2em,
87 showstringspaces=true,
88 showtabs=true,
89 tab=\rightarrowfill,
90 frame=lines,
91 tabsize=4,
92 captionpos=b,
93 breaklines=false,
94 breakatwhitespace=true
95 }
98 \newenvironment{code}[2] {
99 \begin{center}
100 \lstset{label=#1,caption=#2}
101 \begin{list}{}{\setlength{\rightmargin}{2em}\setlength{\leftmargin}{2em}}
102 \item\ttfamily\footnotesize
103 }{
104 \end{list}
105 \end{center}
106 }