diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/amsmath/amsopn.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/amsmath/amsopn.dtx | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/latex/amsmath/amsopn.dtx b/Master/texmf-dist/source/latex/amsmath/amsopn.dtx index 39c92f01bc8..7ab916387bd 100644 --- a/Master/texmf-dist/source/latex/amsmath/amsopn.dtx +++ b/Master/texmf-dist/source/latex/amsmath/amsopn.dtx @@ -58,7 +58,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 December 1994 or later -\ProvidesPackage{amsopn}[1999/12/14 v2.01 operator names] +\ProvidesPackage{amsopn}[2016/03/08 v2.02 operator names] % \end{macrocode} % % What \cs{nolimits@} does is keep a \cn{limits} typed by the user @@ -78,8 +78,12 @@ Bug reports can be opened (category \texttt{#1}) at\\% % % Where practical, we use decimal numbers to cut down main mem % usage (\qc{\"} not needed). +% use |\Umathcodedefnum| with xetex and LuaTeX to avoid problems +% using |\mathcode| if |-| has already been defined using |\Umathcode|. +% \changes{v2.02}{2016/03/08}{Unicode TeX version of \cs{newmcodes@}} % \begin{macrocode} \begingroup \catcode`\"=12 +\ifx\Umathcode\@undefined \gdef\newmcodes@{\mathcode`\'39\mathcode`\*42\mathcode`\."613A% % \end{macrocode} % Define \cs{std@minus} for \cs{relbar} use; otherwise there are @@ -89,6 +93,19 @@ Bug reports can be opened (category \texttt{#1}) at\\% \mathchardef\std@minus\mathcode`\-\relax \fi \mathcode`\-45\mathcode`\/47\mathcode`\:"603A\relax} +% \end{macrocode} +% \begin{macrocode} +\else +% \end{macrocode} +% \begin{macrocode} +\gdef\newmcodes@{\mathcode`\'39\mathcode`\*42\mathcode`\."613A% + \ifnum\Umathcodenum`\-=45 \else + \Umathcharnumdef\std@minus\Umathcodenum`\-\relax + \fi + \mathcode`\-45\mathcode`\/47\mathcode`\:"603A\relax} +% \end{macrocode} +% \begin{macrocode} +\fi \endgroup % \end{macrocode} % @@ -242,5 +259,5 @@ Bug reports can be opened (category \texttt{#1}) at\\% % % \changes{v1.2a}{1995/02/20}{Fixed operatorname % (shouldn't have same limits behavior as operatorname*)} -% \CheckSum{300} +% % \Finale |