summary refs log tree commit diff stats
path: root/reference/C_Facharbeit_komplett/headers/preamble.tex
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-09-16 18:41:09 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-09-16 18:41:09 +0200
commitfc3ec276bc47d208beaf2d7602258e13de1385a1 (patch)
tree8c93831117f54c6c93831a2a0a055aeca7d7d95d /reference/C_Facharbeit_komplett/headers/preamble.tex
parentbuild(treewide): Update (diff)
downloadlpm-fc3ec276bc47d208beaf2d7602258e13de1385a1.tar.gz
lpm-fc3ec276bc47d208beaf2d7602258e13de1385a1.zip
chore(references): Add testing data
Diffstat (limited to 'reference/C_Facharbeit_komplett/headers/preamble.tex')
-rw-r--r--reference/C_Facharbeit_komplett/headers/preamble.tex133
1 files changed, 133 insertions, 0 deletions
diff --git a/reference/C_Facharbeit_komplett/headers/preamble.tex b/reference/C_Facharbeit_komplett/headers/preamble.tex
new file mode 100644
index 0000000..8a4d510
--- /dev/null
+++ b/reference/C_Facharbeit_komplett/headers/preamble.tex
@@ -0,0 +1,133 @@
+% Zeichenkodierung: Wenn es irgendwelche Probleme mit Umlauten gibt,
+% für alle Dateien im Menü "Bearbeiten->Zeichenkodierung festlegen"
+% den ersten Punkt "UTF-8" auswählen.
+\usepackage[utf8]{inputenc}
+
+% Literaturverzeichnis: Bei Problemen mit der Nummerierung
+% erst mal 'defernumbers=true', wenn alles funktioniert am
+% Schluss wieder 'true'
+% \usepackage[backend=biber,defernumbers=true]{biblatex}
+\usepackage[backend=biber,
+	% style=footnote-dw,
+	% pageref=true,
+	% annotation=true,
+	% library=true,
+	%
+	style=numeric,
+	autocite=plain,
+	% FIXME: Keep this here? <2024-03-20>
+	doi=true,
+	isbn=true,
+	loccittracker=true,
+	opcittracker=true,
+	% No idea what it does, but it was recomended to me
+	defernumbers=true
+]{biblatex} % For bibtex references
+\addbibresource{resources/bibliography/literatur.bib}
+\addbibresource{resources/bibliography/internet.bib}
+\addbibresource{resources/bibliography/articles.bib}
+
+% Seitenrand, Zeilenabstand u.ä. (kann geändert werden)
+% \usepackage[margin=2.5cm, bindingoffset=1cm, includehead]{geometry}
+\usepackage[margin=2.5cm, bindingoffset=1cm]{geometry}
+\setlength{\marginparwidth}{2.0cm}
+% TODO: Potenially remove the `parfill`
+\usepackage[parfill, indent]{parskip}
+\usepackage{setspace}
+\onehalfspacing
+
+% deutscher Zeichensatz und Eurozeichen (nicht verändern)
+\usepackage[ngerman]{babel}
+\usepackage[babel,german=quotes]{csquotes}
+\usepackage[T1]{fontenc}
+\usepackage{eurosym}
+% \DeclareUnicodeCharacter{20AC}{\euro}
+% \renewcommand{\texteuro}{\EUR{}}
+% \renewcommand{\texteuro}{$\euro$}
+
+% Schriftart (Hr. Wolf mag zwar keine Serifen, aber ich kann das nicht in aria schreiben)
+\usepackage{lmodern}
+% \usepackage{helvet}
+\renewcommand{\familydefault}{\sfdefault}
+
+% \makeatletter
+% \let\@chapapp\relax
+% \makeatother
+% \setcounter{secnumdepth}{-1}
+
+% Remove the 'Chapter N' counter
+\usepackage[compact]{titlesec}
+% \titleformat{\chapter}[display]
+%   {\normalfont\bfseries}{}{0pt}{\Huge}
+\titleformat{\chapter}[display]
+{\normalfont\Large\bfseries} % format
+{}                % label
+{0pt}             % sep
+{\huge}           % before-code
+
+% Remove the extra titlespacing
+% \titlespacing{\chapter}{0pt}{0pt}{50pt}
+
+% use sans-serif for headings, serif for bodies
+\usepackage{etoolbox}
+\makeatletter
+\apptocmd\@chapter\rmfamily{}{}
+\apptocmd\@schapter\rmfamily{}{}
+\makeatother
+
+% Format der Kopfzeile (kann geändert werden)
+\usepackage{fancyhdr}
+\fancyhead[L]{}
+
+% alle Abbildung befinden sich im Verzeichnis img
+\usepackage{graphicx}
+\graphicspath{{resources/images/}}
+
+% sonstige Pakete, die in diesem Dokument benötigt werden
+\usepackage{enumitem}
+% \usepackage[shortlabels]{enumitem} % makes enumerate, itemize and description better
+\usepackage{tabularx}
+\usepackage{tocloft}
+
+% visuals
+\usepackage{microtype} % makes text better to read
+% \usepackage{multicol} % allows for multi-columns everywhere, with the "multicols" environment
+% \usepackage{emptypage} % no page numbers and headings on empty pages
+% \usepackage{xspace} % Adds a space when it thinks it is necessary
+\usepackage{blindtext} % blindtext
+
+% colors
+\usepackage[dvipsnames]{xcolor} % colors and color mixing \color{red!30!green!40!blue}
+
+% todo
+\usepackage[ngerman, color=yellow!50!green, disable]{todonotes}
+
+% math
+\usepackage{amsmath}  % extensive math commands
+\usepackage{amsfonts} % more fonts for math (fracture, boldfaced and so on)
+\usepackage{mathtools} % extension to amsmath, with more sensible defaults (eq numbers only when referenced)
+\usepackage{amssymb} % more symbols, mostly redundant because already loaded by something else
+\usepackage{mathrsfs} % support for the RSFS fonts (through \mathscr command)
+% \usepackage{cancel} % allows to cancel a part in math mode, for example to shorten a term
+% \usepackage{bm} % bold mode in math, but better than \boldsymbol command from ams. \bm
+
+% links
+\usepackage[nospace,ngerman]{varioref}
+\usepackage[pdflang=de-DE, hidelinks]{hyperref}
+\usepackage[ngerman, noabbrev, nameinlink]{cleveref}
+
+% chemistry
+\usepackage[locale = DE]{siunitx} % For easy unit representation
+\sisetup{per-mode = fraction}
+\usepackage[version=4]{mhchem} % for \ce command
+
+% horizontal rule
+\newcommand\hr{
+	\par\noindent\rule[0.5ex]{\linewidth}{0.5pt}
+}
+
+% copyright:
+\makeatletter
+\DeclareRobustCommand\authors[1]{\gdef\@authors{#1}}
+\DeclareRobustCommand\years[1]{\gdef\@years{#1}}
+\makeatother