Mercurial > docs > diploma
annotate thesis/thesis.sty @ 226:99ad9d520add fifth preview version for Schaeffter
Added tag proof-read version for ben and james (ch234) for changeset 47af8eb539cf
author | meillo@marmaro.de |
---|---|
date | Tue, 06 Jan 2009 19:00:14 +0100 |
parents | 5c873e6478ef |
children | d5800d07e08c |
rev | line source |
---|---|
24 | 1 \ProvidesPackage{thesis} |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
2 |
46 | 3 \usepackage[utf8]{inputenc} |
4 \usepackage{graphicx} | |
10 | 5 \usepackage{url} |
6 | |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
7 \usepackage{makeidx} |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
8 \makeindex |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
9 |
54
da11c1b9e8cb
splitted bib into 2 parts: books and web (using multibib)
meillo@marmaro.de
parents:
46
diff
changeset
|
10 \usepackage{multibib} |
131
a496788a30b3
bib stuff: Ref on the Internet -> Websites
meillo@marmaro.de
parents:
125
diff
changeset
|
11 \newcites{web}{Websites} |
54
da11c1b9e8cb
splitted bib into 2 parts: books and web (using multibib)
meillo@marmaro.de
parents:
46
diff
changeset
|
12 |
46 | 13 \setlength{\parindent}{0em} |
14 \setlength{\parskip}{1.0ex plus 1.0ex minus 0.5ex} | |
92 | 15 \setcounter{tocdepth}{2} |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
16 |
46 | 17 \pagestyle{headings} |
18 %\pagestyle{fancy} | |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
19 %\lhead[\leftmark]{\thepage} |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
20 %\chead[]{} |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
21 %\rhead[\thepage]{\rightmark} |
46 | 22 %\ifoot[\textsc{Markus Schnalke}]{\textsc{Markus Schnalke}} |
23 %\cfoot[]{} | |
24 %\ofoot[\thepage]{\thepage} | |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
25 |
13 | 26 \usepackage{setspace} |
27 \usepackage{relsize} | |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
28 |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
29 % formating |
46 | 30 \renewcommand{\path}[1]{\textit{#1}} |
31 \newcommand{\name}[1]{\emph{#1}\index{#1}} | |
32 \newcommand{\NAME}[1]{{\smaller\textsc{#1}}\index{#1}} | |
132 | 33 \newcommand{\person}[1]{\textsc{#1}} |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
34 |
46 | 35 % \newcommand{\source}[1]{\hspace{1em}\textit{\scriptsize(Quelle: #1)}} |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
36 \let\OLDcleardoublepage\cleardoublepage |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
37 \renewcommand{\cleardoublepage}{\thispagestyle{empty}\OLDcleardoublepage} |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
38 |
13 | 39 % shortcuts |
40 \newcommand{\masqmail}{\name{masqmail}} | |
41 \newcommand{\sendmail}{\name{sendmail}} | |
132 | 42 \newcommand{\qmail}{\name{qmail}} |
43 \newcommand{\exim}{\name{exim}} | |
44 \newcommand{\postfix}{\name{postfix}} | |
125 | 45 \newcommand{\mta}{mail transfer agent} |
46 \newcommand{\email}{email} | |
13 | 47 \newcommand{\debian}{\name{Debian}} |
48 \newcommand{\linux}{\name{Linux}} | |
49 \newcommand{\gnulinux}{\NAME{GNU}/\name{Linux}} | |
50 \newcommand{\MTA}{\NAME{MTA}} | |
51 \newcommand{\RFC}{\NAME{RFC}} | |
52 \newcommand{\GNU}{\NAME{GNU}} | |
28 | 53 \newcommand{\unix}{\name{Unix}} |
125 | 54 \newcommand{\freesw}{Free Software} |
55 \newcommand{\gpl}{General Public License} | |
37
225669a51b11
new text about free software projects and more
meillo@marmaro.de
parents:
28
diff
changeset
|
56 \newcommand{\GPL}{\NAME{GPL}} |
77 | 57 \newcommand{\SMTP}{\NAME{SMTP}} |
172 | 58 \newcommand{\TLS}{\NAME{TLS}} |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
59 |
19 | 60 \newcommand{\nth}{\textsuperscript{th}} |
61 \newcommand{\st}{\textsuperscript{st}} | |
62 \newcommand{\nd}{\textsuperscript{nd}} | |
63 \newcommand{\rd}{\textsuperscript{rd}} | |
64 | |
65 | |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
66 %%%% BEGIN DEBUG %%%% |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
67 %\usepackage{showidx} |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
68 %\doublespace |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
69 %%%% END DEBUG %%%% |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
70 |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
71 |
13 | 72 % font |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
73 \usepackage[T1]{fontenc} |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
74 \usepackage[sc,osf]{mathpazo} |
46 | 75 \linespread{1.05} % Palatino needs more leading (space between lines) |
119 | 76 %\linespread{2.05} % for debugging |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
77 |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
78 |
10 | 79 |
46 | 80 \usepackage{listings} |
10 | 81 \lstset{ |
82 basicstyle=\ttfamily\footnotesize, | |
83 numberstyle=\tiny, | |
84 basewidth=0.45em, | |
85 numbers=left, | |
86 stepnumber=1, | |
87 numbersep=2em, | |
88 showstringspaces=true, | |
89 showtabs=true, | |
90 tab=\rightarrowfill, | |
91 frame=lines, | |
92 tabsize=4, | |
93 captionpos=b, | |
94 breaklines=false, | |
95 breakatwhitespace=true | |
96 } | |
97 | |
98 | |
99 \newenvironment{code}[2] { | |
100 \begin{center} | |
101 \lstset{label=#1,caption=#2} | |
102 \begin{list}{}{\setlength{\rightmargin}{2em}\setlength{\leftmargin}{2em}} | |
103 \item\ttfamily\footnotesize | |
104 }{ | |
105 \end{list} | |
106 \end{center} | |
107 } | |
108 | |
133
653ff21b89be
the last commit had a bad message better is:
meillo@marmaro.de
parents:
132
diff
changeset
|
109 |