Mercurial > docs > diploma
annotate thesis/thesis.sty @ 50:f944ca6dd688
added CATB cite; added unbreakable spaces
author | meillo@marmaro.de |
---|---|
date | Tue, 14 Oct 2008 21:59:22 +0200 |
parents | d3312a3b6e70 |
children | da11c1b9e8cb |
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 |
46 | 10 \setlength{\parindent}{0em} |
11 \setlength{\parskip}{1.0ex plus 1.0ex minus 0.5ex} | |
12 \setcounter{tocdepth}{3} | |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
13 |
46 | 14 \pagestyle{headings} |
15 %\pagestyle{fancy} | |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
16 %\lhead[\leftmark]{\thepage} |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
17 %\chead[]{} |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
18 %\rhead[\thepage]{\rightmark} |
46 | 19 %\ifoot[\textsc{Markus Schnalke}]{\textsc{Markus Schnalke}} |
20 %\cfoot[]{} | |
21 %\ofoot[\thepage]{\thepage} | |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
22 |
13 | 23 \usepackage{setspace} |
24 \usepackage{relsize} | |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
25 |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
26 % formating |
46 | 27 \renewcommand{\path}[1]{\textit{#1}} |
28 \newcommand{\name}[1]{\emph{#1}\index{#1}} | |
29 \newcommand{\NAME}[1]{{\smaller\textsc{#1}}\index{#1}} | |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
30 |
46 | 31 % \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
|
32 \let\OLDcleardoublepage\cleardoublepage |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
33 \renewcommand{\cleardoublepage}{\thispagestyle{empty}\OLDcleardoublepage} |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
34 |
13 | 35 % shortcuts |
36 \newcommand{\masqmail}{\name{masqmail}} | |
37 \newcommand{\sendmail}{\name{sendmail}} | |
38 \newcommand{\mta}{\name{mail transfer agent}} | |
39 \newcommand{\email}{\name{email}} | |
40 \newcommand{\debian}{\name{Debian}} | |
41 \newcommand{\linux}{\name{Linux}} | |
42 \newcommand{\gnulinux}{\NAME{GNU}/\name{Linux}} | |
43 \newcommand{\MTA}{\NAME{MTA}} | |
44 \newcommand{\RFC}{\NAME{RFC}} | |
45 \newcommand{\GNU}{\NAME{GNU}} | |
28 | 46 \newcommand{\unix}{\name{Unix}} |
37
225669a51b11
new text about free software projects and more
meillo@marmaro.de
parents:
28
diff
changeset
|
47 \newcommand{\freesw}{\name{Free Software}} |
225669a51b11
new text about free software projects and more
meillo@marmaro.de
parents:
28
diff
changeset
|
48 \newcommand{\gpl}{\name{General Public License}} |
225669a51b11
new text about free software projects and more
meillo@marmaro.de
parents:
28
diff
changeset
|
49 \newcommand{\GPL}{\NAME{GPL}} |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
50 |
19 | 51 \newcommand{\nth}{\textsuperscript{th}} |
52 \newcommand{\st}{\textsuperscript{st}} | |
53 \newcommand{\nd}{\textsuperscript{nd}} | |
54 \newcommand{\rd}{\textsuperscript{rd}} | |
55 | |
56 | |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
57 %%%% BEGIN DEBUG %%%% |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
58 %\usepackage{showidx} |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
59 %\doublespace |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
60 %%%% END DEBUG %%%% |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
61 |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
62 |
13 | 63 % font |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
64 \usepackage[T1]{fontenc} |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
65 \usepackage[sc,osf]{mathpazo} |
46 | 66 \linespread{1.05} % Palatino needs more leading (space between lines) |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
67 |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
68 |
10 | 69 |
46 | 70 \usepackage{listings} |
10 | 71 \lstset{ |
72 basicstyle=\ttfamily\footnotesize, | |
73 numberstyle=\tiny, | |
74 basewidth=0.45em, | |
75 numbers=left, | |
76 stepnumber=1, | |
77 numbersep=2em, | |
78 showstringspaces=true, | |
79 showtabs=true, | |
80 tab=\rightarrowfill, | |
81 frame=lines, | |
82 tabsize=4, | |
83 captionpos=b, | |
84 breaklines=false, | |
85 breakatwhitespace=true | |
86 } | |
87 | |
88 | |
89 \newenvironment{code}[2] { | |
90 \begin{center} | |
91 \lstset{label=#1,caption=#2} | |
92 \begin{list}{}{\setlength{\rightmargin}{2em}\setlength{\leftmargin}{2em}} | |
93 \item\ttfamily\footnotesize | |
94 }{ | |
95 \end{list} | |
96 \end{center} | |
97 } | |
98 |