From 9342d4f74780f7d3905b9bfd403e448865ddbfbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Thu, 9 Sep 2021 21:47:08 +0200 Subject: [PATCH] own package for 'fixes' of math misbehaviour --- math/mkessler-mathfixes.sty | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 math/mkessler-mathfixes.sty diff --git a/math/mkessler-mathfixes.sty b/math/mkessler-mathfixes.sty new file mode 100644 index 0000000..d57996f --- /dev/null +++ b/math/mkessler-mathfixes.sty @@ -0,0 +1,28 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{mkessler-mathfixes}[2021-04-27 - Hacky math packages for some (custom) fixes] +%%%%% + +% This just brings together some (possibly ugly) hacks that I use when writing math. Likely, you do not want to use this except when building around this package (like I did), or already have similar shortcuts + +%Proper Degree command +\renewcommand{\degree}{^\circ} + +% Always put limits under \limit +\let\oldlim\lim\def\lim{\oldlim\limits} + +% Print equal sign under subset by default to not confuse people +% (I still write \subset, because this enables me remove this renewcommand and have the default \subset command evaluated instead +\renewcommand\subset\subseteq +\renewcommand\supset\supseteq + + +%%Renew phi and epsilon to their proper versions, make the old ones available as +% uglyphi and uglyepsilon + +\let\mkessler@mathfixes@oldphi\phi +\renewcommand\phi\varphi +\newcommand\uglyphi{\mkessler@mathfixes@oldphi} + +\let\mkessler@mathfixes@oldepsilon\epsilon +\renewcommand\epsilon\varepsilon +\newcommand\uglyphi{\mkessler@mathfixes@oldepsilon}