summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/fixdif/fixdif.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-01-27 21:57:08 +0000
committerKarl Berry <karl@freefriends.org>2023-01-27 21:57:08 +0000
commit99669706cc43d7cd292672c98ef84f27cb4a23e0 (patch)
treea5db8f9a42e7d6a31aabe451666bd3ab4bf13793 /Master/texmf-dist/source/latex/fixdif/fixdif.dtx
parent684f8f831bfb7df2bd6e3c0f90f832bca7d87c92 (diff)
fixdif (27jan23)
git-svn-id: svn://tug.org/texlive/trunk@65644 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/fixdif/fixdif.dtx')
-rw-r--r--Master/texmf-dist/source/latex/fixdif/fixdif.dtx40
1 files changed, 20 insertions, 20 deletions
diff --git a/Master/texmf-dist/source/latex/fixdif/fixdif.dtx b/Master/texmf-dist/source/latex/fixdif/fixdif.dtx
index 7b525cc67ff..c6dfc5a236e 100644
--- a/Master/texmf-dist/source/latex/fixdif/fixdif.dtx
+++ b/Master/texmf-dist/source/latex/fixdif/fixdif.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% 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
@@ -48,7 +48,7 @@ either version 1.3c of this license or (at your option) any later version.
------
-Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
+Copyright (C) 2022-2023 by Zhang Tingxuan <alphaztx@163.com>.
%</readme>
%
%<*internal>
@@ -65,7 +65,7 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
\preamble
- 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
@@ -131,7 +131,7 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
%</internal>
%
%<*driver>
-\ProvidesFile{fixdif.dtx}[2022/10/27 (c) Copyright 2022 by Zhang Tingxuan]
+\ProvidesFile{fixdif.dtx}[2023/01/27 (c) Copyright 2022-2023 by Zhang Tingxuan]
\documentclass{ltxdoc}
\usepackage{xcolor}
@@ -150,7 +150,7 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
\title{The \pkg{fixdif} Package}
\author{Zhang Tingxuan}
-\date{2022/10/27\quad Version 1.4b\thanks{\url{https://github.com/AlphaZTX/fixdif}}}
+\date{2023/01/27\quad Version 1.6\thanks{\url{https://github.com/AlphaZTX/fixdif}}}
\usepackage{hyperref}
\hypersetup{
@@ -473,27 +473,27 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
% Check the \TeX{} format and provides the package name.
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{fixdif}[2022/10/27 Interface for defining differential operators.]
+\ProvidesPackage{fixdif}[2023/01/27 Interface for defining differential operators.]
% \end{macrocode}
%
% \subsection{Control the skip between slashes and differential operator}
% Change the math code of slash ($/$) and backslash ($\backslash$) so that the skip
% between slashes and differential operators can be ignored.
% \begin{macrocode}
-\@ifpackageloaded{unicode-math}{
+\@ifpackageloaded{unicode-math}{\AtBeginDocument{%
% \end{macrocode}
% If the \pkg{unicode-math} package has been loaded, use the \XeTeX/\LuaTeX{} primitive
% \cs{Umathcode} to change the type of slashes. The numeral ``4'' stands for ``open''.
% \begin{macrocode}
- \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
-}{
+ \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
+}}{
% \end{macrocode}
% If the \pkg{unicode-math} package has not been loaded, use the \TeX{} primitive
% \cs{mathcode} to change the type of slashes. The \cs{backslash} needs to be redefined
@@ -509,7 +509,7 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
% \DescribeMacro{\mup@tch}
% The following \cs{mup@tch} patches the skip after the differential operator.
% \begin{macrocode}
-\def\mup@tch{\mathchoice{\mskip-\thinmuskip}{\mskip-\thinmuskip}{}{}}
+\def\mup@tch{\mathchoice{\mskip-\thinmuskip}{\mskip-\thinmuskip}{}{}{}}
% \end{macrocode}
% The \cs{s@beforep@tch} patches the commands with star (\cs{letdif*}, etc).
% \begin{macrocode}
@@ -551,12 +551,12 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
% Restore the \cs{d} command in text by \cs{d@accent} with the \cs{let}
% primitive.
% \begin{macrocode}
-\let\d@accent\d
+\AtBeginDocument{\let\d@accent\d
% \end{macrocode}
% \DescribeMacro{\d}
% Redefine the \cs{d} command. In text, we need to expand the stuffs after \cs{d}
% \begin{macrocode}
-\DeclareRobustCommand\d{\ifmmode\@dif\else\expandafter\d@accent\fi}
+ \DeclareRobustCommand\d{\ifmmode\@dif\else\expandafter\d@accent\fi}}
% \end{macrocode}
%
% \subsection{User's interface for defining new differential operators}
@@ -586,7 +586,7 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
\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}
% \end{macrocode}