docs/diploma
changeset 268:807660903834
cleanups and new codeinput command
author | meillo@marmaro.de |
---|---|
date | Thu, 15 Jan 2009 12:07:06 +0100 |
parents | 8a6b6d941bbb |
children | ddfb228a62a4 |
files | thesis/thesis.sty thesis/thesis.tex |
diffstat | 2 files changed, 62 insertions(+), 98 deletions(-) [+] |
line diff
1.1 --- a/thesis/thesis.sty Wed Jan 14 21:40:38 2009 +0100 1.2 +++ b/thesis/thesis.sty Thu Jan 15 12:07:06 2009 +0100 1.3 @@ -1,114 +1,77 @@ 1.4 \ProvidesPackage{thesis} 1.5 1.6 - \usepackage[utf8]{inputenc} 1.7 - \usepackage{graphicx} 1.8 - \usepackage{url} 1.9 +\usepackage[utf8]{inputenc} 1.10 1.11 - \usepackage{makeidx} 1.12 - \makeindex 1.13 +\usepackage{graphicx} 1.14 +\usepackage{url} 1.15 +\usepackage{relsize} % for \smaller, used in \NAME 1.16 +\usepackage{verbatim} % for \verbatiminput, used in \code 1.17 +%\usepackage{showidx} % for index-checking 1.18 1.19 - \usepackage{multibib} 1.20 - \newcites{web}{Websites} 1.21 +\usepackage{makeidx} 1.22 +\makeindex 1.23 1.24 - \setlength{\parindent}{0em} 1.25 - \setlength{\parskip}{1.0ex plus 1.0ex minus 0.5ex} 1.26 - \setcounter{tocdepth}{2} 1.27 +\usepackage{multibib} 1.28 +\newcites{web}{Websites} 1.29 1.30 - \pagestyle{headings} 1.31 - %\pagestyle{fancy} 1.32 - %\lhead[\leftmark]{\thepage} 1.33 - %\chead[]{} 1.34 - %\rhead[\thepage]{\rightmark} 1.35 - %\ifoot[\textsc{Markus Schnalke}]{\textsc{Markus Schnalke}} 1.36 - %\cfoot[]{} 1.37 - %\ofoot[\thepage]{\thepage} 1.38 +% font 1.39 +\usepackage[T1]{fontenc} 1.40 +\usepackage[sc,osf]{mathpazo} 1.41 +\linespread{1.05} % Palatino needs more leading (space between lines) 1.42 +%\linespread{2.05} % for proof-reading 1.43 1.44 - \usepackage{setspace} 1.45 - \usepackage{relsize} 1.46 1.47 - % formating 1.48 - \renewcommand{\path}[1]{\textit{#1}} 1.49 - \newcommand{\name}[1]{\emph{#1}\index{#1}} 1.50 - \newcommand{\NAME}[1]{{\smaller\textsc{#1}}\index{#1}} 1.51 - \newcommand{\person}[1]{\textsc{#1}} 1.52 1.53 - % \newcommand{\source}[1]{\hspace{1em}\textit{\scriptsize(Quelle: #1)}} 1.54 - \let\OLDcleardoublepage\cleardoublepage 1.55 - \renewcommand{\cleardoublepage}{\thispagestyle{empty}\OLDcleardoublepage} 1.56 +% global formating 1.57 +\pagestyle{headings} 1.58 +\setlength{\parindent}{0em} 1.59 +\setlength{\parskip}{1.0ex plus 1.0ex minus 0.5ex} 1.60 +\setcounter{tocdepth}{2} 1.61 +\setlength{\labelsep}{1em} 1.62 1.63 - % shortcuts 1.64 - \newcommand{\masqmail}{\name{masqmail}} 1.65 - \newcommand{\sendmail}{\name{sendmail}} 1.66 - \newcommand{\qmail}{\name{qmail}} 1.67 - \newcommand{\exim}{\name{exim}} 1.68 - \newcommand{\postfix}{\name{postfix}} 1.69 - \newcommand{\mta}{mail transfer agent} 1.70 - \newcommand{\email}{email} 1.71 - \newcommand{\debian}{\name{Debian}} 1.72 - \newcommand{\linux}{\name{Linux}} 1.73 - \newcommand{\gnulinux}{\NAME{GNU}/\name{Linux}} 1.74 - \newcommand{\MTA}{\NAME{MTA}} 1.75 - \newcommand{\RFC}{\NAME{RFC}} 1.76 - \newcommand{\GNU}{\NAME{GNU}} 1.77 - \newcommand{\unix}{\name{Unix}} 1.78 - \newcommand{\freesw}{Free Software} 1.79 - \newcommand{\gpl}{General Public License} 1.80 - \newcommand{\GPL}{\NAME{GPL}} 1.81 - \newcommand{\SMTP}{\NAME{SMTP}} 1.82 - \newcommand{\TLS}{\NAME{TLS}} 1.83 - \newcommand{\TODO}{\NAME{TODO}\,} 1.84 - \newcommand{\RF}{\NAME{RF}\,} 1.85 - \newcommand{\RG}{\NAME{RG}\,} 1.86 - \newcommand{\RA}{\NAME{RA}\,} 1.87 - \newcommand{\St}{\NAME{S}\,} 1.88 +% formating macros 1.89 +\renewcommand{\path}[1]{\textit{#1}} 1.90 +\newcommand{\name}[1]{\emph{#1}\index{#1}} 1.91 +\newcommand{\NAME}[1]{{\smaller\textsc{#1}}\index{#1}} 1.92 +\newcommand{\person}[1]{\textsc{#1}} 1.93 1.94 - \newcommand{\nth}{\textsuperscript{th}} 1.95 - \newcommand{\st}{\textsuperscript{st}} 1.96 - \newcommand{\nd}{\textsuperscript{nd}} 1.97 - \newcommand{\rd}{\textsuperscript{rd}} 1.98 +% shortcuts 1.99 +\newcommand{\masqmail}{\name{masqmail}} 1.100 +\newcommand{\sendmail}{\name{sendmail}} 1.101 +\newcommand{\qmail}{\name{qmail}} 1.102 +\newcommand{\exim}{\name{exim}} 1.103 +\newcommand{\postfix}{\name{postfix}} 1.104 +\newcommand{\mta}{mail transfer agent} 1.105 +\newcommand{\email}{email} 1.106 +\newcommand{\debian}{\name{Debian}} 1.107 +\newcommand{\linux}{\name{Linux}} 1.108 +\newcommand{\gnulinux}{\NAME{GNU}/\name{Linux}} 1.109 +\newcommand{\MTA}{\NAME{MTA}} 1.110 +\newcommand{\RFC}{\NAME{RFC}} 1.111 +\newcommand{\GNU}{\NAME{GNU}} 1.112 +\newcommand{\unix}{\name{Unix}} 1.113 +\newcommand{\freesw}{Free Software} 1.114 +\newcommand{\gpl}{General Public License} 1.115 +\newcommand{\GPL}{\NAME{GPL}} 1.116 +\newcommand{\SMTP}{\NAME{SMTP}} 1.117 +\newcommand{\TLS}{\NAME{TLS}} 1.118 +\newcommand{\TODO}{\NAME{TODO}\,} 1.119 +\newcommand{\RF}{\NAME{RF}\,} 1.120 +\newcommand{\RG}{\NAME{RG}\,} 1.121 +\newcommand{\RA}{\NAME{RA}\,} 1.122 +\newcommand{\St}{\NAME{S}\,} 1.123 1.124 +\newcommand{\nth}{\textsuperscript{th}} 1.125 +\newcommand{\st}{\textsuperscript{st}} 1.126 +\newcommand{\nd}{\textsuperscript{nd}} 1.127 +\newcommand{\rd}{\textsuperscript{rd}} 1.128 1.129 - %%%% BEGIN DEBUG %%%% 1.130 - %\usepackage{showidx} 1.131 - %\doublespace 1.132 - %%%% END DEBUG %%%% 1.133 1.134 1.135 - % font 1.136 - \usepackage[T1]{fontenc} 1.137 - \usepackage[sc,osf]{mathpazo} 1.138 - \linespread{1.05} % Palatino needs more leading (space between lines) 1.139 - %\linespread{2.05} % for debugging 1.140 +\newcommand{\codeinput}[1]{ 1.141 + \begin{quote} 1.142 + \ttfamily\footnotesize 1.143 + \verbatiminput{#1} 1.144 + \end{quote} 1.145 +} 1.146 1.147 - 1.148 - 1.149 - \usepackage{listings} 1.150 - \lstset{ 1.151 - basicstyle=\ttfamily\footnotesize, 1.152 - numberstyle=\tiny, 1.153 - basewidth=0.45em, 1.154 - numbers=left, 1.155 - stepnumber=1, 1.156 - numbersep=2em, 1.157 - showstringspaces=true, 1.158 - showtabs=true, 1.159 - tab=\rightarrowfill, 1.160 - frame=lines, 1.161 - tabsize=4, 1.162 - captionpos=b, 1.163 - breaklines=false, 1.164 - breakatwhitespace=true 1.165 - } 1.166 - 1.167 - 1.168 - \newenvironment{code}[2] { 1.169 - \begin{center} 1.170 - \lstset{label=#1,caption=#2} 1.171 - \begin{list}{}{\setlength{\rightmargin}{2em}\setlength{\leftmargin}{2em}} 1.172 - \item\ttfamily\footnotesize 1.173 - }{ 1.174 - \end{list} 1.175 - \end{center} 1.176 - } 1.177 - 1.178 -
2.1 --- a/thesis/thesis.tex Wed Jan 14 21:40:38 2009 +0100 2.2 +++ b/thesis/thesis.tex Thu Jan 15 12:07:06 2009 +0100 2.3 @@ -4,6 +4,7 @@ 2.4 % @since 2008-09-16 2.5 2.6 \documentclass[a4paper]{report} 2.7 +%\documentclass[a4paper,draft]{report} % todo: find overfull hboxes with that 2.8 \usepackage{thesis} 2.9 2.10 \title{diploma thesis about masqmail}