summaryrefslogtreecommitdiff
path: root/macros/latex-dev/required/amsmath/amsmath.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex-dev/required/amsmath/amsmath.dtx')
-rw-r--r--macros/latex-dev/required/amsmath/amsmath.dtx42
1 files changed, 29 insertions, 13 deletions
diff --git a/macros/latex-dev/required/amsmath/amsmath.dtx b/macros/latex-dev/required/amsmath/amsmath.dtx
index e3ad7c6042..05b5168349 100644
--- a/macros/latex-dev/required/amsmath/amsmath.dtx
+++ b/macros/latex-dev/required/amsmath/amsmath.dtx
@@ -86,7 +86,7 @@ Bug reports can be opened (category \texttt{#1}) at\\%
% \end{macrocode}
%
% \begin{macrocode}
-\ProvidesPackage{amsmath}[2020/03/17 v2.17g AMS math features]
+\ProvidesPackage{amsmath}[2020/08/24 v2.17h AMS math features]
% \end{macrocode}
%
% \section{Catcode defenses}
@@ -480,7 +480,7 @@ For additional information on amsmath, use the \lq ?\rq\space option.%
\let\negthickspace\@undefined
% \end{macrocode}
%
-%
+%
% \changes{v2.17g}{2020/03/07}{Math/text spacing commands are now in
% the \LaTeX{} kernel and are made robust (gh/303)}
% \begin{macrocode}
@@ -2203,17 +2203,33 @@ Foreign command \@backslashchar#1;\MessageBreak
% The minus sign used in constructing these arrow fills is smashed so
% that superscripts above the arrows won't be too high. This
% primarily affects the \cn{xleftarrow} and \cn{xrightarrow} arrows.
-%
+% \changes{v2.17h}{2020/08/24}{detect unicode engines and use their commands}
% \begin{macrocode}
-\mathchardef\std@minus\mathcode`\-\relax
-\mathchardef\std@equal\mathcode`\=\relax
+\@ifundefined{Umathcode}
+ {%
+ \mathchardef\std@minus\mathcode`\-\relax
+ \mathchardef\std@equal\mathcode`\=\relax
+ }
+ {%
+ \Umathcharnumdef\std@minus\Umathcodenum`\-\relax
+ \Umathcharnumdef\std@equal\Umathcodenum`\=\relax
+ }
% \end{macrocode}
% In case some alternative math fonts are loaded later:
% \begin{macrocode}
-\AtBeginDocument{%
- \mathchardef\std@minus\mathcode`\-\relax
- \mathchardef\std@equal\mathcode`\=\relax
-}
+\@ifundefined{Umathcode}
+ {%
+ \AtBeginDocument{%
+ \mathchardef\std@minus\mathcode`\-\relax
+ \mathchardef\std@equal\mathcode`\=\relax
+ }%
+ }
+ {%
+ \AtBeginDocument{%
+ \Umathcharnumdef\std@minus\Umathcodenum`\-\relax
+ \Umathcharnumdef\std@equal\Umathcodenum`\=\relax
+ }%
+ }
% \end{macrocode}
%
% \begin{macro}{\relbar}
@@ -3725,7 +3741,7 @@ and fix things up.}
\fi
}
% \end{macrocode}
-%
+%
% \begin{macro}{\ams@pos@t}
% \begin{macro}{\ams@pos@b}
% \begin{macro}{\ams@pos@c}
@@ -3817,11 +3833,11 @@ and fix things up.}
\crcr
% \end{macrocode}
% If we picked up a bracket group by mistake here is the place to
-% return it for processing.
+% return it for processing.
% \changes{v2.17g}{2020/03/10}{Explicity test for b/t/c and return
% optional argument is different (gh/5)}
% \begin{macrocode}
- \ams@return@opt@arg
+ \ams@return@opt@arg
}
% \end{macrocode}
% \end{macro}
@@ -3920,7 +3936,7 @@ and fix things up.}
% \changes{v2.17g}{2020/03/10}{Explicity test for b/t/c and return
% optional argument is different (gh/5)}
% \begin{macrocode}
- \ams@return@opt@arg
+ \ams@return@opt@arg
}{%
\endaligned
}