summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/amsmath/amsmath.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/amsmath/amsmath.dtx')
-rw-r--r--Master/texmf-dist/source/latex/amsmath/amsmath.dtx11
1 files changed, 8 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/latex/amsmath/amsmath.dtx b/Master/texmf-dist/source/latex/amsmath/amsmath.dtx
index ea9498f7a15..d40598054dc 100644
--- a/Master/texmf-dist/source/latex/amsmath/amsmath.dtx
+++ b/Master/texmf-dist/source/latex/amsmath/amsmath.dtx
@@ -74,7 +74,7 @@ Bug reports can be opened (category \texttt{#1}) at\\%
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}% LaTeX 2.09 can't be used (nor non-LaTeX)
[1994/12/01]% LaTeX date must be December 1994 or later
-\ProvidesPackage{amsmath}[2016/03/03 v2.15a AMS math features]
+\ProvidesPackage{amsmath}[2016/03/10 v2.15b AMS math features]
% \end{macrocode}
%
% \section{Catcode defenses}
@@ -1267,12 +1267,13 @@ Foreign command \@backslashchar#1;\MessageBreak
% position.
%
% \changes{v2.15}{2016/02/20}{Modify \cs{resetMathstrut@} for Unicode \TeX}
+% \changes{v2.15b}{2016/03/10}{Modify \cs{resetMathstrut@} for classic \TeX\ to preserve box 0}
% Original code assuming |\mathcode| is kept for 8bit \TeX. Unicode \TeX{}
% uses |\Umathcharnumdef| which works for xetex and luatex, which use
% different forms for |\mathchardef|. (New luatex always reports
% definitions using |\Umathchardef| syntax even if |\mathchardef| used.)
%
-% The unicode vesrion uses e-tex |\fontcharht| to avoid boxing which
+% The unicode version uses e-tex |\fontcharht| to avoid boxing which
% could also be done for pdftex, but not done here.
% \begin{macrocode}
\ifx\Umathcharnumdef\@undefined
@@ -1280,12 +1281,16 @@ Foreign command \@backslashchar#1;\MessageBreak
% Original code
% \begin{macrocode}
\def\resetMathstrut@{%
+ \begingroup
\setbox\z@\hbox{%
\mathchardef\@tempa\mathcode`\(\relax
\def\@tempb##1"##2##3{\the\textfont"##3\char"}%
\expandafter\@tempb\meaning\@tempa \relax
}%
- \ht\Mathstrutbox@\ht\z@ \dp\Mathstrutbox@\dp\z@
+ \edef\@tempa{%
+ \ht\Mathstrutbox@\the\ht\z@\relax
+ \dp\Mathstrutbox@\the\dp\z@\relax}%
+ \expandafter\endgroup\@tempa
}
\else
% \end{macrocode}