docs/diploma

view thesis/thesis.sty @ 242:aff94e950f39

minor stuff in ch04
author meillo@marmaro.de
date Sun, 11 Jan 2009 15:38:39 +0100
parents d5800d07e08c
children 807660903834
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}}
58 \newcommand{\TLS}{\NAME{TLS}}
59 \newcommand{\TODO}{\NAME{TODO}\,}
60 \newcommand{\RF}{\NAME{RF}\,}
61 \newcommand{\RG}{\NAME{RG}\,}
62 \newcommand{\RA}{\NAME{RA}\,}
63 \newcommand{\St}{\NAME{S}\,}
65 \newcommand{\nth}{\textsuperscript{th}}
66 \newcommand{\st}{\textsuperscript{st}}
67 \newcommand{\nd}{\textsuperscript{nd}}
68 \newcommand{\rd}{\textsuperscript{rd}}
71 %%%% BEGIN DEBUG %%%%
72 %\usepackage{showidx}
73 %\doublespace
74 %%%% END DEBUG %%%%
77 % font
78 \usepackage[T1]{fontenc}
79 \usepackage[sc,osf]{mathpazo}
80 \linespread{1.05} % Palatino needs more leading (space between lines)
81 %\linespread{2.05} % for debugging
85 \usepackage{listings}
86 \lstset{
87 basicstyle=\ttfamily\footnotesize,
88 numberstyle=\tiny,
89 basewidth=0.45em,
90 numbers=left,
91 stepnumber=1,
92 numbersep=2em,
93 showstringspaces=true,
94 showtabs=true,
95 tab=\rightarrowfill,
96 frame=lines,
97 tabsize=4,
98 captionpos=b,
99 breaklines=false,
100 breakatwhitespace=true
101 }
104 \newenvironment{code}[2] {
105 \begin{center}
106 \lstset{label=#1,caption=#2}
107 \begin{list}{}{\setlength{\rightmargin}{2em}\setlength{\leftmargin}{2em}}
108 \item\ttfamily\footnotesize
109 }{
110 \end{list}
111 \end{center}
112 }