From b6cedd3a9b5b70496d5c0651e0fdb26fdedf89cf Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 30 May 2022 20:05:38 +0000 Subject: fixdif (30may22) git-svn-id: svn://tug.org/texlive/trunk@63444 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/fixdif/fixdif.pdf | Bin 324073 -> 324100 bytes Master/texmf-dist/source/latex/fixdif/fixdif.dtx | 12 +++++------- Master/texmf-dist/tex/latex/fixdif/fixdif.sty | 8 +++----- 3 files changed, 8 insertions(+), 12 deletions(-) (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/latex/fixdif/fixdif.pdf b/Master/texmf-dist/doc/latex/fixdif/fixdif.pdf index fd3208d6693..dd066756f06 100644 Binary files a/Master/texmf-dist/doc/latex/fixdif/fixdif.pdf and b/Master/texmf-dist/doc/latex/fixdif/fixdif.pdf 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 . % % %<*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 . \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 . % 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 . % \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 . % \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% -- cgit v1.2.3