diff options
author | Karl Berry <karl@freefriends.org> | 2023-01-27 21:57:08 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-01-27 21:57:08 +0000 |
commit | 99669706cc43d7cd292672c98ef84f27cb4a23e0 (patch) | |
tree | a5db8f9a42e7d6a31aabe451666bd3ab4bf13793 /Master/texmf-dist/tex/latex/fixdif | |
parent | 684f8f831bfb7df2bd6e3c0f90f832bca7d87c92 (diff) |
fixdif (27jan23)
git-svn-id: svn://tug.org/texlive/trunk@65644 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/fixdif')
-rw-r--r-- | Master/texmf-dist/tex/latex/fixdif/fixdif.sty | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/Master/texmf-dist/tex/latex/fixdif/fixdif.sty b/Master/texmf-dist/tex/latex/fixdif/fixdif.sty index b0e967b1c94..1ee4651fd98 100644 --- a/Master/texmf-dist/tex/latex/fixdif/fixdif.sty +++ b/Master/texmf-dist/tex/latex/fixdif/fixdif.sty @@ -6,7 +6,7 @@ %% %% fixdif.dtx (with options: `package') %% -%% Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com> +%% Copyright (C) 2022-2023 by Zhang Tingxuan <alphaztx@163.com> %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either @@ -29,22 +29,22 @@ %% and README.md. %% \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{fixdif}[2022/10/27 Interface for defining differential operators.] -\@ifpackageloaded{unicode-math}{ - \Umathcode`\/="4 "0 "002F - \Umathcode"2044="4 "0 "2044 - \Umathcode"2215="4 "0 "2215 - \Umathcode"2F98="4 "0 "2F98 - \Umathcode`\\="4 "0 "005C - \Umathcode"2216="4 "0 "2216 - \Umathcode"29F5="4 "0 "29F5 - \Umathcode"29F9="4 "0 "29F9 -}{ +\ProvidesPackage{fixdif}[2023/01/27 Interface for defining differential operators.] +\@ifpackageloaded{unicode-math}{\AtBeginDocument{% + \Umathcode`\/="4 \symoperators "002F + \Umathcode"2044="4 \symoperators "2044 + \Umathcode"2215="4 \symoperators "2215 + \Umathcode"2F98="4 \symoperators "2F98 + \Umathcode`\\="4 \symoperators "005C + \Umathcode"2216="4 \symoperators "2216 + \Umathcode"29F5="4 \symoperators "29F5 + \Umathcode"29F9="4 \symoperators "29F9 +}}{ \mathcode`\/="413D \mathcode`\\="426E % \backslash \def\backslash{\delimiter"426E30F\relax} } -\def\mup@tch{\mathchoice{\mskip-\thinmuskip}{\mskip-\thinmuskip}{}{}} +\def\mup@tch{\mathchoice{\mskip-\thinmuskip}{\mskip-\thinmuskip}{}{}{}} \def\s@beforep@tch{\mathchoice{}{}{\mbox{}}{\mbox{}}} \DeclareOption{rm}{\@ifpackageloaded{unicode-math} {\def\@@dif{\symrm{d}}}{\def\@@dif{\mathrm{d}}}} @@ -59,8 +59,8 @@ \gdef\resetdfont#1{\let\@@dif\relax% \def\@@dif{#1{d}}} \def\@dif{\mathinner{\@@dif}\mup@tch} -\let\d@accent\d -\DeclareRobustCommand\d{\ifmmode\@dif\else\expandafter\d@accent\fi} +\AtBeginDocument{\let\d@accent\d + \DeclareRobustCommand\d{\ifmmode\@dif\else\expandafter\d@accent\fi}} \def\@letdif#1#2{\AtBeginDocument{% \ifcsname #2nondif\endcsname\else% \expandafter\let\csname #2nondif\expandafter\endcsname @@ -73,7 +73,7 @@ \expandafter\let\csname #2nondif\expandafter\endcsname \csname #2\endcsname% \fi% - \gdef#1{\mathinner{\s@beforep@tch\csname #2nondif\endcsname\mbox{}}\mup@tch}% + \gdef#1{\mathinner{\s@beforep@tch\csname #2nondif\endcsname\hbox{}}\mup@tch}% }} \def\letdif{\@ifstar\s@letdif\@letdif} \long\def\@newdif#1#2{\AtBeginDocument{% |