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.dtx41
1 files changed, 32 insertions, 9 deletions
diff --git a/Master/texmf-dist/source/latex/amsmath/amsmath.dtx b/Master/texmf-dist/source/latex/amsmath/amsmath.dtx
index 8e4943235f0..8671694b706 100644
--- a/Master/texmf-dist/source/latex/amsmath/amsmath.dtx
+++ b/Master/texmf-dist/source/latex/amsmath/amsmath.dtx
@@ -1,8 +1,8 @@
%
% \iffalse meta-comment
%
-% Copyright 1995, 2000, 2013 American Mathematical Society.
-% Copyright 2016-2018 LaTeX3 Project and American Mathematical Society.
+% Copyright (C) 1995, 2000, 2013 American Mathematical Society.
+% Copyright (C) 2016-2019 LaTeX3 Project and American Mathematical Society.
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
@@ -76,17 +76,17 @@ Bug reports can be opened (category \texttt{#1}) at\\%
[1994/12/01]% LaTeX date must be December 1994 or later
% \end{macrocode}
%
-% Not yet used but for the future \ldots
+% Providing a rollback to earlier version(s)
% \begin{macrocode}
-%\providecommand\DeclareRelease[3]{}
-%\providecommand\DeclareCurrentRelease[2]{}
+\providecommand\DeclareRelease[3]{}
+\providecommand\DeclareCurrentRelease[2]{}
%
-%\DeclareRelease{}{2017-09-02}{amsmath-2017-09-02.sty}
-%\DeclareCurrentRelease{}{2018-12-01}
+\DeclareRelease{}{2018-12-01}{amsmath-2018-12-01.sty}
+\DeclareCurrentRelease{}{2019-04-01}
% \end{macrocode}
%
% \begin{macrocode}
-\ProvidesPackage{amsmath}[2018/12/01 v2.17b AMS math features]
+\ProvidesPackage{amsmath}[2019/04/01 v2.17c AMS math features]
% \end{macrocode}
%
% \section{Catcode defenses}
@@ -1690,7 +1690,19 @@ Foreign command \@backslashchar#1;\MessageBreak
% This test is just at package loading and has no affect on the
% definitions used in 8bit TeX.
% \begin{macrocode}
-\def\@tempa#1{\@xp\@tempb\meaning#1\@nil#1}
+%\def\@tempa#1{\@xp\@tempb\meaning#1\@nil#1}
+% \end{macrocode}
+% The extended definition below tests if the accent is already
+% robust (as newer \LaTeX{} kernels do this by default) and if so
+% picks up the robust definition. However, as of
+% now it still redefines it to be non-robust.
+% \begin{macrocode}
+\def\@tempa#1{%
+ \@ifundefined{\@xp\@gobble\string#1\space}%
+ {\@xp\@tempb\meaning#1\@nil#1}%
+ {\@xp\@xp\@xp\@tempb\@xp\meaning
+ \csname\@xp\@gobble\string#1\space\endcsname\@nil#1}%
+}
\def\@tempb#1>#2#3 #4\@nil#5{%
\@xp\ifx\csname#3\endcsname\mathaccent
\@tempc#4?"7777\@nil#5%
@@ -2075,6 +2087,17 @@ Foreign command \@backslashchar#1;\MessageBreak
% \end{macro}
% \end{macro}
%
+%
+% \begin{macro}{\overunderset}
+% This is the combination of the previous two commands which is
+% something that is sometimes needed.
+% \changes{v2.17c}{FMi}{New command \cs{overunderset}}
+% \begin{macrocode}
+\newcommand{\overunderset}[3]{\binrel@{#3}%
+ \binrel@@{\mathop{\kern\z@#3}\limits^{#1}_{#2}}}
+% \end{macrocode}
+% \end{macro}
+%
% \begin{macro}{\sideset}
% \cn{sideset} allows placing `adscript' symbols at the four
% corners of a \cs{mathop}, \emph{in addition to} limits. Left-side