texlive[63851] Master/texmf-dist: fixdif (9jul22)

commits+karl at tug.org commits+karl at tug.org
Sat Jul 9 22:11:06 CEST 2022


Revision: 63851
          http://tug.org/svn/texlive?view=revision&revision=63851
Author:   karl
Date:     2022-07-09 22:11:06 +0200 (Sat, 09 Jul 2022)
Log Message:
-----------
fixdif (9jul22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/fixdif/fixdif.pdf
    trunk/Master/texmf-dist/source/latex/fixdif/fixdif.dtx
    trunk/Master/texmf-dist/tex/latex/fixdif/fixdif.sty

Modified: trunk/Master/texmf-dist/doc/latex/fixdif/fixdif.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/fixdif/fixdif.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/fixdif/fixdif.dtx	2022-07-09 20:10:48 UTC (rev 63850)
+++ trunk/Master/texmf-dist/source/latex/fixdif/fixdif.dtx	2022-07-09 20:11:06 UTC (rev 63851)
@@ -126,7 +126,7 @@
 %</internal>
 %
 %<*driver>
-\ProvidesFile{fixdif.dtx}[2022/05/29 (c) Copyright 2022 by Zhang Tingxuan]
+\ProvidesFile{fixdif.dtx}[2022/07/09 (c) Copyright 2022 by Zhang Tingxuan]
 \documentclass{ltxdoc}
 
 \usepackage{xcolor}
@@ -145,7 +145,7 @@
 
 \title{The \pkg{fixdif} Package}
 \author{Zhang Tingxuan}
-\date{2022/05/29\quad Version 1.1\thanks{\url{https://github.com/AlphaZTX/fixdif}}}
+\date{2022/07/09\quad Version 1.2\thanks{\url{https://github.com/AlphaZTX/fixdif}}}
 
 \usepackage{hyperref}
 \hypersetup{
@@ -329,7 +329,7 @@
 % can be used in preamble only!}
 %
 % \subsection{Define commands with a single command name}
-% \noindent\textbf{\cs{letdif}\marg{cmd}\marg{csname}}\DescribeMacro{\letdif}
+% \noindent\textcolor{titlecolor}{\cs{letdif}\marg{cmd}\marg{csname}}\DescribeMacro{\letdif}
 % \hfill(preamble only)
 %
 % The \cs{letdif} command has two arguments~--- the first is the newly-defined 
@@ -351,7 +351,7 @@
 % The second argument \meta{csname} of \cs{letdif} command can be used 
 % repeatedly.
 %
-% \noindent\textbf{\cs{letdif*}\marg{cmd}\marg{csname}}\DescribeMacro{\letdif*}
+% \noindent\textcolor{titlecolor}{\cs{letdif*}\marg{cmd}\marg{csname}}\DescribeMacro{\letdif*}
 % \hfill(preamble only)
 %
 % This command is basically the same as \cs{letdif}, but this command will 
@@ -372,14 +372,14 @@
 %
 % \subsection{Define commands with multi commands or a string}
 %
-% \noindent\textbf{\cs{newdif}\marg{cmd}\marg{multi-cmd}}\DescribeMacro{\newdif}
+% \noindent\textcolor{titlecolor}{\cs{newdif}\marg{cmd}\marg{multi-cmd}}\DescribeMacro{\newdif}
 % \hfill(without correction, preamble only)\\
-% \noindent\textbf{\cs{newdif*}\marg{cmd}\marg{multi-cmd}}\DescribeMacro{\newdif*}
+% \noindent\textcolor{titlecolor}{\cs{newdif*}\marg{cmd}\marg{multi-cmd}}\DescribeMacro{\newdif*}
 % \hfill(with correction, preamble only)
 %
 % The first argument of these commands is the newly-defined command; and the 
-% second argument should contain \emph{more than one commands} or 
-% \emph{a string}. For example, if you have loaded the \pkg{xcolor} package, 
+% second argument should contain \emph{more than one} tokens.
+% For example, if you have loaded the \pkg{xcolor} package, 
 % you can use the following line:
 % \begin{Verbatim}
 % \newdif{\redsfd}{\textsf{\color{red}d}}
@@ -396,9 +396,9 @@
 % These two commands will check whether \meta{cmd} has been defined already. 
 % If so, an error message will be given.
 %
-% \noindent\textbf{\cs{renewdif}\marg{cmd}\marg{multi-cmd}}\DescribeMacro{\newdif}
+% \noindent\textcolor{titlecolor}{\cs{renewdif}\marg{cmd}\marg{multi-cmd}}\DescribeMacro{\newdif}
 % \hfill(without correction, preamble only)\\
-% \noindent\textbf{\cs{renewdif*}\marg{cmd}\marg{multi-cmd}}\DescribeMacro{\newdif*}
+% \noindent\textcolor{titlecolor}{\cs{renewdif*}\marg{cmd}\marg{multi-cmd}}\DescribeMacro{\newdif*}
 % \hfill(with correction, preamble only)
 %
 % These two commands are basically the same as \cs{newdif} and \cs{newdif*}. 
@@ -497,7 +497,7 @@
 % \DescribeMacro{\d}
 % Redefine the \cs{d} command. In text, we need to expand the stuffs after \cs{d}
 %    \begin{macrocode}
-\gdef\d{\relax\ifmmode\@dif\else\expandafter\d at accent\fi}
+\DeclareRobustCommand\d{\ifmmode\@dif\else\expandafter\d at accent\fi}
 %    \end{macrocode}
 % 
 % \subsection{User's interface for defining new differential operators}
@@ -505,29 +505,29 @@
 % Define the \cs{letdif} and \cs{letdif*} command. The internal version of \cs{letdif} 
 % is \cs{@letdif}, of \cs{letdif*} is \cs{s at letdif}.
 %    \begin{macrocode}
-\def\@letdif#1#2{\AtBeginDocument{
+\def\@letdif#1#2{\AtBeginDocument{%
 %    \end{macrocode}
 % |#1| is the final command; |#2| is the ``control sequence name'' of |#1|'s initial definition.
 % Here we create a command (\cs{csname}|#2 at old|\cs{endcsname}) to restore |#2|.
 %    \begin{macrocode}
-  \ifcsname #2 at old\endcsname\else
-  \expandafter\let\csname #2 at old\expandafter\endcsname%
-    \csname #2\endcsname
-  \fi
+  \ifcsname #2 at old\endcsname\else%
+  \expandafter\let\csname #2 at old\expandafter\endcsname
+    \csname #2\endcsname%
+  \fi%
 %    \end{macrocode}
 % Finally let |#1| be the new command.
 %    \begin{macrocode}
-  \gdef#1{\mathinner{\csname #2 at old\endcsname}\mup at tch}
+  \gdef#1{\mathinner{\csname #2 at old\endcsname}\mup at tch}%
 }}
 %    \end{macrocode}
 % The definition of \cs{s at letdif} is similar, but with the patch for negative skips.
 %    \begin{macrocode}
-\def\s at letdif#1#2{\AtBeginDocument{
-  \ifcsname #2 at old\endcsname\else
-  \expandafter\let\csname #2 at old\expandafter\endcsname%
-    \csname #2\endcsname
-  \fi
-  \gdef#1{\mathinner{\s at beforep@tch\csname #2 at old\endcsname\mbox{}}\mup at tch}
+\def\s at letdif#1#2{\AtBeginDocument{%
+  \ifcsname #2 at old\endcsname\else%
+  \expandafter\let\csname #2 at old\expandafter\endcsname
+    \csname #2\endcsname%
+  \fi%
+  \gdef#1{\mathinner{\s at beforep@tch\csname #2 at old\endcsname\mbox{}}\mup at tch}%
 }}
 \def\letdif{\@ifstar\s at letdif\@letdif}
 %    \end{macrocode}
@@ -534,21 +534,21 @@
 % \DescribeMacro{\newdif}\DescribeMacro{\newdif*}
 % Define the \cs{newdif} and \cs{newdif*} commands. |#1| is the final command; |#2| is the ``long'' argument.
 %    \begin{macrocode}
-\long\def\@newdif#1#2{\AtBeginDocument{
+\long\def\@newdif#1#2{\AtBeginDocument{%
   \ifdefined#1
     \PackageError{fixdif}{\string#1 is already defined.}
-      {Try another command instead of \string#1.}
+      {Try another command instead of \string#1.}%
   \else
-    \long\gdef#1{\mathinner{#2}\mup at tch}
-  \fi
+    \long\gdef#1{\mathinner{#2}\mup at tch}%
+  \fi%
 }}
-\long\def\s at newdif#1#2{\AtBeginDocument{
+\long\def\s at newdif#1#2{\AtBeginDocument{%
   \ifdefined#1
   \PackageError{fixdif}{\string#1 is already defined.}
-    {Try another command instead of \string#1.}
+    {Try another command instead of \string#1.}%
   \else
-    \long\gdef#1{\s at beforep@tch\mathinner{#2\mbox{}}\mup at tch}
-  \fi
+    \long\gdef#1{\s at beforep@tch\mathinner{#2\mbox{}}\mup at tch}%
+  \fi%
 }}
 \def\newdif{\@ifstar\s at newdif\@newdif}
 %    \end{macrocode}
@@ -555,21 +555,21 @@
 % \DescribeMacro{\renewdif}\DescribeMacro{\renewdif*}
 % Define the \cs{renewdif} and \cs{renewdif*} commands.
 %    \begin{macrocode}
-\long\def\@renewdif#1#2{\AtBeginDocument{
+\long\def\@renewdif#1#2{\AtBeginDocument{%
   \ifdefined#1
-    \long\gdef#1{\mathinner{#2}\mup at tch}
+    \long\gdef#1{\mathinner{#2}\mup at tch}%
   \else
     \PackageError{fixdif}{\string#1 has not been defined yet.}
-      {You should use \string\newdif instead of \string\renewdif.}
-  \fi
+      {You should use \string\newdif instead of \string\renewdif.}%
+  \fi%
 }}
-\long\def\s at renewdif#1#2{\AtBeginDocument{
+\long\def\s at renewdif#1#2{\AtBeginDocument{%
   \ifdefined#1
-    \long\gdef#1{\s at beforep@tch\mathinner{#2\mbox{}}\mup at tch}
+    \long\gdef#1{\s at beforep@tch\mathinner{#2\mbox{}}\mup at tch}%
   \else
     \PackageError{fixdif}{\string#1 has not been defined yet.}
-      {You should use \string\newdif instead of \string\renewdif.}
-  \fi
+      {You should use \string\newdif instead of \string\renewdif.}%
+  \fi%
 }}
 \def\renewdif{\@ifstar\s at renewdif\@renewdif}
 %</package>

Modified: trunk/Master/texmf-dist/tex/latex/fixdif/fixdif.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fixdif/fixdif.sty	2022-07-09 20:10:48 UTC (rev 63850)
+++ trunk/Master/texmf-dist/tex/latex/fixdif/fixdif.sty	2022-07-09 20:11:06 UTC (rev 63851)
@@ -61,54 +61,54 @@
   \def\@@dif{#1{d}}}
 \def\@dif{\mathinner{\@@dif}\mup at tch}
 \let\d at accent\d
-\gdef\d{\relax\ifmmode\@dif\else\expandafter\d at accent\fi}
-\def\@letdif#1#2{\AtBeginDocument{
-  \ifcsname #2 at old\endcsname\else
-  \expandafter\let\csname #2 at old\expandafter\endcsname%
-    \csname #2\endcsname
-  \fi
-  \gdef#1{\mathinner{\csname #2 at old\endcsname}\mup at tch}
+\DeclareRobustCommand\d{\ifmmode\@dif\else\expandafter\d at accent\fi}
+\def\@letdif#1#2{\AtBeginDocument{%
+  \ifcsname #2 at old\endcsname\else%
+  \expandafter\let\csname #2 at old\expandafter\endcsname
+    \csname #2\endcsname%
+  \fi%
+  \gdef#1{\mathinner{\csname #2 at old\endcsname}\mup at tch}%
 }}
-\def\s at letdif#1#2{\AtBeginDocument{
-  \ifcsname #2 at old\endcsname\else
-  \expandafter\let\csname #2 at old\expandafter\endcsname%
-    \csname #2\endcsname
-  \fi
-  \gdef#1{\mathinner{\s at beforep@tch\csname #2 at old\endcsname\mbox{}}\mup at tch}
+\def\s at letdif#1#2{\AtBeginDocument{%
+  \ifcsname #2 at old\endcsname\else%
+  \expandafter\let\csname #2 at old\expandafter\endcsname
+    \csname #2\endcsname%
+  \fi%
+  \gdef#1{\mathinner{\s at beforep@tch\csname #2 at old\endcsname\mbox{}}\mup at tch}%
 }}
 \def\letdif{\@ifstar\s at letdif\@letdif}
-\long\def\@newdif#1#2{\AtBeginDocument{
+\long\def\@newdif#1#2{\AtBeginDocument{%
   \ifdefined#1
     \PackageError{fixdif}{\string#1 is already defined.}
-      {Try another command instead of \string#1.}
+      {Try another command instead of \string#1.}%
   \else
-    \long\gdef#1{\mathinner{#2}\mup at tch}
-  \fi
+    \long\gdef#1{\mathinner{#2}\mup at tch}%
+  \fi%
 }}
-\long\def\s at newdif#1#2{\AtBeginDocument{
+\long\def\s at newdif#1#2{\AtBeginDocument{%
   \ifdefined#1
   \PackageError{fixdif}{\string#1 is already defined.}
-    {Try another command instead of \string#1.}
+    {Try another command instead of \string#1.}%
   \else
-    \long\gdef#1{\s at beforep@tch\mathinner{#2\mbox{}}\mup at tch}
-  \fi
+    \long\gdef#1{\s at beforep@tch\mathinner{#2\mbox{}}\mup at tch}%
+  \fi%
 }}
 \def\newdif{\@ifstar\s at newdif\@newdif}
-\long\def\@renewdif#1#2{\AtBeginDocument{
+\long\def\@renewdif#1#2{\AtBeginDocument{%
   \ifdefined#1
-    \long\gdef#1{\mathinner{#2}\mup at tch}
+    \long\gdef#1{\mathinner{#2}\mup at tch}%
   \else
     \PackageError{fixdif}{\string#1 has not been defined yet.}
-      {You should use \string\newdif instead of \string\renewdif.}
-  \fi
+      {You should use \string\newdif instead of \string\renewdif.}%
+  \fi%
 }}
-\long\def\s at renewdif#1#2{\AtBeginDocument{
+\long\def\s at renewdif#1#2{\AtBeginDocument{%
   \ifdefined#1
-    \long\gdef#1{\s at beforep@tch\mathinner{#2\mbox{}}\mup at tch}
+    \long\gdef#1{\s at beforep@tch\mathinner{#2\mbox{}}\mup at tch}%
   \else
     \PackageError{fixdif}{\string#1 has not been defined yet.}
-      {You should use \string\newdif instead of \string\renewdif.}
-  \fi
+      {You should use \string\newdif instead of \string\renewdif.}%
+  \fi%
 }}
 \def\renewdif{\@ifstar\s at renewdif\@renewdif}
 \endinput



More information about the tex-live-commits mailing list.