From 55477f098481a3e745d6e82e01b33e3de626f52d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= <git@maximilian-kessler.de>
Date: Wed, 16 Feb 2022 02:48:51 +0100
Subject: [PATCH] refactor preamble into input file

---
 2021_Algebra_I.tex  | 16 ++--------------
 algebra.sty         |  3 ---
 inputs/preamble.tex | 13 +++++++++++++
 3 files changed, 15 insertions(+), 17 deletions(-)
 create mode 100644 inputs/preamble.tex

diff --git a/2021_Algebra_I.tex b/2021_Algebra_I.tex
index b475dc4..6998a10 100644
--- a/2021_Algebra_I.tex
+++ b/2021_Algebra_I.tex
@@ -4,8 +4,6 @@
 \lecturer{Prof.~Dr.~Jens Franke}
 \author{Josia Pietsch}
 
-\title{title}
-
 \usepackage{algebra}
 
 \begin{document}
@@ -16,19 +14,9 @@
 \tableofcontents
 \cleardoublepage
 
+\input{inputs/preamble}
+\cleardoublepage
 
-\begin{warning}
-    This is not an official script!
-    This document was written in preparation for the oral exam. It mostly follows the way \textsc{Prof. Franke} presented the material in his lecture rather closely.
-    There are probably errors.
-\end{warning}
-
-\noindent The \LaTeX template by \textsc{Maximilian Kessler} is published under the MIT-License and can be obtained from \url{https://github.com/kesslermaximilian/LatexPackages}. % TODO
-\newline
-
-\noindent $\mathfrak{k}$ is {\color{red} always} an algebraically closed field and $\mathfrak{k}^n$ is equipped with the Zariski-topology.
-Fields which are not assumed to be algebraically closed have been renamed (usually to $\mathfrak{l}$).
-\pagebreak
 
 \section{Finiteness conditions}
 \input{inputs/finiteness_conditions}
diff --git a/algebra.sty b/algebra.sty
index 79187c1..1a8c4ec 100644
--- a/algebra.sty
+++ b/algebra.sty
@@ -5,7 +5,6 @@
 \RequirePackage{mkessler-refproof}
 
 \RequirePackage[number in = section]{fancythm}
-\RequirePackage{hyperref}
 \RequirePackage[english, index]{mkessler-vocab}
 \RequirePackage{mkessler-hypersetup}
 
@@ -50,8 +49,6 @@
 	quotes, babel}
 
 \newcommand{\iiff}{\item[$\iff$]}
-\hypersetup{colorlinks, linkcolor=red}
-
 
 \def\existsone{\exists!}
 \def\defon#1{\upharpoonright_{#1}}
diff --git a/inputs/preamble.tex b/inputs/preamble.tex
new file mode 100644
index 0000000..cfb99cf
--- /dev/null
+++ b/inputs/preamble.tex
@@ -0,0 +1,13 @@
+
+\begin{warning}
+    This is not an official script!
+    This document was written in preparation for the oral exam. It mostly follows the way \textsc{Prof. Franke} presented the material in his lecture rather closely.
+    There are probably errors.
+\end{warning}
+
+\noindent The \LaTeX template by \textsc{Maximilian Kessler} is published under the MIT-License and can be obtained from \url{https://github.com/kesslermaximilian/LatexPackages}. % TODO
+\newline
+
+\noindent $\mathfrak{k}$ is {\color{red} always} an algebraically closed field and $\mathfrak{k}^n$ is equipped with the Zariski-topology.
+Fields which are not assumed to be algebraically closed have been renamed (usually to $\mathfrak{l}$).
+