about summary refs log tree commit diff stats
path: root/build/latex/presentation/headers
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-04 12:31:16 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-04 12:31:16 +0200
commit1cb8504a4dfcf5977411267c80d4ee62a180c2d6 (patch)
tree69c696740bdc1a8c6b9c205ec0d3c2c47cd2e32b /build/latex/presentation/headers
parentfix(templates/latex/academia/main.tex): Default to `draft` mode (diff)
downloadflake-templates-1cb8504a4dfcf5977411267c80d4ee62a180c2d6.tar.gz
flake-templates-1cb8504a4dfcf5977411267c80d4ee62a180c2d6.zip
chore(build): Regenerate
Diffstat (limited to '')
-rw-r--r--build/latex/presentation/headers/preamble.tex2
-rw-r--r--build/latex/presentation/headers/preamble/beamer/appendix.tex1
-rw-r--r--build/latex/presentation/headers/preamble/beamer/columns.tex1
-rw-r--r--build/latex/presentation/headers/preamble/beamer/float_positioning.tex4
-rw-r--r--build/latex/presentation/headers/preamble/beamer/mod.tex6
-rw-r--r--build/latex/presentation/headers/preamble/beamer/pdfpc.tex2
-rw-r--r--build/latex/presentation/headers/preamble/core/bable.tex1
-rw-r--r--build/latex/presentation/headers/preamble/core/chemistry.tex5
-rw-r--r--build/latex/presentation/headers/preamble/core/copyright.tex15
-rw-r--r--build/latex/presentation/headers/preamble/core/date_and_time.tex1
-rw-r--r--build/latex/presentation/headers/preamble/core/encoding.tex4
-rw-r--r--build/latex/presentation/headers/preamble/core/graphics_and_floats.tex22
-rw-r--r--build/latex/presentation/headers/preamble/core/index.tex8
-rw-r--r--build/latex/presentation/headers/preamble/core/linting.tex1
-rw-r--r--build/latex/presentation/headers/preamble/core/margindate.tex37
-rw-r--r--build/latex/presentation/headers/preamble/core/math.tex27
-rw-r--r--build/latex/presentation/headers/preamble/core/mod.tex16
-rw-r--r--build/latex/presentation/headers/preamble/core/notes.tex1
-rw-r--r--build/latex/presentation/headers/preamble/core/references.tex37
-rw-r--r--build/latex/presentation/headers/preamble/core/visuals.tex10
-rw-r--r--build/latex/presentation/headers/preamble/mod.tex2
-rw-r--r--build/latex/presentation/headers/preamble_local.tex0
22 files changed, 203 insertions, 0 deletions
diff --git a/build/latex/presentation/headers/preamble.tex b/build/latex/presentation/headers/preamble.tex
new file mode 100644
index 0000000..d45262a
--- /dev/null
+++ b/build/latex/presentation/headers/preamble.tex
@@ -0,0 +1,2 @@
+\input{headers/preamble/mod.tex}
+\input{headers/preamble_local.tex}
diff --git a/build/latex/presentation/headers/preamble/beamer/appendix.tex b/build/latex/presentation/headers/preamble/beamer/appendix.tex
new file mode 100644
index 0000000..e0599b9
--- /dev/null
+++ b/build/latex/presentation/headers/preamble/beamer/appendix.tex
@@ -0,0 +1 @@
+\usepackage{appendixnumberbeamer}
diff --git a/build/latex/presentation/headers/preamble/beamer/columns.tex b/build/latex/presentation/headers/preamble/beamer/columns.tex
new file mode 100644
index 0000000..594bc49
--- /dev/null
+++ b/build/latex/presentation/headers/preamble/beamer/columns.tex
@@ -0,0 +1 @@
+\usepackage{multicol} % allows for multi-columns everywhere, with the "multicols" environment
diff --git a/build/latex/presentation/headers/preamble/beamer/float_positioning.tex b/build/latex/presentation/headers/preamble/beamer/float_positioning.tex
new file mode 100644
index 0000000..28a9167
--- /dev/null
+++ b/build/latex/presentation/headers/preamble/beamer/float_positioning.tex
@@ -0,0 +1,4 @@
+% \usepackage[absolute,overlay,showboxes]{textpos}
+\usepackage[absolute,overlay]{textpos}
+
+\usepackage{adjustbox}
diff --git a/build/latex/presentation/headers/preamble/beamer/mod.tex b/build/latex/presentation/headers/preamble/beamer/mod.tex
new file mode 100644
index 0000000..a82acad
--- /dev/null
+++ b/build/latex/presentation/headers/preamble/beamer/mod.tex
@@ -0,0 +1,6 @@
+\setbeamercolor{itemize/enumerate body}{fg=gray}
+
+\input{headers/preamble/beamer/appendix.tex}
+\input{headers/preamble/beamer/columns.tex}
+\input{headers/preamble/beamer/float_positioning.tex}
+\input{headers/preamble/beamer/pdfpc.tex}
diff --git a/build/latex/presentation/headers/preamble/beamer/pdfpc.tex b/build/latex/presentation/headers/preamble/beamer/pdfpc.tex
new file mode 100644
index 0000000..93e1f2d
--- /dev/null
+++ b/build/latex/presentation/headers/preamble/beamer/pdfpc.tex
@@ -0,0 +1,2 @@
+% "overridenote" must be specified as a package option
+\usepackage[overridenote]{pdfpc}
diff --git a/build/latex/presentation/headers/preamble/core/bable.tex b/build/latex/presentation/headers/preamble/core/bable.tex
new file mode 100644
index 0000000..f034018
--- /dev/null
+++ b/build/latex/presentation/headers/preamble/core/bable.tex
@@ -0,0 +1 @@
+\usepackage[%INIT_BABLE_LANGUAGE]{babel} % For language support
diff --git a/build/latex/presentation/headers/preamble/core/chemistry.tex b/build/latex/presentation/headers/preamble/core/chemistry.tex
new file mode 100644
index 0000000..94f2592
--- /dev/null
+++ b/build/latex/presentation/headers/preamble/core/chemistry.tex
@@ -0,0 +1,5 @@
+\usepackage[locale = %INIT_SIUNITX_LANGUAGE]{siunitx} % For easy unit representation
+\sisetup{per-mode = fraction}
+
+\usepackage[version=4]{mhchem} % for \ce command
+\usepackage{chemfig}
diff --git a/build/latex/presentation/headers/preamble/core/copyright.tex b/build/latex/presentation/headers/preamble/core/copyright.tex
new file mode 100644
index 0000000..268b910
--- /dev/null
+++ b/build/latex/presentation/headers/preamble/core/copyright.tex
@@ -0,0 +1,15 @@
+\ExplSyntaxOn
+\cs_new_protected:Npn \SetAuthors #1
+{
+	\tl_const:Nn \AuthorList {#1}
+}
+\cs_new_protected:Npn \SetYears #1
+{
+	\tl_const:Nn \YearList {#1}
+}
+\ExplSyntaxOff
+
+\usepackage[scale=2]{ccicons} % Typeset the cc icons
+
+% TODO: Add a `\copyright` macro, that generates the copyright text automatically and
+% language defined <2024-10-03>
diff --git a/build/latex/presentation/headers/preamble/core/date_and_time.tex b/build/latex/presentation/headers/preamble/core/date_and_time.tex
new file mode 100644
index 0000000..32e838d
--- /dev/null
+++ b/build/latex/presentation/headers/preamble/core/date_and_time.tex
@@ -0,0 +1 @@
+\usepackage[%INIT_DATE_TIME_LANGUAGE, showdow]{datetime2} % make handling dates easier
diff --git a/build/latex/presentation/headers/preamble/core/encoding.tex b/build/latex/presentation/headers/preamble/core/encoding.tex
new file mode 100644
index 0000000..1f48d2a
--- /dev/null
+++ b/build/latex/presentation/headers/preamble/core/encoding.tex
@@ -0,0 +1,4 @@
+
+\usepackage[utf8]{inputenc} % use utf8 encoding
+\usepackage[T1]{fontenc} % for 8bit font support
+\usepackage{lmodern} % latin modern fonts, should be better than ae, aecompl
diff --git a/build/latex/presentation/headers/preamble/core/graphics_and_floats.tex b/build/latex/presentation/headers/preamble/core/graphics_and_floats.tex
new file mode 100644
index 0000000..c71fc2a
--- /dev/null
+++ b/build/latex/presentation/headers/preamble/core/graphics_and_floats.tex
@@ -0,0 +1,22 @@
+\usepackage{graphicx} % allows for easy inclusion of graphics
+\usepackage{xcolor} % colors and color mixing \color{red!30!green!40!blue}
+
+\usepackage{tikz} % Nice drawn graphics, for library see: https://tex.stackexchange.com/a/42664
+\usetikzlibrary{calc}
+
+\usepackage{pgfplots} % plots, 2D and 3D
+\pgfplotsset{compat=1.18} % Set a compatibility level, to be able to use the new versions
+
+% \usetikzlibrary{intersections, angles, quotes, calc, positioning}
+% \usetikzlibrary{arrows.meta} %TODO maybe deprecated?
+
+% \usepackage{tikz-cd} % better commutative diagrams
+% \usepackage{subcaption} % like caption package, but for subfigures
+% \usepackage{booktabs} % better tables
+
+\usepackage{float} % Allows placing floats here (H) and creating new floats `\newfloat`
+\usepackage{wrapfig} % Wraps text around figures with the \begin{wrapfigure} environment
+
+\NewDocumentCommand{\IncludeTikz}{m}{
+	\includegraphics{build/figures/#1/#1}
+}
diff --git a/build/latex/presentation/headers/preamble/core/index.tex b/build/latex/presentation/headers/preamble/core/index.tex
new file mode 100644
index 0000000..3efbfc4
--- /dev/null
+++ b/build/latex/presentation/headers/preamble/core/index.tex
@@ -0,0 +1,8 @@
+\usepackage{index} % Helps to create an index
+\makeindex
+
+\ifdraft{
+	\usepackage{showidx}
+} {
+	\message {Draft option not enabled, 'showidx' not loaded.}
+}
diff --git a/build/latex/presentation/headers/preamble/core/linting.tex b/build/latex/presentation/headers/preamble/core/linting.tex
new file mode 100644
index 0000000..a1bbe34
--- /dev/null
+++ b/build/latex/presentation/headers/preamble/core/linting.tex
@@ -0,0 +1 @@
+\usepackage{nag}
diff --git a/build/latex/presentation/headers/preamble/core/margindate.tex b/build/latex/presentation/headers/preamble/core/margindate.tex
new file mode 100644
index 0000000..5579f98
--- /dev/null
+++ b/build/latex/presentation/headers/preamble/core/margindate.tex
@@ -0,0 +1,37 @@
+\DTMnewdatestyle{margindate}{
+	\renewcommand*\DTMdisplaydate[4]{
+		\MakeLowercase{\DTMshortweekdayname{##4}}\space
+		\number##3\relax\space
+		\MakeLowercase{\DTMshortmonthname{##2}}\space
+		\DTMtwodigits{\DTMtwodigits{##1}}
+	}
+	\renewcommand*\DTMDisplaydate[4]{
+		\DTMshortweekdayname{##4}\space
+		##3\space
+		\DTMshortmonthname{##2}\space
+		\DTMtwodigits{\DTMtwodigits{##1}}
+	}
+}
+
+\NewDocumentCommand\MarginContent{m}{
+	\marginpar{
+		\small\textsf{\mbox{#1}}
+	}\relax
+}
+
+\NewDocumentCommand\MarginDate{m}{
+	{
+			\DTMsetdatestyle{margindate}
+
+			\MarginContent{\DTMDate{#1}}
+		}
+}
+
+\NewDocumentCommand\AnnotatedSection{m m}{
+	\section{#1}
+	\MarginContent{#2}
+}
+\NewDocumentCommand\DatedSection{m m}{
+	\section{#1}
+	\MarginDate{#2}
+}
diff --git a/build/latex/presentation/headers/preamble/core/math.tex b/build/latex/presentation/headers/preamble/core/math.tex
new file mode 100644
index 0000000..170f57a
--- /dev/null
+++ b/build/latex/presentation/headers/preamble/core/math.tex
@@ -0,0 +1,27 @@
+\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
+
+% number sets
+\NewDocumentCommand\N{}{\ensuremath{\mathbb{N}}}
+\NewDocumentCommand\R{}{\ensuremath{\mathbb{R}}}
+\NewDocumentCommand\Z{}{\ensuremath{\mathbb{Z}}}
+\NewDocumentCommand\Q{}{\ensuremath{\mathbb{Q}}}
+\NewDocumentCommand\C{}{\ensuremath{\mathbb{C}}}
+\let\originalO\O
+\RenewDocumentCommand\O{}{\ensuremath{\emptyset}} % replaces the Ø
+
+% readable limits
+\let\originalLim\lim
+\RenewDocumentCommand\lim{}{\originalLim\limits}
+
+% aliases
+\let\implies\Rightarrow
+\let\impliedby\Leftarrow
+
+\let\originalEpsilon\epsilon
+\RenewDocumentCommand\epsilon{}{\varepsilon} % I like the textual epsilon more
diff --git a/build/latex/presentation/headers/preamble/core/mod.tex b/build/latex/presentation/headers/preamble/core/mod.tex
new file mode 100644
index 0000000..403ce58
--- /dev/null
+++ b/build/latex/presentation/headers/preamble/core/mod.tex
@@ -0,0 +1,16 @@
+% Core packages (used in the implementation of this preamble)
+\usepackage{ifdraft}
+
+\input{headers/preamble/core/bable.tex}
+\input{headers/preamble/core/chemistry.tex}
+\input{headers/preamble/core/copyright.tex}
+\input{headers/preamble/core/date_and_time.tex}
+\input{headers/preamble/core/encoding.tex}
+\input{headers/preamble/core/graphics_and_floats.tex}
+\input{headers/preamble/core/index.tex}
+\input{headers/preamble/core/linting.tex}
+\input{headers/preamble/core/margindate.tex}
+\input{headers/preamble/core/math.tex}
+\input{headers/preamble/core/notes.tex}
+\input{headers/preamble/core/references.tex}
+\input{headers/preamble/core/visuals.tex}
diff --git a/build/latex/presentation/headers/preamble/core/notes.tex b/build/latex/presentation/headers/preamble/core/notes.tex
new file mode 100644
index 0000000..1f10ef3
--- /dev/null
+++ b/build/latex/presentation/headers/preamble/core/notes.tex
@@ -0,0 +1 @@
+\usepackage[obeyFinal,%INIT_TODONOTES_LANGUAGE]{todonotes}
diff --git a/build/latex/presentation/headers/preamble/core/references.tex b/build/latex/presentation/headers/preamble/core/references.tex
new file mode 100644
index 0000000..179d903
--- /dev/null
+++ b/build/latex/presentation/headers/preamble/core/references.tex
@@ -0,0 +1,37 @@
+\usepackage{csquotes} % required by biblatex
+
+% \usepackage{biblatex-dw}
+\usepackage[backend=biber,
+	% style=footnote-dw,
+	% pageref=true,
+	% annotation=true,
+	% library=true,
+	%
+	style=numeric,
+	autocite=plain,
+	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{ref/references.bib}
+% \bibliography{res/reference} % Set the location of the references
+
+\usepackage[pdflang=%INIT_DATE_TIME_LANGUAGE]{hyperref}
+\hypersetup{
+	colorlinks,
+	linkcolor={black},
+	citecolor={black},
+	urlcolor={blue!80!black}
+}
+
+\usepackage[nospace,%INIT_TODONOTES_LANGUAGE]{varioref} % for \vref
+\usepackage[%INIT_TODONOTES_LANGUAGE, noabbrev, nameinlink]{cleveref}
+
+\ifdraft{
+	\usepackage{showlabels}
+} {
+	\message {Draft option not enabled, 'showlabels' not loaded.}
+}
diff --git a/build/latex/presentation/headers/preamble/core/visuals.tex b/build/latex/presentation/headers/preamble/core/visuals.tex
new file mode 100644
index 0000000..96a2fd2
--- /dev/null
+++ b/build/latex/presentation/headers/preamble/core/visuals.tex
@@ -0,0 +1,10 @@
+\usepackage[disable=ifdraft]{microtype} % makes text better to read
+\usepackage{emptypage} % no page numbers and headings on empty pages
+
+\usepackage{blindtext} % blindtext
+
+
+% horizontal rule
+\NewDocumentCommand{\hr}{}{
+	\par\noindent\rule[0.5ex]{\linewidth}{0.5pt}
+}
diff --git a/build/latex/presentation/headers/preamble/mod.tex b/build/latex/presentation/headers/preamble/mod.tex
new file mode 100644
index 0000000..a8d5fc7
--- /dev/null
+++ b/build/latex/presentation/headers/preamble/mod.tex
@@ -0,0 +1,2 @@
+\input{headers/preamble/beamer/mod.tex}
+\input{headers/preamble/core/mod.tex}
diff --git a/build/latex/presentation/headers/preamble_local.tex b/build/latex/presentation/headers/preamble_local.tex
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/build/latex/presentation/headers/preamble_local.tex