Mercurial > docs > diploma
annotate thesis/thesis.sty @ 247:50240b753a46
added a sample email
author | meillo@marmaro.de |
---|---|
date | Sun, 11 Jan 2009 20:26:33 +0100 |
parents | aff94e950f39 |
children | 807660903834 |
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}} |
237 | 59 \newcommand{\TODO}{\NAME{TODO}\,} |
60 \newcommand{\RF}{\NAME{RF}\,} | |
61 \newcommand{\RG}{\NAME{RG}\,} | |
242 | 62 \newcommand{\RA}{\NAME{RA}\,} |
63 \newcommand{\St}{\NAME{S}\,} | |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
64 |
19 | 65 \newcommand{\nth}{\textsuperscript{th}} |
66 \newcommand{\st}{\textsuperscript{st}} | |
67 \newcommand{\nd}{\textsuperscript{nd}} | |
68 \newcommand{\rd}{\textsuperscript{rd}} | |
69 | |
70 | |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
71 %%%% BEGIN DEBUG %%%% |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
72 %\usepackage{showidx} |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
73 %\doublespace |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
74 %%%% END DEBUG %%%% |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
75 |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
76 |
13 | 77 % font |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
78 \usepackage[T1]{fontenc} |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
79 \usepackage[sc,osf]{mathpazo} |
46 | 80 \linespread{1.05} % Palatino needs more leading (space between lines) |
119 | 81 %\linespread{2.05} % for debugging |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
82 |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
83 |
10 | 84 |
46 | 85 \usepackage{listings} |
10 | 86 \lstset{ |
87 basicstyle=\ttfamily\footnotesize, | |
88 numberstyle=\tiny, | |
89 basewidth=0.45em, | |
90 numbers=left, | |
91 stepnumber=1, | |
92 numbersep=2em, | |
93 showstringspaces=true, | |
94 showtabs=true, | |
95 tab=\rightarrowfill, | |
96 frame=lines, | |
97 tabsize=4, | |
98 captionpos=b, | |
99 breaklines=false, | |
100 breakatwhitespace=true | |
101 } | |
102 | |
103 | |
104 \newenvironment{code}[2] { | |
105 \begin{center} | |
106 \lstset{label=#1,caption=#2} | |
107 \begin{list}{}{\setlength{\rightmargin}{2em}\setlength{\leftmargin}{2em}} | |
108 \item\ttfamily\footnotesize | |
109 }{ | |
110 \end{list} | |
111 \end{center} | |
112 } | |
113 | |
133
653ff21b89be
the last commit had a bad message better is:
meillo@marmaro.de
parents:
132
diff
changeset
|
114 |