changeset 24:563205a1b07e

the header is now a package
author meillo@marmaro.de
date Thu, 02 Oct 2008 15:28:42 +0200 (2008-10-02)
parents 46ad351aca99
children 33149fbcac81
files thesis/tex/header.tex thesis/thesis.sty thesis/thesis.tex
diffstat 3 files changed, 97 insertions(+), 96 deletions(-) [+]
line wrap: on
line diff
--- a/thesis/tex/header.tex	Thu Oct 02 10:05:45 2008 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,94 +0,0 @@
-\documentclass[english,a4paper,twoside,openright]{report}
-
-  \usepackage[utf8]{inputenc}
-  \usepackage{graphicx}
-	\usepackage{url}
-
-	\usepackage{makeidx}
-	\makeindex
-
-  \setlength{\parindent}{0em}
-  \setlength{\parskip}{1.0ex plus 1.0ex minus 0.5ex}
-  \setcounter{tocdepth}{3}
-
-  \pagestyle{headings}
-  %\pagestyle{fancy}
-	%\lhead[\leftmark]{\thepage}
-	%\chead[]{}
-	%\rhead[\thepage]{\rightmark}
-  %\ifoot[\textsc{Markus Schnalke}]{\textsc{Markus Schnalke}}
-  %\cfoot[]{}
-  %\ofoot[\thepage]{\thepage}
-
-	\usepackage{setspace}
-	\usepackage{relsize}
-
-	% formating
-  \renewcommand{\path}[1]{\textit{#1}}
-  \newcommand{\name}[1]{\emph{#1}}
-	\newcommand{\NAME}[1]{{\smaller\textsc{#1}\larger}}
-
-  % \newcommand{\source}[1]{\hspace{1em}\textit{\scriptsize(Quelle: #1)}}
-	\let\OLDcleardoublepage\cleardoublepage
-	\renewcommand{\cleardoublepage}{\thispagestyle{empty}\OLDcleardoublepage}
-
-	% shortcuts
-	\newcommand{\masqmail}{\name{masqmail}}
-	\newcommand{\sendmail}{\name{sendmail}}
-	\newcommand{\mta}{\name{mail transfer agent}}
-	\newcommand{\email}{\name{email}}
-	\newcommand{\debian}{\name{Debian}}
-	\newcommand{\linux}{\name{Linux}}
-	\newcommand{\gnulinux}{\NAME{GNU}/\name{Linux}}
-	\newcommand{\MTA}{\NAME{MTA}}
-	\newcommand{\RFC}{\NAME{RFC}}
-	\newcommand{\GNU}{\NAME{GNU}}
-
-	\newcommand{\nth}{\textsuperscript{th}}
-	\newcommand{\st}{\textsuperscript{st}}
-	\newcommand{\nd}{\textsuperscript{nd}}
-	\newcommand{\rd}{\textsuperscript{rd}}
-
-
-	%%%% BEGIN DEBUG %%%%
-	%\usepackage{showidx}
-	%\doublespace
-	%%%% END DEBUG %%%%
-
-
-	% font
-	\usepackage[T1]{fontenc}
-	\usepackage[sc,osf]{mathpazo}
-	\linespread{1.05}         % Palatino needs more leading (space between lines)
-
-
-
-  \usepackage{listings}
-	\lstset{
-		basicstyle=\ttfamily\footnotesize,
-		numberstyle=\tiny,
-		basewidth=0.45em,
-		numbers=left,
-		stepnumber=1,
-		numbersep=2em,
-		showstringspaces=true,
-		showtabs=true,
-		tab=\rightarrowfill,
-		frame=lines,
-		tabsize=4,
-		captionpos=b,
-		breaklines=false,
-		breakatwhitespace=true
-	}
-
-
-	\newenvironment{code}[2] {
-		\begin{center}
-		\lstset{label=#1,caption=#2}
-		\begin{list}{}{\setlength{\rightmargin}{2em}\setlength{\leftmargin}{2em}}
-		\item\ttfamily\footnotesize
-	}{
-		\end{list}
-		\end{center}
-	}
-
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/thesis/thesis.sty	Thu Oct 02 15:28:42 2008 +0200
@@ -0,0 +1,94 @@
+\ProvidesPackage{thesis}
+
+  \usepackage[utf8]{inputenc}
+  \usepackage{graphicx}
+	\usepackage{url}
+
+	\usepackage{makeidx}
+	\makeindex
+
+  \setlength{\parindent}{0em}
+  \setlength{\parskip}{1.0ex plus 1.0ex minus 0.5ex}
+  \setcounter{tocdepth}{3}
+
+  \pagestyle{headings}
+  %\pagestyle{fancy}
+	%\lhead[\leftmark]{\thepage}
+	%\chead[]{}
+	%\rhead[\thepage]{\rightmark}
+  %\ifoot[\textsc{Markus Schnalke}]{\textsc{Markus Schnalke}}
+  %\cfoot[]{}
+  %\ofoot[\thepage]{\thepage}
+
+	\usepackage{setspace}
+	\usepackage{relsize}
+
+	% formating
+  \renewcommand{\path}[1]{\textit{#1}}
+  \newcommand{\name}[1]{\emph{#1}}
+	\newcommand{\NAME}[1]{{\smaller\textsc{#1}\larger}}
+
+  % \newcommand{\source}[1]{\hspace{1em}\textit{\scriptsize(Quelle: #1)}}
+	\let\OLDcleardoublepage\cleardoublepage
+	\renewcommand{\cleardoublepage}{\thispagestyle{empty}\OLDcleardoublepage}
+
+	% shortcuts
+	\newcommand{\masqmail}{\name{masqmail}}
+	\newcommand{\sendmail}{\name{sendmail}}
+	\newcommand{\mta}{\name{mail transfer agent}}
+	\newcommand{\email}{\name{email}}
+	\newcommand{\debian}{\name{Debian}}
+	\newcommand{\linux}{\name{Linux}}
+	\newcommand{\gnulinux}{\NAME{GNU}/\name{Linux}}
+	\newcommand{\MTA}{\NAME{MTA}}
+	\newcommand{\RFC}{\NAME{RFC}}
+	\newcommand{\GNU}{\NAME{GNU}}
+
+	\newcommand{\nth}{\textsuperscript{th}}
+	\newcommand{\st}{\textsuperscript{st}}
+	\newcommand{\nd}{\textsuperscript{nd}}
+	\newcommand{\rd}{\textsuperscript{rd}}
+
+
+	%%%% BEGIN DEBUG %%%%
+	%\usepackage{showidx}
+	%\doublespace
+	%%%% END DEBUG %%%%
+
+
+	% font
+	\usepackage[T1]{fontenc}
+	\usepackage[sc,osf]{mathpazo}
+	\linespread{1.05}         % Palatino needs more leading (space between lines)
+
+
+
+  \usepackage{listings}
+	\lstset{
+		basicstyle=\ttfamily\footnotesize,
+		numberstyle=\tiny,
+		basewidth=0.45em,
+		numbers=left,
+		stepnumber=1,
+		numbersep=2em,
+		showstringspaces=true,
+		showtabs=true,
+		tab=\rightarrowfill,
+		frame=lines,
+		tabsize=4,
+		captionpos=b,
+		breaklines=false,
+		breakatwhitespace=true
+	}
+
+
+	\newenvironment{code}[2] {
+		\begin{center}
+		\lstset{label=#1,caption=#2}
+		\begin{list}{}{\setlength{\rightmargin}{2em}\setlength{\leftmargin}{2em}}
+		\item\ttfamily\footnotesize
+	}{
+		\end{list}
+		\end{center}
+	}
+
--- a/thesis/thesis.tex	Thu Oct 02 10:05:45 2008 +0200
+++ b/thesis/thesis.tex	Thu Oct 02 15:28:42 2008 +0200
@@ -3,12 +3,13 @@
 % @author  markus schnalke <meillo@marmaro.de>
 % @since   2008-09-16
 
+\documentclass[english,a4paper,twoside,openright]{report}
+\usepackage{thesis}
+
 \title{diploma thesis about masqmail}
 \author{markus schnalke}
 \date{2008-09-16}
 
-
-\input{tex/header}
 \begin{document}
 
 \pagenumbering{roman}