]> git.somenet.org - pub/jan/digfor.git/blob - report1/main.tex
added report for assignment1.
[pub/jan/digfor.git] / report1 / main.tex
1 \RequirePackage{snapshot} % stats of included files: $filename.dep
2
3 \documentclass[10pt,a5paper,twoside,openright,onecolumn,ngerman]{article}
4 \usepackage[ngerman]{babel}
5
6 %%%%% Formatting and encoding %%%%%
7 % encoding
8 \usepackage[T1]{fontenc}
9 \usepackage[utf8]{inputenc}
10
11 % page
12 \usepackage[columnsep=.75cm,lmargin=.75cm,rmargin=.75cm,tmargin=1.5cm,bmargin=1.5cm]{geometry}
13 \setlength{\parindent}{0pt}
14
15 \usepackage{fancyhdr}
16 \pagestyle{fancy}
17 \lhead{}
18 \chead{}
19 \rhead{}
20 \cfoot{}
21 \fancyhead[LE,RO]{\leftmark}
22 \fancyfoot[LE,RO]{\thepage}
23
24 % Use sans serif font.
25 \renewcommand*{\familydefault}{\sfdefault}
26
27 % change heading fontsizes.
28 \usepackage{sectsty}
29 \subsectionfont{\normalsize}
30 \subsubsectionfont{\small}
31
32 % \chapter hacks
33 % Create \Hide command (used for chapters)
34 \usepackage[explicit]{titlesec}
35 \newcommand*\Hide{\titleformat{\chapter}[display]{}{}{0pt}{\Huge}\titleformat{\part}{}{}{0pt}{}}
36
37 % inhibit creation of new double page on new chapter.
38 \usepackage{etoolbox}
39 \makeatletter
40 \patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{}{}{}
41 \makeatother
42
43 % change heading margins.
44 \titlespacing*{\chapter}{0pt}{0pt}{-40pt}
45 \titlespacing*{\section}{0pt}{9pt}{3pt}
46 \titlespacing*{\subsection}{0pt}{6pt}{0pt}
47 \titlespacing*{\subsubsection}{0pt}{0pt}{0pt}
48
49 % make \paragraph do newlines
50 \makeatletter
51 \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}
52   {-.75ex \@plus -1ex \@minus -0.2ex}
53   {0.01pt}
54   {\normalfont\normalsize\bfseries}
55 }
56 \makeatother
57
58 %%% TOC changes %%%
59 % inhibit "Contents" Head in TOC
60 \makeatletter
61 \renewcommand\tableofcontents{\@starttoc{toc}}
62 \makeatother
63
64 %make toc consider Chapter and section only.
65 \setcounter{tocdepth}{1}
66
67 % disable chapter, section, ... numbering
68 \setcounter{secnumdepth}{-1}
69
70 % change margin above chapter.
71 \usepackage[titles]{tocloft}
72 %%% /TOC changes %%%
73
74 % make footnote numbering reset on every page.
75 \usepackage[hang,flushmargin,perpage]{footmisc}
76 %%%%% / Formatting %%%%%
77
78 % includable git commit info
79 \usepackage[missing=run\ build.sh\ or\ gitinfohook.sh]{gitinfo}
80
81 % Fürs "last generated" Datum
82 \usepackage[iso]{isodate}
83
84 % Image import stuff
85 \usepackage[absolute]{textpos}
86 \usepackage{graphicx}
87 \DeclareGraphicsExtensions{.pdf,.png,.jpg}
88
89 % clickable references/links/...
90 \usepackage{hyperref}
91
92 % euro-sign
93 \usepackage{eurosym}
94 \DeclareUnicodeCharacter{20AC}{\euro}
95
96 % frames
97 \usepackage[framemethod=default]{mdframed}
98 \newmdenv[linecolor=red,backgroundcolor=yellow]{yellowframe}
99
100 % quotes
101 \usepackage[babel,german=quotes]{csquotes}
102
103
104 % START DOCUMENT
105 \begin{document}\thispagestyle{empty}
106
107 \section*{Inhalt}\begin{footnotesize}\tableofcontents\end{footnotesize}
108 \subsection{Version}\begin{footnotesize}\url{http://git.somenet.org/?p=fsinf/basics.git}\\
109 \url{ssh://git@git.somenet.org:666/fsinf/basics}\\
110 This is revision: \textbf{\gitAbbrevHash}. Document (.tex) compiled on: \textbf{\today}
111 \end{footnotesize}\vspace{\fill}\newpage
112
113 \section{asd}
114 ads
115
116 \section{asd}
117 asd
118
119 \end{document}