diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-10-03 13:20:43 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-10-03 13:20:43 +0200 |
commit | 55d71819679b20c2d26557d94eae6b505becaf6e (patch) | |
tree | fdc496aca7997b917668e5787514e2d157b67597 /common/latex | |
parent | chore(build): Re-generate (diff) | |
download | flake-templates-55d71819679b20c2d26557d94eae6b505becaf6e.tar.gz flake-templates-55d71819679b20c2d26557d94eae6b505becaf6e.zip |
fix(common/latex/preamble): Fix compilation errors
Diffstat (limited to '')
-rw-r--r-- | common/latex/preamble.tex | 2 | ||||
-rw-r--r-- | common/latex/preamble/academia/theorems/definitions.tex | 2 | ||||
-rw-r--r-- | common/latex/preamble/academia/theorems/mod.tex | 2 | ||||
-rw-r--r-- | common/latex/preamble/core/bable.tex | 1 | ||||
-rw-r--r-- | common/latex/preamble/core/graphics_and_floats.tex | 2 | ||||
-rw-r--r-- | common/latex/preamble/core/math.tex | 14 | ||||
-rw-r--r-- | common/latex/preamble/core/mod.tex | 1 | ||||
-rw-r--r-- | common/latex/preamble/core/notes.tex | 2 | ||||
-rw-r--r-- | common/latex/preamble/core/references.tex | 8 |
9 files changed, 19 insertions, 15 deletions
diff --git a/common/latex/preamble.tex b/common/latex/preamble.tex index 110e3a0..d45262a 100644 --- a/common/latex/preamble.tex +++ b/common/latex/preamble.tex @@ -1,2 +1,2 @@ \input{headers/preamble/mod.tex} -\input{headers/preamble/preamble_local.tex} +\input{headers/preamble_local.tex} diff --git a/common/latex/preamble/academia/theorems/definitions.tex b/common/latex/preamble/academia/theorems/definitions.tex index 4355b3c..3179dd9 100644 --- a/common/latex/preamble/academia/theorems/definitions.tex +++ b/common/latex/preamble/academia/theorems/definitions.tex @@ -1,4 +1,4 @@ -\renewcommand\qedsymbol{\ensuremath{\text{\textit{O.}}~\epsilon.~\delta.}} +\RenewDocumentCommand\qedsymbol{}{\ensuremath{\text{\textit{O.}}~\epsilon.~\delta.}} % \renewcommand\qedsymbol{\dots} \theoremstyle{definition} diff --git a/common/latex/preamble/academia/theorems/mod.tex b/common/latex/preamble/academia/theorems/mod.tex index 8350276..d0f801c 100644 --- a/common/latex/preamble/academia/theorems/mod.tex +++ b/common/latex/preamble/academia/theorems/mod.tex @@ -1,2 +1,2 @@ -\input{headers/preamble/academia/theorems/definitions.tex} \input{headers/preamble/academia/theorems/packages.tex} +\input{headers/preamble/academia/theorems/definitions.tex} diff --git a/common/latex/preamble/core/bable.tex b/common/latex/preamble/core/bable.tex new file mode 100644 index 0000000..f034018 --- /dev/null +++ b/common/latex/preamble/core/bable.tex @@ -0,0 +1 @@ +\usepackage[%INIT_BABLE_LANGUAGE]{babel} % For language support diff --git a/common/latex/preamble/core/graphics_and_floats.tex b/common/latex/preamble/core/graphics_and_floats.tex index b975c5f..c0784c9 100644 --- a/common/latex/preamble/core/graphics_and_floats.tex +++ b/common/latex/preamble/core/graphics_and_floats.tex @@ -5,7 +5,7 @@ \usetikzlibrary{calc} \usepackage{pgfplots} % plots, 2D and 3D -\pgfplotsset{compat=1.19} % Set a compatibility level, to be able to use the new versions +\pgfplotsset{compat=1.18} % Set a compatibility level, to be able to use the new versions \usetikzlibrary{external} \tikzexternalize[prefix=figures/, mode=list and make] diff --git a/common/latex/preamble/core/math.tex b/common/latex/preamble/core/math.tex index 35144df..170f57a 100644 --- a/common/latex/preamble/core/math.tex +++ b/common/latex/preamble/core/math.tex @@ -12,14 +12,16 @@ \NewDocumentCommand\Z{}{\ensuremath{\mathbb{Z}}} \NewDocumentCommand\Q{}{\ensuremath{\mathbb{Q}}} \NewDocumentCommand\C{}{\ensuremath{\mathbb{C}}} -\NewDocumentCommand\O{}{\ensuremath{\emptyset}} % replaces the Ø +\let\originalO\O +\RenewDocumentCommand\O{}{\ensuremath{\emptyset}} % replaces the Ø % readable limits -\let\svlim\lim{} -\renewcommand\lim{\svlim\limits} +\let\originalLim\lim +\RenewDocumentCommand\lim{}{\originalLim\limits} % aliases -\let\implies\Rightarrow{} -\let\impliedby\Leftarrow{} +\let\implies\Rightarrow +\let\impliedby\Leftarrow -\let\epsilon{\varepsilon} % I like the textual epsilon more +\let\originalEpsilon\epsilon +\RenewDocumentCommand\epsilon{}{\varepsilon} % I like the textual epsilon more diff --git a/common/latex/preamble/core/mod.tex b/common/latex/preamble/core/mod.tex index 3a800a1..403ce58 100644 --- a/common/latex/preamble/core/mod.tex +++ b/common/latex/preamble/core/mod.tex @@ -1,6 +1,7 @@ % 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} diff --git a/common/latex/preamble/core/notes.tex b/common/latex/preamble/core/notes.tex index 8eab467..1f10ef3 100644 --- a/common/latex/preamble/core/notes.tex +++ b/common/latex/preamble/core/notes.tex @@ -1 +1 @@ -\usepackage[obeyFinal,%INIT_BABLE_LANGUAGE]{todonotes} +\usepackage[obeyFinal,%INIT_TODONOTES_LANGUAGE]{todonotes} diff --git a/common/latex/preamble/core/references.tex b/common/latex/preamble/core/references.tex index 69a6ad6..e42b22f 100644 --- a/common/latex/preamble/core/references.tex +++ b/common/latex/preamble/core/references.tex @@ -1,4 +1,3 @@ -\usepackage[%INIT_BABLE_LANGUAGE]{babel} % For language support \usepackage{csquotes} % required by biblatex % \usepackage{biblatex-dw} @@ -20,8 +19,6 @@ \addbibresource{ref/references.bib} % \bibliography{res/reference} % Set the location of the references -\usepackage[nospace,%INIT_BABLE_LANGUAGE]{varioref} % for \vref -\usepackage[%INIT_BABLE_LANGUAGE, noabbrev, nameinlink]{cleveref} \usepackage[pdflang=%INIT_DATE_TIME_LANGUAGE]{hyperref} \hypersetup{ colorlinks, @@ -30,8 +27,11 @@ urlcolor={blue!80!black} } +\usepackage[nospace,%INIT_TODONOTES_LANGUAGE]{varioref} % for \vref +\usepackage[%INIT_TODONOTES_LANGUAGE, noabbrev, nameinlink]{cleveref} + \ifdraft{ \usepackage{showlabels} } { - \message {Draft packages not loaded, showlabels not loaded.} + \message {Draft packages not loaded, 'showlabels' not loaded.} } |