summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-05-30 20:05:38 +0000
committerKarl Berry <karl@freefriends.org>2022-05-30 20:05:38 +0000
commitb6cedd3a9b5b70496d5c0651e0fdb26fdedf89cf (patch)
tree2d9b38e0afbf71b53ce4c8037159b9c43299c198
parent8b38524142f4b0ed52b819dc06f677c98c4f6bc4 (diff)
fixdif (30may22)
git-svn-id: svn://tug.org/texlive/trunk@63444 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/fixdif/fixdif.pdfbin324073 -> 324100 bytes
-rw-r--r--Master/texmf-dist/source/latex/fixdif/fixdif.dtx12
-rw-r--r--Master/texmf-dist/tex/latex/fixdif/fixdif.sty8
3 files changed, 8 insertions, 12 deletions
diff --git a/Master/texmf-dist/doc/latex/fixdif/fixdif.pdf b/Master/texmf-dist/doc/latex/fixdif/fixdif.pdf
index fd3208d6693..dd066756f06 100644
--- a/Master/texmf-dist/doc/latex/fixdif/fixdif.pdf
+++ b/Master/texmf-dist/doc/latex/fixdif/fixdif.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/fixdif/fixdif.dtx b/Master/texmf-dist/source/latex/fixdif/fixdif.dtx
index 95099c0b741..9e06f1067ab 100644
--- a/Master/texmf-dist/source/latex/fixdif/fixdif.dtx
+++ b/Master/texmf-dist/source/latex/fixdif/fixdif.dtx
@@ -126,7 +126,7 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
%</internal>
%
%<*driver>
-\ProvidesFile{fixdif.dtx}[2022/05/27 (c) Copyright 2022 by Zhang Tingxuan]
+\ProvidesFile{fixdif.dtx}[2022/05/29 (c) Copyright 2022 by Zhang Tingxuan]
\documentclass{ltxdoc}
\usepackage{xcolor}
@@ -145,7 +145,7 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
\title{The \pkg{fixdif} Package}
\author{Zhang Tingxuan}
-\date{2022/05/27\quad Version 1.0\thanks{\url{https://github.com/AlphaZTX/fixdif}}}
+\date{2022/05/29\quad Version 1.1\thanks{\url{https://github.com/AlphaZTX/fixdif}}}
\usepackage{hyperref}
\hypersetup{
@@ -413,7 +413,7 @@ 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/05/26 Interface for defining the differential operator.]
+\ProvidesPackage{fixdif}[2022/05/29 Interface for defining the differential operator.]
% \end{macrocode}
%
% \subsection{Control the skip between slash and differential operator}
@@ -486,9 +486,7 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
% \cs{@dif} is the differential operator produced by \cs{d} in math mode.
% Here we prefer \cs{mathinner} to |\mathbin| to make the skip.
% \begin{macrocode}
-\def\@dif{\ifmmode%
- \mathinner{\@@dif}\mup@tch%
-\fi}
+\def\@dif{\mathinner{\@@dif}\mup@tch}
% \end{macrocode}
% \DescribeMacro{\d@accent}
% Restore the \cs{d} command in text by \cs{d@accent} with the \cs{let}
@@ -499,7 +497,7 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
% \DescribeMacro{\d}
% Redefine the \cs{d} command. In text, we need to expand the stuffs after \cs{d}
% \begin{macrocode}
-\gdef\d{\ifmmode\@dif\else\expandafter\d@accent\fi}
+\gdef\d{\relax\ifmmode\@dif\else\expandafter\d@accent\fi}
% \end{macrocode}
%
% \subsection{User's interface for defining new differential operators}
diff --git a/Master/texmf-dist/tex/latex/fixdif/fixdif.sty b/Master/texmf-dist/tex/latex/fixdif/fixdif.sty
index 3431ca9d12b..bcea188cb8e 100644
--- a/Master/texmf-dist/tex/latex/fixdif/fixdif.sty
+++ b/Master/texmf-dist/tex/latex/fixdif/fixdif.sty
@@ -29,7 +29,7 @@
%% and README.md.
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{fixdif}[2022/05/26 Interface for defining the differential operator.]
+\ProvidesPackage{fixdif}[2022/05/29 Interface for defining the differential operator.]
\@ifpackageloaded{unicode-math}{
\Umathcode`\/="4 "0 "002F
\Umathcode"2044="4 "0 "2044
@@ -59,11 +59,9 @@
\fi
\gdef\resetdfont#1{\let\@@dif\relax%
\def\@@dif{#1{d}}}
-\def\@dif{\ifmmode%
- \mathinner{\@@dif}\mup@tch%
-\fi}
+\def\@dif{\mathinner{\@@dif}\mup@tch}
\let\d@accent\d
-\gdef\d{\ifmmode\@dif\else\expandafter\d@accent\fi}
+\gdef\d{\relax\ifmmode\@dif\else\expandafter\d@accent\fi}
\def\@letdif#1#2{\AtBeginDocument{
\ifcsname #2@old\endcsname\else
\expandafter\let\csname #2@old\expandafter\endcsname%