docs/diploma

changeset 24:563205a1b07e

the header is now a package
author meillo@marmaro.de
date Thu, 02 Oct 2008 15:28:42 +0200
parents 46ad351aca99
children 33149fbcac81
files thesis/tex/header.tex thesis/thesis.sty thesis/thesis.tex
diffstat 3 files changed, 97 insertions(+), 96 deletions(-) [+]
line diff
     1.1 --- a/thesis/tex/header.tex	Thu Oct 02 10:05:45 2008 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,94 +0,0 @@
     1.4 -\documentclass[english,a4paper,twoside,openright]{report}
     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 -
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/thesis/thesis.sty	Thu Oct 02 15:28:42 2008 +0200
     2.3 @@ -0,0 +1,94 @@
     2.4 +\ProvidesPackage{thesis}
     2.5 +
     2.6 +  \usepackage[utf8]{inputenc}
     2.7 +  \usepackage{graphicx}
     2.8 +	\usepackage{url}
     2.9 +
    2.10 +	\usepackage{makeidx}
    2.11 +	\makeindex
    2.12 +
    2.13 +  \setlength{\parindent}{0em}
    2.14 +  \setlength{\parskip}{1.0ex plus 1.0ex minus 0.5ex}
    2.15 +  \setcounter{tocdepth}{3}
    2.16 +
    2.17 +  \pagestyle{headings}
    2.18 +  %\pagestyle{fancy}
    2.19 +	%\lhead[\leftmark]{\thepage}
    2.20 +	%\chead[]{}
    2.21 +	%\rhead[\thepage]{\rightmark}
    2.22 +  %\ifoot[\textsc{Markus Schnalke}]{\textsc{Markus Schnalke}}
    2.23 +  %\cfoot[]{}
    2.24 +  %\ofoot[\thepage]{\thepage}
    2.25 +
    2.26 +	\usepackage{setspace}
    2.27 +	\usepackage{relsize}
    2.28 +
    2.29 +	% formating
    2.30 +  \renewcommand{\path}[1]{\textit{#1}}
    2.31 +  \newcommand{\name}[1]{\emph{#1}}
    2.32 +	\newcommand{\NAME}[1]{{\smaller\textsc{#1}\larger}}
    2.33 +
    2.34 +  % \newcommand{\source}[1]{\hspace{1em}\textit{\scriptsize(Quelle: #1)}}
    2.35 +	\let\OLDcleardoublepage\cleardoublepage
    2.36 +	\renewcommand{\cleardoublepage}{\thispagestyle{empty}\OLDcleardoublepage}
    2.37 +
    2.38 +	% shortcuts
    2.39 +	\newcommand{\masqmail}{\name{masqmail}}
    2.40 +	\newcommand{\sendmail}{\name{sendmail}}
    2.41 +	\newcommand{\mta}{\name{mail transfer agent}}
    2.42 +	\newcommand{\email}{\name{email}}
    2.43 +	\newcommand{\debian}{\name{Debian}}
    2.44 +	\newcommand{\linux}{\name{Linux}}
    2.45 +	\newcommand{\gnulinux}{\NAME{GNU}/\name{Linux}}
    2.46 +	\newcommand{\MTA}{\NAME{MTA}}
    2.47 +	\newcommand{\RFC}{\NAME{RFC}}
    2.48 +	\newcommand{\GNU}{\NAME{GNU}}
    2.49 +
    2.50 +	\newcommand{\nth}{\textsuperscript{th}}
    2.51 +	\newcommand{\st}{\textsuperscript{st}}
    2.52 +	\newcommand{\nd}{\textsuperscript{nd}}
    2.53 +	\newcommand{\rd}{\textsuperscript{rd}}
    2.54 +
    2.55 +
    2.56 +	%%%% BEGIN DEBUG %%%%
    2.57 +	%\usepackage{showidx}
    2.58 +	%\doublespace
    2.59 +	%%%% END DEBUG %%%%
    2.60 +
    2.61 +
    2.62 +	% font
    2.63 +	\usepackage[T1]{fontenc}
    2.64 +	\usepackage[sc,osf]{mathpazo}
    2.65 +	\linespread{1.05}         % Palatino needs more leading (space between lines)
    2.66 +
    2.67 +
    2.68 +
    2.69 +  \usepackage{listings}
    2.70 +	\lstset{
    2.71 +		basicstyle=\ttfamily\footnotesize,
    2.72 +		numberstyle=\tiny,
    2.73 +		basewidth=0.45em,
    2.74 +		numbers=left,
    2.75 +		stepnumber=1,
    2.76 +		numbersep=2em,
    2.77 +		showstringspaces=true,
    2.78 +		showtabs=true,
    2.79 +		tab=\rightarrowfill,
    2.80 +		frame=lines,
    2.81 +		tabsize=4,
    2.82 +		captionpos=b,
    2.83 +		breaklines=false,
    2.84 +		breakatwhitespace=true
    2.85 +	}
    2.86 +
    2.87 +
    2.88 +	\newenvironment{code}[2] {
    2.89 +		\begin{center}
    2.90 +		\lstset{label=#1,caption=#2}
    2.91 +		\begin{list}{}{\setlength{\rightmargin}{2em}\setlength{\leftmargin}{2em}}
    2.92 +		\item\ttfamily\footnotesize
    2.93 +	}{
    2.94 +		\end{list}
    2.95 +		\end{center}
    2.96 +	}
    2.97 +
     3.1 --- a/thesis/thesis.tex	Thu Oct 02 10:05:45 2008 +0200
     3.2 +++ b/thesis/thesis.tex	Thu Oct 02 15:28:42 2008 +0200
     3.3 @@ -3,12 +3,13 @@
     3.4  % @author  markus schnalke <meillo@marmaro.de>
     3.5  % @since   2008-09-16
     3.6  
     3.7 +\documentclass[english,a4paper,twoside,openright]{report}
     3.8 +\usepackage{thesis}
     3.9 +
    3.10  \title{diploma thesis about masqmail}
    3.11  \author{markus schnalke}
    3.12  \date{2008-09-16}
    3.13  
    3.14 -
    3.15 -\input{tex/header}
    3.16  \begin{document}
    3.17  
    3.18  \pagenumbering{roman}