From 55d71819679b20c2d26557d94eae6b505becaf6e Mon Sep 17 00:00:00 2001
From: Benedikt Peetz <benedikt.peetz@b-peetz.de>
Date: Thu, 3 Oct 2024 13:20:43 +0200
Subject: fix(common/latex/preamble): Fix compilation errors

---
 common/latex/preamble/core/math.tex | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

(limited to 'common/latex/preamble/core/math.tex')

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
-- 
cgit 1.4.1

