Mercurial > docs > diploma
annotate thesis/thesis.sty @ 100:5a244b27a117
some excluded parts for the archive
author | meillo@marmaro.de |
---|---|
date | Wed, 19 Nov 2008 18:23:37 +0100 |
parents | e050221efd38 |
children | 73fe291f79e6 |
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} |
da11c1b9e8cb
splitted bib into 2 parts: books and web (using multibib)
meillo@marmaro.de
parents:
46
diff
changeset
|
11 \newcites{web}{References on the Internet} |
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}} | |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
33 |
46 | 34 % \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
|
35 \let\OLDcleardoublepage\cleardoublepage |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
36 \renewcommand{\cleardoublepage}{\thispagestyle{empty}\OLDcleardoublepage} |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
37 |
13 | 38 % shortcuts |
39 \newcommand{\masqmail}{\name{masqmail}} | |
40 \newcommand{\sendmail}{\name{sendmail}} | |
41 \newcommand{\mta}{\name{mail transfer agent}} | |
42 \newcommand{\email}{\name{email}} | |
43 \newcommand{\debian}{\name{Debian}} | |
44 \newcommand{\linux}{\name{Linux}} | |
45 \newcommand{\gnulinux}{\NAME{GNU}/\name{Linux}} | |
46 \newcommand{\MTA}{\NAME{MTA}} | |
47 \newcommand{\RFC}{\NAME{RFC}} | |
48 \newcommand{\GNU}{\NAME{GNU}} | |
28 | 49 \newcommand{\unix}{\name{Unix}} |
37
225669a51b11
new text about free software projects and more
meillo@marmaro.de
parents:
28
diff
changeset
|
50 \newcommand{\freesw}{\name{Free Software}} |
225669a51b11
new text about free software projects and more
meillo@marmaro.de
parents:
28
diff
changeset
|
51 \newcommand{\gpl}{\name{General Public License}} |
225669a51b11
new text about free software projects and more
meillo@marmaro.de
parents:
28
diff
changeset
|
52 \newcommand{\GPL}{\NAME{GPL}} |
77 | 53 \newcommand{\SMTP}{\NAME{SMTP}} |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
54 |
19 | 55 \newcommand{\nth}{\textsuperscript{th}} |
56 \newcommand{\st}{\textsuperscript{st}} | |
57 \newcommand{\nd}{\textsuperscript{nd}} | |
58 \newcommand{\rd}{\textsuperscript{rd}} | |
59 | |
60 | |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
61 %%%% BEGIN DEBUG %%%% |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
62 %\usepackage{showidx} |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
63 %\doublespace |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
64 %%%% END DEBUG %%%% |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
65 |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
66 |
13 | 67 % font |
8
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
68 \usepackage[T1]{fontenc} |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
69 \usepackage[sc,osf]{mathpazo} |
46 | 70 \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
|
71 |
1d35768e1643
first prototype of thesis (with some sample content)
meillo@marmaro.de
parents:
diff
changeset
|
72 |
10 | 73 |
46 | 74 \usepackage{listings} |
10 | 75 \lstset{ |
76 basicstyle=\ttfamily\footnotesize, | |
77 numberstyle=\tiny, | |
78 basewidth=0.45em, | |
79 numbers=left, | |
80 stepnumber=1, | |
81 numbersep=2em, | |
82 showstringspaces=true, | |
83 showtabs=true, | |
84 tab=\rightarrowfill, | |
85 frame=lines, | |
86 tabsize=4, | |
87 captionpos=b, | |
88 breaklines=false, | |
89 breakatwhitespace=true | |
90 } | |
91 | |
92 | |
93 \newenvironment{code}[2] { | |
94 \begin{center} | |
95 \lstset{label=#1,caption=#2} | |
96 \begin{list}{}{\setlength{\rightmargin}{2em}\setlength{\leftmargin}{2em}} | |
97 \item\ttfamily\footnotesize | |
98 }{ | |
99 \end{list} | |
100 \end{center} | |
101 } | |
102 |