docs/diploma
view thesis/thesis.sty @ 88:a6f68b7d09fd
rearrangings
author | meillo@marmaro.de |
---|---|
date | Thu, 13 Nov 2008 15:30:25 +0100 |
parents | 85925a92668f |
children | e050221efd38 |
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}{1}
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}}
53 \newcommand{\SMTP}{\NAME{SMTP}}
55 \newcommand{\nth}{\textsuperscript{th}}
56 \newcommand{\st}{\textsuperscript{st}}
57 \newcommand{\nd}{\textsuperscript{nd}}
58 \newcommand{\rd}{\textsuperscript{rd}}
61 %%%% BEGIN DEBUG %%%%
62 %\usepackage{showidx}
63 %\doublespace
64 %%%% END DEBUG %%%%
67 % font
68 \usepackage[T1]{fontenc}
69 \usepackage[sc,osf]{mathpazo}
70 \linespread{1.05} % Palatino needs more leading (space between lines)
74 \usepackage{listings}
75 \lstset{
76 basicstyle=\ttfamily\footnotesize,
77 numberstyle=\tiny,
78 basewidth=0.45em,
79 numbers=left,
80 stepnumber=1,
81 numbersep=2em,
82 showstringspaces=true,
83 showtabs=true,
84 tab=\rightarrowfill,
85 frame=lines,
86 tabsize=4,
87 captionpos=b,
88 breaklines=false,
89 breakatwhitespace=true
90 }
93 \newenvironment{code}[2] {
94 \begin{center}
95 \lstset{label=#1,caption=#2}
96 \begin{list}{}{\setlength{\rightmargin}{2em}\setlength{\leftmargin}{2em}}
97 \item\ttfamily\footnotesize
98 }{
99 \end{list}
100 \end{center}
101 }