summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/mh/breqn.sty13
-rw-r--r--Master/texmf-dist/tex/latex/mh/mathstyle.sty13
2 files changed, 19 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/mh/breqn.sty b/Master/texmf-dist/tex/latex/mh/breqn.sty
index 162e11dfebe..77b761ad0db 100644
--- a/Master/texmf-dist/tex/latex/mh/breqn.sty
+++ b/Master/texmf-dist/tex/latex/mh/breqn.sty
@@ -28,7 +28,7 @@
%% breqn.sty, breqn.pdf, breqn.ins, breqn.drv.
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{breqn}[2008/07/28 v0.98]
+\ProvidesPackage{breqn}[2008/08/13 v0.98a]
\edef\breqnpopcats{%
\catcode\number`\"=\number\catcode`\"
\relax}
@@ -1551,12 +1551,17 @@
\endgroup
\subsup@flag\@M \afterassignment\ss@scan@a \let\@let@token=}
\def\ss@scan@a{%
+ \let\breqn@next\ss@scan@b
\ifx\@let@token\sb \advance\subsup@flag\@ne\else
+ \ifx\@let@token\@@subscript \advance\subsup@flag\@ne\else
+ \ifx\@let@token\@@subscript@other \advance\subsup@flag\@ne\else
\ifx\@let@token\sp \advance\subsup@flag\tw@\else
+ \ifx\@let@token\@@superscript \advance\subsup@flag\tw@\else
+ \ifx\@let@token\@@superscript@other \advance\subsup@flag\tw@\else
\ss@finish
- \expandafter\@firstoftwo % gobble \ss@scan@b
- \fi\fi
- \ss@scan@b\@let@token
+ \let\breqn@next\relax
+ \fi\fi\fi\fi\fi\fi
+ \breqn@next\@let@token
}
\def\ss@scan@b#1#2{#1{%
\let\m@Bin\m@@Bin \let\m@Rel\m@@Rel
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