use \AtBeginDocument for renewing of commands
This commit is contained in:
parent
7c5b9a2249
commit
be1f7f8977
1 changed files with 19 additions and 10 deletions
|
@ -6,24 +6,33 @@
|
||||||
|
|
||||||
%Proper Degree command
|
%Proper Degree command
|
||||||
\def\mkessler@mathfixes@degree{^\circ}
|
\def\mkessler@mathfixes@degree{^\circ}
|
||||||
\AtBeginDocument{\def\degree{\mkessler@mathfixes@degree}}
|
\AtBeginDocument{\let\degree\mkessler@mathfixes@degree}
|
||||||
|
|
||||||
% Always put limits under \limit
|
% Always put limits under \limit
|
||||||
\let\oldlim\lim\def\lim{\oldlim\limits}
|
\let\oldlim\lim\def\lim{\oldlim\limits}
|
||||||
|
|
||||||
% Print equal sign under subset by default to not confuse people
|
% 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
|
% (I still write \subset, because this enables me remove this renewcommand and have the default \subset command evaluated instead
|
||||||
\renewcommand\subset\subseteq
|
\let\mkessler@mathfixes@subseteq\subseteq
|
||||||
\renewcommand\supset\supseteq
|
\let\mkessler@mathfixes@supseteq\supseteq
|
||||||
|
\AtBeginDocument{
|
||||||
|
\let\subset\mkessler@mathfixes@subseteq
|
||||||
|
\let\supset\mkessler@mathfixes@supseteq
|
||||||
|
}
|
||||||
|
|
||||||
%%Renew phi and epsilon to their proper versions, make the old ones available as
|
%%Renew phi and epsilon to their proper versions, make the old ones available as
|
||||||
% uglyphi and uglyepsilon
|
% uglyphi and uglyepsilon
|
||||||
|
|
||||||
\let\mkessler@mathfixes@oldphi\phi
|
\let\mkessler@mathfixes@stored@phi\phi
|
||||||
\renewcommand\phi\varphi
|
\let\mkessler@mathfixes@stored@varphi\varphi
|
||||||
\newcommand\uglyphi{\mkessler@mathfixes@oldphi}
|
\AtBeginDocument{
|
||||||
|
\let\phi\mkessler@mathfixes@stored@varphi
|
||||||
|
\let\uglyphi\mkessler@mathfixes@stored@phi
|
||||||
|
}
|
||||||
|
|
||||||
\let\mkessler@mathfixes@oldepsilon\epsilon
|
\let\mkessler@mathfixes@stored@epsilon\epsilon
|
||||||
\renewcommand\epsilon\varepsilon
|
\let\mkessler@mathfixes@stored@varepsilon\varepsilon
|
||||||
\newcommand\uglyepsilon{\mkessler@mathfixes@oldepsilon}
|
\AtBeginDocument{
|
||||||
|
\let\epsilon\mkessler@mathfixes@stored@varepsilon
|
||||||
|
\let\uglyepsilon\mkessler@mathfixes@stored@epsilon
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue