summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-07-09 20:11:06 +0000
committerKarl Berry <karl@freefriends.org>2022-07-09 20:11:06 +0000
commit6c9373df6ccca6628d9c9d2603e1e929bdb2cfda (patch)
treefc9df6c1af6ae0219d961d510ac782109082f7bd /Master/texmf-dist/tex
parent0bc467b2fe6735f21a5f8d9d3ec5ceaf6c4d3be2 (diff)
fixdif (9jul22)
git-svn-id: svn://tug.org/texlive/trunk@63851 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/fixdif/fixdif.sty58
1 files changed, 29 insertions, 29 deletions
diff --git a/Master/texmf-dist/tex/latex/fixdif/fixdif.sty b/Master/texmf-dist/tex/latex/fixdif/fixdif.sty
index bcea188cb8e..10572213e4a 100644
--- a/Master/texmf-dist/tex/latex/fixdif/fixdif.sty
+++ b/Master/texmf-dist/tex/latex/fixdif/fixdif.sty
@@ -61,54 +61,54 @@
\def\@@dif{#1{d}}}
\def\@dif{\mathinner{\@@dif}\mup@tch}
\let\d@accent\d
-\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%
- \csname #2\endcsname
- \fi
- \gdef#1{\mathinner{\csname #2@old\endcsname}\mup@tch}
+\DeclareRobustCommand\d{\ifmmode\@dif\else\expandafter\d@accent\fi}
+\def\@letdif#1#2{\AtBeginDocument{%
+ \ifcsname #2@old\endcsname\else%
+ \expandafter\let\csname #2@old\expandafter\endcsname
+ \csname #2\endcsname%
+ \fi%
+ \gdef#1{\mathinner{\csname #2@old\endcsname}\mup@tch}%
}}
-\def\s@letdif#1#2{\AtBeginDocument{
- \ifcsname #2@old\endcsname\else
- \expandafter\let\csname #2@old\expandafter\endcsname%
- \csname #2\endcsname
- \fi
- \gdef#1{\mathinner{\s@beforep@tch\csname #2@old\endcsname\mbox{}}\mup@tch}
+\def\s@letdif#1#2{\AtBeginDocument{%
+ \ifcsname #2@old\endcsname\else%
+ \expandafter\let\csname #2@old\expandafter\endcsname
+ \csname #2\endcsname%
+ \fi%
+ \gdef#1{\mathinner{\s@beforep@tch\csname #2@old\endcsname\mbox{}}\mup@tch}%
}}
\def\letdif{\@ifstar\s@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@tch}
- \fi
+ \long\gdef#1{\mathinner{#2}\mup@tch}%
+ \fi%
}}
-\long\def\s@newdif#1#2{\AtBeginDocument{
+\long\def\s@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@beforep@tch\mathinner{#2\mbox{}}\mup@tch}
- \fi
+ \long\gdef#1{\s@beforep@tch\mathinner{#2\mbox{}}\mup@tch}%
+ \fi%
}}
\def\newdif{\@ifstar\s@newdif\@newdif}
-\long\def\@renewdif#1#2{\AtBeginDocument{
+\long\def\@renewdif#1#2{\AtBeginDocument{%
\ifdefined#1
- \long\gdef#1{\mathinner{#2}\mup@tch}
+ \long\gdef#1{\mathinner{#2}\mup@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@renewdif#1#2{\AtBeginDocument{
+\long\def\s@renewdif#1#2{\AtBeginDocument{%
\ifdefined#1
- \long\gdef#1{\s@beforep@tch\mathinner{#2\mbox{}}\mup@tch}
+ \long\gdef#1{\s@beforep@tch\mathinner{#2\mbox{}}\mup@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@renewdif\@renewdif}
\endinput