]> git.somenet.org - fsinf/pub/cheatsheet.git/blob - main.tex
update git url + remove mm.fsinf.at
[fsinf/pub/cheatsheet.git] / main.tex
1 \RequirePackage{snapshot} % stats of included files: $filename.dep
2
3 \documentclass[10pt,a5paper,twoside,openright,twocolumn,ngerman]{book}
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=1cm,bmargin=1cm]{geometry}
13 \setlength{\parindent}{0pt}
14
15 % Use sans serif font.
16 \renewcommand*{\familydefault}{\sfdefault}
17
18 % change heading fontsizes.
19 \usepackage{sectsty}
20 \subsectionfont{\normalsize}
21 \subsubsectionfont{\small}
22
23 % \chapter hacks
24 % Create \Hide command (used for chapters)
25 \usepackage[explicit]{titlesec}
26 \newcommand*\Hide{\titleformat{\chapter}[display]{}{}{0pt}{\Huge}\titleformat{\part}{}{}{0pt}{}}
27
28 % inhibit creation of new double page on new chapter.
29 \usepackage{etoolbox}
30 \makeatletter
31 \patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{}{}{}
32 \makeatother
33
34 % change heading margins.
35 \titlespacing*{\chapter}{0pt}{0pt}{-40pt}
36 \titlespacing*{\section}{0pt}{9pt}{3pt}
37 \titlespacing*{\subsection}{0pt}{6pt}{0pt}
38 \titlespacing*{\subsubsection}{0pt}{0pt}{0pt}
39
40 % make \paragraph do newlines
41 \makeatletter
42 \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}
43   {-.75ex \@plus -1ex \@minus -0.2ex}
44   {0.01pt}
45   {\normalfont\normalsize\bfseries}
46 }
47 \makeatother
48
49 %%% TOC changes %%%
50 % inhibit "Contents" Head in TOC
51 % disable chapter, section, ... numbering
52 \setcounter{secnumdepth}{-1}
53 %%%%% / Formatting %%%%%
54
55 % includable git commit info
56 \usepackage[missing=run\ build.sh\ or\ gitinfohook.sh]{gitinfo}
57
58 % Fürs "last generated" Datum
59 \usepackage[iso]{isodate}
60
61 % Image import stuff
62 \usepackage[absolute]{textpos}
63 \usepackage{graphicx}
64 \DeclareGraphicsExtensions{.pdf,.png,.jpg}
65
66 % clickable references/links/...
67 \usepackage{hyperref}
68
69 % euro-sign
70 \usepackage{eurosym}
71 \DeclareUnicodeCharacter{20AC}{\euro}
72
73 % frames
74 \usepackage[framemethod=default]{mdframed}
75 \newmdenv[linecolor=red,backgroundcolor=yellow]{yellowframe}
76
77 % quotes
78 \usepackage[babel,german=quotes]{csquotes}
79
80 % include pdf
81 \usepackage{pdfpages}
82
83
84 % START DOCUMENT
85 \begin{document}\thispagestyle{empty}
86 \begin{textblock*}{\paperwidth}(0mm,0mm)\noindent\includegraphics[width=\paperwidth,height=\paperheight]{images/cover_front.png}
87 \end{textblock*}
88 \mbox{}\newpage
89
90 %\small
91
92 \onecolumn
93 \thispagestyle{empty}
94 \input{articles/adressen.tex}
95
96 \vspace{\fill}\scriptsize
97 \subsection{Git-repository}
98 \url{https://git.somenet.org/fsinf/pub/cheatsheet.git} Revision: \textbf{\gitAbbrevHash} Document (.tex) compiled on: \textbf{\today}
99
100 %\vspace{\fill}\newpage\thispagestyle{empty}
101 %\input{articles/info.tex}
102
103 %\vspace{\fill}\newpage\thispagestyle{empty}
104 %\begin{textblock*}{\paperwidth}(0mm,0mm)\noindent\includepdf[pages=1,angle=90]{articles/gutGeb.pdf}
105 %\end{textblock*}
106 \end{document}