docs/diploma
view thesis/thesis.sty @ 120:3b5e6ffd7b27
typographic cleanups
author | meillo@marmaro.de |
---|---|
date | Thu, 04 Dec 2008 00:19:19 +0100 |
parents | e050221efd38 |
children | aa1fb227e68e |
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}{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}}
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)
71 %\linespread{2.05} % for debugging
75 \usepackage{listings}
76 \lstset{
77 basicstyle=\ttfamily\footnotesize,
78 numberstyle=\tiny,
79 basewidth=0.45em,
80 numbers=left,
81 stepnumber=1,
82 numbersep=2em,
83 showstringspaces=true,
84 showtabs=true,
85 tab=\rightarrowfill,
86 frame=lines,
87 tabsize=4,
88 captionpos=b,
89 breaklines=false,
90 breakatwhitespace=true
91 }
94 \newenvironment{code}[2] {
95 \begin{center}
96 \lstset{label=#1,caption=#2}
97 \begin{list}{}{\setlength{\rightmargin}{2em}\setlength{\leftmargin}{2em}}
98 \item\ttfamily\footnotesize
99 }{
100 \end{list}
101 \end{center}
102 }