docs/diploma

view thesis/thesis.sty @ 237:d5800d07e08c

a new shortcut
author meillo@marmaro.de
date Sat, 10 Jan 2009 22:26:10 +0100
parents 5c873e6478ef
children aff94e950f39
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}\,}
63 \newcommand{\nth}{\textsuperscript{th}}
64 \newcommand{\st}{\textsuperscript{st}}
65 \newcommand{\nd}{\textsuperscript{nd}}
66 \newcommand{\rd}{\textsuperscript{rd}}
69 %%%% BEGIN DEBUG %%%%
70 %\usepackage{showidx}
71 %\doublespace
72 %%%% END DEBUG %%%%
75 % font
76 \usepackage[T1]{fontenc}
77 \usepackage[sc,osf]{mathpazo}
78 \linespread{1.05} % Palatino needs more leading (space between lines)
79 %\linespread{2.05} % for debugging
83 \usepackage{listings}
84 \lstset{
85 basicstyle=\ttfamily\footnotesize,
86 numberstyle=\tiny,
87 basewidth=0.45em,
88 numbers=left,
89 stepnumber=1,
90 numbersep=2em,
91 showstringspaces=true,
92 showtabs=true,
93 tab=\rightarrowfill,
94 frame=lines,
95 tabsize=4,
96 captionpos=b,
97 breaklines=false,
98 breakatwhitespace=true
99 }
102 \newenvironment{code}[2] {
103 \begin{center}
104 \lstset{label=#1,caption=#2}
105 \begin{list}{}{\setlength{\rightmargin}{2em}\setlength{\leftmargin}{2em}}
106 \item\ttfamily\footnotesize
107 }{
108 \end{list}
109 \end{center}
110 }