docs/diploma

view thesis/thesis.sty @ 64:997870769e54

wrote about postfix, exim, masqmail; rewrote section about types of MTAs (unfinished)
author meillo@marmaro.de
date Sun, 19 Oct 2008 18:00:01 +0200
parents d3312a3b6e70
children 85925a92668f
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}{References on the Internet}
13 \setlength{\parindent}{0em}
14 \setlength{\parskip}{1.0ex plus 1.0ex minus 0.5ex}
15 \setcounter{tocdepth}{3}
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}}
34 % \newcommand{\source}[1]{\hspace{1em}\textit{\scriptsize(Quelle: #1)}}
35 \let\OLDcleardoublepage\cleardoublepage
36 \renewcommand{\cleardoublepage}{\thispagestyle{empty}\OLDcleardoublepage}
38 % shortcuts
39 \newcommand{\masqmail}{\name{masqmail}}
40 \newcommand{\sendmail}{\name{sendmail}}
41 \newcommand{\mta}{\name{mail transfer agent}}
42 \newcommand{\email}{\name{email}}
43 \newcommand{\debian}{\name{Debian}}
44 \newcommand{\linux}{\name{Linux}}
45 \newcommand{\gnulinux}{\NAME{GNU}/\name{Linux}}
46 \newcommand{\MTA}{\NAME{MTA}}
47 \newcommand{\RFC}{\NAME{RFC}}
48 \newcommand{\GNU}{\NAME{GNU}}
49 \newcommand{\unix}{\name{Unix}}
50 \newcommand{\freesw}{\name{Free Software}}
51 \newcommand{\gpl}{\name{General Public License}}
52 \newcommand{\GPL}{\NAME{GPL}}
54 \newcommand{\nth}{\textsuperscript{th}}
55 \newcommand{\st}{\textsuperscript{st}}
56 \newcommand{\nd}{\textsuperscript{nd}}
57 \newcommand{\rd}{\textsuperscript{rd}}
60 %%%% BEGIN DEBUG %%%%
61 %\usepackage{showidx}
62 %\doublespace
63 %%%% END DEBUG %%%%
66 % font
67 \usepackage[T1]{fontenc}
68 \usepackage[sc,osf]{mathpazo}
69 \linespread{1.05} % Palatino needs more leading (space between lines)
73 \usepackage{listings}
74 \lstset{
75 basicstyle=\ttfamily\footnotesize,
76 numberstyle=\tiny,
77 basewidth=0.45em,
78 numbers=left,
79 stepnumber=1,
80 numbersep=2em,
81 showstringspaces=true,
82 showtabs=true,
83 tab=\rightarrowfill,
84 frame=lines,
85 tabsize=4,
86 captionpos=b,
87 breaklines=false,
88 breakatwhitespace=true
89 }
92 \newenvironment{code}[2] {
93 \begin{center}
94 \lstset{label=#1,caption=#2}
95 \begin{list}{}{\setlength{\rightmargin}{2em}\setlength{\leftmargin}{2em}}
96 \item\ttfamily\footnotesize
97 }{
98 \end{list}
99 \end{center}
100 }