docs/diploma
view thesis/thesis.sty @ 182:e35c7962d84f
wrote about spool file and permissions
author | meillo@marmaro.de |
---|---|
date | Sun, 28 Dec 2008 18:50:23 +0100 |
parents | 653ff21b89be |
children | d5800d07e08c |
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}}
60 \newcommand{\nth}{\textsuperscript{th}}
61 \newcommand{\st}{\textsuperscript{st}}
62 \newcommand{\nd}{\textsuperscript{nd}}
63 \newcommand{\rd}{\textsuperscript{rd}}
66 %%%% BEGIN DEBUG %%%%
67 %\usepackage{showidx}
68 %\doublespace
69 %%%% END DEBUG %%%%
72 % font
73 \usepackage[T1]{fontenc}
74 \usepackage[sc,osf]{mathpazo}
75 \linespread{1.05} % Palatino needs more leading (space between lines)
76 %\linespread{2.05} % for debugging
80 \usepackage{listings}
81 \lstset{
82 basicstyle=\ttfamily\footnotesize,
83 numberstyle=\tiny,
84 basewidth=0.45em,
85 numbers=left,
86 stepnumber=1,
87 numbersep=2em,
88 showstringspaces=true,
89 showtabs=true,
90 tab=\rightarrowfill,
91 frame=lines,
92 tabsize=4,
93 captionpos=b,
94 breaklines=false,
95 breakatwhitespace=true
96 }
99 \newenvironment{code}[2] {
100 \begin{center}
101 \lstset{label=#1,caption=#2}
102 \begin{list}{}{\setlength{\rightmargin}{2em}\setlength{\leftmargin}{2em}}
103 \item\ttfamily\footnotesize
104 }{
105 \end{list}
106 \end{center}
107 }