docs/diploma

diff thesis/thesis.sty @ 24:563205a1b07e

the header is now a package
author meillo@marmaro.de
date Thu, 02 Oct 2008 15:28:42 +0200
parents thesis/tex/header.tex@caac61e854e8
children 01f154f8f477
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/thesis/thesis.sty	Thu Oct 02 15:28:42 2008 +0200
     1.3 @@ -0,0 +1,94 @@
     1.4 +\ProvidesPackage{thesis}
     1.5 +
     1.6 +  \usepackage[utf8]{inputenc}
     1.7 +  \usepackage{graphicx}
     1.8 +	\usepackage{url}
     1.9 +
    1.10 +	\usepackage{makeidx}
    1.11 +	\makeindex
    1.12 +
    1.13 +  \setlength{\parindent}{0em}
    1.14 +  \setlength{\parskip}{1.0ex plus 1.0ex minus 0.5ex}
    1.15 +  \setcounter{tocdepth}{3}
    1.16 +
    1.17 +  \pagestyle{headings}
    1.18 +  %\pagestyle{fancy}
    1.19 +	%\lhead[\leftmark]{\thepage}
    1.20 +	%\chead[]{}
    1.21 +	%\rhead[\thepage]{\rightmark}
    1.22 +  %\ifoot[\textsc{Markus Schnalke}]{\textsc{Markus Schnalke}}
    1.23 +  %\cfoot[]{}
    1.24 +  %\ofoot[\thepage]{\thepage}
    1.25 +
    1.26 +	\usepackage{setspace}
    1.27 +	\usepackage{relsize}
    1.28 +
    1.29 +	% formating
    1.30 +  \renewcommand{\path}[1]{\textit{#1}}
    1.31 +  \newcommand{\name}[1]{\emph{#1}}
    1.32 +	\newcommand{\NAME}[1]{{\smaller\textsc{#1}\larger}}
    1.33 +
    1.34 +  % \newcommand{\source}[1]{\hspace{1em}\textit{\scriptsize(Quelle: #1)}}
    1.35 +	\let\OLDcleardoublepage\cleardoublepage
    1.36 +	\renewcommand{\cleardoublepage}{\thispagestyle{empty}\OLDcleardoublepage}
    1.37 +
    1.38 +	% shortcuts
    1.39 +	\newcommand{\masqmail}{\name{masqmail}}
    1.40 +	\newcommand{\sendmail}{\name{sendmail}}
    1.41 +	\newcommand{\mta}{\name{mail transfer agent}}
    1.42 +	\newcommand{\email}{\name{email}}
    1.43 +	\newcommand{\debian}{\name{Debian}}
    1.44 +	\newcommand{\linux}{\name{Linux}}
    1.45 +	\newcommand{\gnulinux}{\NAME{GNU}/\name{Linux}}
    1.46 +	\newcommand{\MTA}{\NAME{MTA}}
    1.47 +	\newcommand{\RFC}{\NAME{RFC}}
    1.48 +	\newcommand{\GNU}{\NAME{GNU}}
    1.49 +
    1.50 +	\newcommand{\nth}{\textsuperscript{th}}
    1.51 +	\newcommand{\st}{\textsuperscript{st}}
    1.52 +	\newcommand{\nd}{\textsuperscript{nd}}
    1.53 +	\newcommand{\rd}{\textsuperscript{rd}}
    1.54 +
    1.55 +
    1.56 +	%%%% BEGIN DEBUG %%%%
    1.57 +	%\usepackage{showidx}
    1.58 +	%\doublespace
    1.59 +	%%%% END DEBUG %%%%
    1.60 +
    1.61 +
    1.62 +	% font
    1.63 +	\usepackage[T1]{fontenc}
    1.64 +	\usepackage[sc,osf]{mathpazo}
    1.65 +	\linespread{1.05}         % Palatino needs more leading (space between lines)
    1.66 +
    1.67 +
    1.68 +
    1.69 +  \usepackage{listings}
    1.70 +	\lstset{
    1.71 +		basicstyle=\ttfamily\footnotesize,
    1.72 +		numberstyle=\tiny,
    1.73 +		basewidth=0.45em,
    1.74 +		numbers=left,
    1.75 +		stepnumber=1,
    1.76 +		numbersep=2em,
    1.77 +		showstringspaces=true,
    1.78 +		showtabs=true,
    1.79 +		tab=\rightarrowfill,
    1.80 +		frame=lines,
    1.81 +		tabsize=4,
    1.82 +		captionpos=b,
    1.83 +		breaklines=false,
    1.84 +		breakatwhitespace=true
    1.85 +	}
    1.86 +
    1.87 +
    1.88 +	\newenvironment{code}[2] {
    1.89 +		\begin{center}
    1.90 +		\lstset{label=#1,caption=#2}
    1.91 +		\begin{list}{}{\setlength{\rightmargin}{2em}\setlength{\leftmargin}{2em}}
    1.92 +		\item\ttfamily\footnotesize
    1.93 +	}{
    1.94 +		\end{list}
    1.95 +		\end{center}
    1.96 +	}
    1.97 +