From 1b5abb7439af0f95d3d341cfc02176216850a04c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 11 Aug 2022 20:44:56 +0000 Subject: fixdif (11aug22) git-svn-id: svn://tug.org/texlive/trunk@64096 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/latex/fixdif/fixdif.dtx | 38 +++++++++++------------- 1 file changed, 18 insertions(+), 20 deletions(-) (limited to 'Master/texmf-dist/source/latex') diff --git a/Master/texmf-dist/source/latex/fixdif/fixdif.dtx b/Master/texmf-dist/source/latex/fixdif/fixdif.dtx index 5cc0a60a123..1155a130fa0 100644 --- a/Master/texmf-dist/source/latex/fixdif/fixdif.dtx +++ b/Master/texmf-dist/source/latex/fixdif/fixdif.dtx @@ -131,7 +131,7 @@ Copyright (C) 2022 by Zhang Tingxuan . % % %<*driver> -\ProvidesFile{fixdif.dtx}[2022/7/27 (c) Copyright 2022 by Zhang Tingxuan] +\ProvidesFile{fixdif.dtx}[2022/8/11 (c) Copyright 2022 by Zhang Tingxuan] \documentclass{ltxdoc} \usepackage{xcolor} @@ -150,7 +150,7 @@ Copyright (C) 2022 by Zhang Tingxuan . \title{The \pkg{fixdif} Package} \author{Zhang Tingxuan} -\date{2022/7/27\quad Version 1.3b\thanks{\url{https://github.com/AlphaZTX/fixdif}}} +\date{2022/8/11\quad Version 1.4\thanks{\url{https://github.com/AlphaZTX/fixdif}}} \usepackage{hyperref} \hypersetup{ @@ -175,12 +175,6 @@ Copyright (C) 2022 by Zhang Tingxuan . {.8ex plus .4ex minus .2ex}% {-1em}% {\normalfont\normalsize\bfseries\color{titlecolor}}} -\def\ps@fixdif{\let\@mkboth\@gobbletwo - \def\@oddhead{\hbox{}\hfil\hbox{}% - \rlap{\raisebox{-.1cm}[0pt][0pt]{% - \hspace*{.6cm}\sffamily\bfseries\color{titlecolor!35}% - \fontsize{128pt}{0pt}\selectfont\thepage}}}% - \def\@oddfoot{\reset@font}\let\@evenhead\@oddhead\let\@evenfoot\@oddfoot} \def\UrlAlphabet{% \do\a\do\b\do\c\do\d\do\e\do\f\do\g\do\h\do\i\do\j% \do\k\do\l\do\m\do\n\do\o\do\p\do\q\do\r\do\s\do\t% @@ -197,7 +191,6 @@ Copyright (C) 2022 by Zhang Tingxuan . \setmathfont{Latin Modern Math} \fi \makeatother -\pagestyle{fixdif} \usepackage{fixdif} @@ -335,6 +328,8 @@ Copyright (C) 2022 by Zhang Tingxuan . % \begin{Verbatim} % \usepackage[nopartial]{fixdif} % \end{Verbatim} +% If you use the default setting, \cs{partialnondif} yields the ordinary +% symbol $\partialnondif$. % % \section{Define commands for differential operators} % \noindent\emph{Attention! The commands in this section @@ -361,7 +356,11 @@ Copyright (C) 2022 by Zhang Tingxuan . % then |\delta| itself will be a differential operator. % % The second argument \meta{csname} of \cs{letdif} command can be used -% repeatedly. +% repeatedly. If you want to get the ordinary symbol of +% \texttt{\char`\\\textnormal{\meta{csname}}}, you can input +% \texttt{\char`\\\textnormal{\meta{csname}}nondif} in math mode. +% For example, in default, \DescribeMacro{\partialnondif}\cs{partialnondif} +% yields the old partial symbol ``$\partialnondif$''. % % \noindent\textcolor{titlecolor}{\cs{letdif*}\marg{cmd}\marg{csname}}\DescribeMacro{\letdif*} % \hfill(preamble only) @@ -474,7 +473,7 @@ Copyright (C) 2022 by Zhang Tingxuan . % Check the \TeX{} format and provides the package name. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{fixdif}[2022/7/27 Interface for defining differential operators.] +\ProvidesPackage{fixdif}[2022/8/11 Interface for defining differential operators.] % \end{macrocode} % % \subsection{Control the skip between slashes and differential operator} @@ -530,8 +529,7 @@ Copyright (C) 2022 by Zhang Tingxuan . % \end{macrocode} % Control the behavior of \cs{partial}. % \begin{macrocode} -\def\fixdif@partial@true{1} -\ifx\fixdif@partial@bool\fixdif@partial@true +\ifnum\fixdif@partial@bool=1 \AtEndOfPackage{\letdif{\partial}{partial}} \fi % \end{macrocode} @@ -569,26 +567,26 @@ Copyright (C) 2022 by Zhang Tingxuan . \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@old|\cs{endcsname}) to restore |#2|. +% Here we create a command (\cs{csname}|#2nonfif|\cs{endcsname}) to restore |#2|. % \begin{macrocode} - \ifcsname #2@old\endcsname\else% - \expandafter\let\csname #2@old\expandafter\endcsname + \ifcsname #2nondif\endcsname\else% + \expandafter\let\csname #2nondif\expandafter\endcsname \csname #2\endcsname% \fi% % \end{macrocode} % Finally let |#1| be the new command. % \begin{macrocode} - \gdef#1{\mathinner{\csname #2@old\endcsname}\mup@tch}% + \gdef#1{\mathinner{\csname #2nondif\endcsname}\mup@tch}% }} % \end{macrocode} % The definition of \cs{s@letdif} is similar, but with the patch for negative skips. % \begin{macrocode} \def\s@letdif#1#2{\AtBeginDocument{% - \ifcsname #2@old\endcsname\else% - \expandafter\let\csname #2@old\expandafter\endcsname + \ifcsname #2nondif\endcsname\else% + \expandafter\let\csname #2nondif\expandafter\endcsname \csname #2\endcsname% \fi% - \gdef#1{\mathinner{\s@beforep@tch\csname #2@old\endcsname\mbox{}}\mup@tch}% + \gdef#1{\mathinner{\s@beforep@tch\csname #2nondif\endcsname\mbox{}}\mup@tch}% }} \def\letdif{\@ifstar\s@letdif\@letdif} % \end{macrocode} -- cgit v1.2.3