summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/mh/mathstyle.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/mh/mathstyle.sty')
-rw-r--r--Master/texmf-dist/tex/latex/mh/mathstyle.sty13
1 files changed, 10 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/mh/mathstyle.sty b/Master/texmf-dist/tex/latex/mh/mathstyle.sty
index b0b29bdd1af..1c10bf4b1ab 100644
--- a/Master/texmf-dist/tex/latex/mh/mathstyle.sty
+++ b/Master/texmf-dist/tex/latex/mh/mathstyle.sty
@@ -85,6 +85,10 @@
\lowercase{\endgroup
\let\@@superscript=^ \let\@@subscript=_
}%
+\begingroup \catcode`\^=12\relax \catcode`\_=12\relax % just in case
+\lowercase{\endgroup
+\let\@@superscript@other=^ \let\@@subscript@other=_
+}%
\def\subsupstyle{%
\ifnum\mathstyle<\tw@ \chardef\mathstyle\tw@
\else \chardef\mathstyle\thr@@
@@ -148,13 +152,16 @@
\fi}
\DeclareOption{mathactivechars}{%
\catcode`\^=12\relax
- \catcode`\_=12\relax}
+ \catcode`\_=12\relax
+\AtBeginDocument{\catcode`\^=12\relax \catcode`\_=12\relax }}
\DeclareOption{activechars}{%
\catcode`\^=13\relax
- \catcode`\_=13\relax}
+ \catcode`\_=13\relax
+\AtBeginDocument{\catcode`\_=12\relax \catcode`\_=13\relax }}
\DeclareOption{noactivechars}{%
\catcode`\^=7\relax
- \catcode`\_=8\relax}
+ \catcode`\_=8\relax
+\AtBeginDocument{\catcode`\_=7\relax \catcode`\_=8\relax }}
\ExecuteOptions{mathactivechars}
\ProcessOptions\relax
\ifnum\catcode`\^=13\relax