From c61a1d1756e84066908af422288ae3772e14c0b6 Mon Sep 17 00:00:00 2001
From: Daniel Schadt
Date: Mon, 15 Jul 2019 15:26:10 +0200
Subject: split off common elements
this makes it easier to add new guides in the same style without needing
to repeat the whole preamble.
---
preamble.tex | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 96 insertions(+)
create mode 100644 preamble.tex
(limited to 'preamble.tex')
diff --git a/preamble.tex b/preamble.tex
new file mode 100644
index 0000000..a51a5ae
--- /dev/null
+++ b/preamble.tex
@@ -0,0 +1,96 @@
+\usepackage[top=2cm,bottom=2cm,left=2cm,right=2cm]{geometry}
+\usepackage{hyperref}
+\usepackage{ccicons}
+\usepackage{graphicx}
+\usepackage{csquotes}
+\usepackage[many]{tcolorbox}
+\usepackage{xcolor}
+
+
+\setlength{\parskip}{1em}
+
+% Macros to differentiate between HTML and PDF output
+\makeatletter
+\@ifpackageloaded{tex4ht}
+ {\let\iftexforht\iftrue}
+ {\let\iftexforht\iffalse}
+\@ifpackageloaded{tex4ht}
+ {\let\iftexforhtTF\@firstoftwo}
+ {\let\iftexforhtTF\@secondoftwo}
+\makeatother
+
+% Problem with ligatures, so don't load font in HTML output
+\iftexforht
+\else
+\usepackage[urw-garamond]{mathdesign}
+\usepackage[T1]{fontenc}
+\fi
+
+
+\iftexforht
+\newenvironment{infobox}[1][]{
+ \HCode{