texlive[65644] Master/texmf-dist: fixdif (27jan23)

commits+karl at tug.org commits+karl at tug.org
Fri Jan 27 22:57:08 CET 2023


Revision: 65644
          http://tug.org/svn/texlive?view=revision&revision=65644
Author:   karl
Date:     2023-01-27 22:57:08 +0100 (Fri, 27 Jan 2023)
Log Message:
-----------
fixdif (27jan23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/fixdif/README.md
    trunk/Master/texmf-dist/doc/latex/fixdif/fixdif-zh-cn.pdf
    trunk/Master/texmf-dist/doc/latex/fixdif/fixdif-zh-cn.tex
    trunk/Master/texmf-dist/doc/latex/fixdif/fixdif.pdf
    trunk/Master/texmf-dist/source/latex/fixdif/fixdif.dtx
    trunk/Master/texmf-dist/source/latex/fixdif/fixdif.ins
    trunk/Master/texmf-dist/tex/latex/fixdif/fixdif.sty

Modified: trunk/Master/texmf-dist/doc/latex/fixdif/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fixdif/README.md	2023-01-27 21:56:49 UTC (rev 65643)
+++ trunk/Master/texmf-dist/doc/latex/fixdif/README.md	2023-01-27 21:57:08 UTC (rev 65644)
@@ -19,4 +19,4 @@
 
 ------
 
-Copyright (C) 2022 by Zhang Tingxuan <alphaztx at 163.com>.
+Copyright (C) 2022-2023 by Zhang Tingxuan <alphaztx at 163.com>.

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

Modified: trunk/Master/texmf-dist/doc/latex/fixdif/fixdif-zh-cn.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fixdif/fixdif-zh-cn.tex	2023-01-27 21:56:49 UTC (rev 65643)
+++ trunk/Master/texmf-dist/doc/latex/fixdif/fixdif-zh-cn.tex	2023-01-27 21:57:08 UTC (rev 65644)
@@ -1,25 +1,21 @@
 \documentclass[letterpaper,11pt]{article}
-\date{2022/10/27\quad Version 1.4b%
+\date{2023/01/27\quad Version 1.6%
   \thanks{源代码见~\hyperref{https://github.com/AlphaZTX/fixdif}{}{}{GitHub} 
   或~\hyperref{https://www.ctan.org/pkg/fixdif}{}{}{CTAN}。}
 }
 \ifcsname XeTeXversion\endcsname\else\errmessage{本文档需使用 xelatex 编译}\fi
-
 \usepackage{indentfirst,enumitem}
-
 \usepackage{manfnt,marginnote}
 \newcounter{fixdifattention}
 \newcommand\attention[1][1]{\setcounter{fixdifattention}{1}%
   \ifnum#1=1 \def\attentiontext{\dbend}\else
-  \def\attentiontext{\loop\dbend\,%
+  \def\attentiontext{\loop\dbend\kern1pt%
     \addtocounter{fixdifattention}{1}%
     \ifnum \value{fixdifattention}<#1 \repeat\dbend}\fi%
-  \marginnote{\makebox[0pt][r]{\attentiontext}}}
-
+  \marginnote{\hbox to 0pt{\hss\attentiontext}}}
 \usepackage{xcolor}
 \definecolor{titlecolor}{RGB}{0,128,8}
 \definecolor{lnkcolor}{RGB}{0,12,160}
-
 \usepackage{fontspec}
 \setmainfont{STIX Two Text}
 \setsansfont{Inter}[Scale=MatchLowercase]
@@ -33,31 +29,24 @@
 \DeclareRobustCommand\zhemph{\CJKunderdot}
 \usepackage{unicode-math}
 \setmathfont{STIX Two Math}
-
 \usepackage{hyperref}
 \hypersetup{pdffitwindow,
-  pdftitle   = {fixdif 宏包(中文文档)},
+  pdftitle   = {fixdif 宏包},
   pdfauthor  = {AlphaZTX},
-  pdfcreator = {pdfLaTeX/XeLaTeX/LuaLaTeX},
+  pdfcreator = {XeTeX},
   linkcolor  = black,
-  urlcolor   = lnkcolor,
-}
-
-\usepackage{doc}
+  urlcolor   = lnkcolor}
+\usepackage{doc}% Warning
 \DeclareRobustCommand\marg[1]{\texttt{\{}\meta{#1}\texttt{\}}}
-
 \usepackage{fancyvrb}
 \fvset{xleftmargin=2em,fontsize=\small}
 \MakeShortVerb|
-
 \usepackage{hologo}
 \DeclareRobustCommand\pdflatex{\hologo{pdfLaTeX}}
 \DeclareRobustCommand\xelatex{\hologo{XeLaTeX}}
 \DeclareRobustCommand\lualatex{\hologo{LuaLaTeX}}
-
 \DeclareRobustCommand\pkg{\textsf}
 \DeclareRobustCommand\opt{\texttt}
-
 \makeatletter
 \renewcommand\section{\@startsection{section}{1}{\z@}%
   {-2.5ex plus -1ex minus -.2ex}%
@@ -73,23 +62,19 @@
   {\indent\normalfont\normalsize\bfseries\color{titlecolor}}}
 \gdef\fd at name{\char"66\char"69\char"78\char"64\char"69\char"66}
 \def\ps at plain{\let\@mkboth\@gobbletwo
-  \def\@oddhead{\hbox{}\llap{\raisebox{-24.44cm}[0pt][0pt]{\sffamily\bfseries%
-    \color{titlecolor!5}\fontsize{238pt}{0pt}\selectfont\fd at name}%
-    \hspace*{-14.72cm}}\hfil\hbox{}\rlap{\raisebox{.2cm}[0pt][0pt]{%
+  \def\@oddhead{\hfil\hbox{}\rlap{\raisebox{.2cm}[0pt][0pt]{%
     \hspace*{1.4cm}\sffamily\bfseries\color{titlecolor!35}%
     \fontsize{128pt}{0pt}\selectfont\thepage}}}%
   \def\@oddfoot{\reset at font}\let\@evenhead\@oddhead\let\@evenfoot\@oddfoot}
-\gdef\@title{\bfseries\pkg{\fd at name}\Uchar"5B8F\Uchar"5305}
+\gdef\@title{\bfseries\pkg{\char"66\char"69\char"78\char"64\char"69\char"66}%
+  \Uchar"5B8F\Uchar"5305}
 \gdef\@author{\Uchar"5F20\Uchar"5EAD\Uchar"7444}
 \makeatother
 \pagestyle{plain}
-
 \usepackage{fixdif}
-
 \linespread{1.2}
 \parskip8pt plus 4pt minus 2pt
 \parindent2em
-
 \begin{document}
 \maketitle
 \thispagestyle{plain}
@@ -382,7 +367,8 @@
 \begin{Verbatim}
 \letdif{\laplacian}{Delta}
 \end{Verbatim}
-如果你比较擅长使用 \pkg{xparse} 宏包的接口,你也可以采用下面的方法:
+如果你比较擅长使用 \pkg{xparse} 宏包(2020 年 10 月后已被集成进 \LaTeXe{} 内核)
+的接口,你也可以采用下面的方法:
 \begin{Verbatim}
 \letdif{\nabla}{nabla}
 \DeclareDocumentCommand{ \laplacian }{ s }{

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	2023-01-27 21:56:49 UTC (rev 65643)
+++ trunk/Master/texmf-dist/source/latex/fixdif/fixdif.dtx	2023-01-27 21:57:08 UTC (rev 65644)
@@ -1,6 +1,6 @@
 % \iffalse meta-comment
 %
-% Copyright (C) 2022 by Zhang Tingxuan <alphaztx at 163.com>
+% Copyright (C) 2022-2023 by Zhang Tingxuan <alphaztx at 163.com>
 %
 % This work may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either
@@ -48,7 +48,7 @@
 
 ------
 
-Copyright (C) 2022 by Zhang Tingxuan <alphaztx at 163.com>.
+Copyright (C) 2022-2023 by Zhang Tingxuan <alphaztx at 163.com>.
 %</readme>
 %
 %<*internal>
@@ -65,7 +65,7 @@
 
 \preamble
 
-  Copyright (C) 2022 by Zhang Tingxuan <alphaztx at 163.com>
+  Copyright (C) 2022-2023 by Zhang Tingxuan <alphaztx at 163.com>
 
   This work may be distributed and/or modified under the
   conditions of the LaTeX Project Public License, either
@@ -131,7 +131,7 @@
 %</internal>
 %
 %<*driver>
-\ProvidesFile{fixdif.dtx}[2022/10/27 (c) Copyright 2022 by Zhang Tingxuan]
+\ProvidesFile{fixdif.dtx}[2023/01/27 (c) Copyright 2022-2023 by Zhang Tingxuan]
 \documentclass{ltxdoc}
 
 \usepackage{xcolor}
@@ -150,7 +150,7 @@
 
 \title{The \pkg{fixdif} Package}
 \author{Zhang Tingxuan}
-\date{2022/10/27\quad Version 1.4b\thanks{\url{https://github.com/AlphaZTX/fixdif}}}
+\date{2023/01/27\quad Version 1.6\thanks{\url{https://github.com/AlphaZTX/fixdif}}}
 
 \usepackage{hyperref}
 \hypersetup{
@@ -473,7 +473,7 @@
 % Check the \TeX{} format and provides the package name.
 %    \begin{macrocode}
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{fixdif}[2022/10/27 Interface for defining differential operators.]
+\ProvidesPackage{fixdif}[2023/01/27 Interface for defining differential operators.]
 %    \end{macrocode}
 % 
 % \subsection{Control the skip between slashes and differential operator}
@@ -480,20 +480,20 @@
 % Change the math code of slash ($/$) and backslash ($\backslash$) so that the skip 
 % between slashes and differential operators can be ignored.
 %    \begin{macrocode}
-\@ifpackageloaded{unicode-math}{
+\@ifpackageloaded{unicode-math}{\AtBeginDocument{%
 %    \end{macrocode}
 % If the \pkg{unicode-math} package has been loaded, use the \XeTeX/\LuaTeX{} primitive 
 % \cs{Umathcode} to change the type of slashes. The numeral ``4'' stands for ``open''.
 %    \begin{macrocode}
-  \Umathcode`\/="4 "0 "002F
-  \Umathcode"2044="4 "0 "2044
-  \Umathcode"2215="4 "0 "2215
-  \Umathcode"2F98="4 "0 "2F98
-  \Umathcode`\\="4 "0 "005C
-  \Umathcode"2216="4 "0 "2216
-  \Umathcode"29F5="4 "0 "29F5
-  \Umathcode"29F9="4 "0 "29F9
-}{
+  \Umathcode`\/="4 \symoperators "002F
+  \Umathcode"2044="4 \symoperators "2044
+  \Umathcode"2215="4 \symoperators "2215
+  \Umathcode"2F98="4 \symoperators "2F98
+  \Umathcode`\\="4 \symoperators "005C
+  \Umathcode"2216="4 \symoperators "2216
+  \Umathcode"29F5="4 \symoperators "29F5
+  \Umathcode"29F9="4 \symoperators "29F9
+}}{
 %    \end{macrocode}
 % If the \pkg{unicode-math} package has not been loaded, use the \TeX{} primitive 
 % \cs{mathcode} to change the type of slashes. The \cs{backslash} needs to be redefined 
@@ -509,7 +509,7 @@
 % \DescribeMacro{\mup at tch}
 % The following \cs{mup at tch} patches the skip after the differential operator.
 %    \begin{macrocode}
-\def\mup at tch{\mathchoice{\mskip-\thinmuskip}{\mskip-\thinmuskip}{}{}}
+\def\mup at tch{\mathchoice{\mskip-\thinmuskip}{\mskip-\thinmuskip}{}{}{}}
 %    \end{macrocode}
 % The \cs{s at beforep@tch} patches the commands with star (\cs{letdif*}, etc).
 %    \begin{macrocode}
@@ -551,12 +551,12 @@
 % Restore the \cs{d} command in text by \cs{d at accent} with the \cs{let} 
 % primitive.
 %    \begin{macrocode}
-\let\d at accent\d
+\AtBeginDocument{\let\d at accent\d
 %    \end{macrocode}
 % \DescribeMacro{\d}
 % Redefine the \cs{d} command. In text, we need to expand the stuffs after \cs{d}
 %    \begin{macrocode}
-\DeclareRobustCommand\d{\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}
@@ -586,7 +586,7 @@
   \expandafter\let\csname #2nondif\expandafter\endcsname
     \csname #2\endcsname%
   \fi%
-  \gdef#1{\mathinner{\s at beforep@tch\csname #2nondif\endcsname\mbox{}}\mup at tch}%
+  \gdef#1{\mathinner{\s at beforep@tch\csname #2nondif\endcsname\hbox{}}\mup at tch}%
 }}
 \def\letdif{\@ifstar\s at letdif\@letdif}
 %    \end{macrocode}

Modified: trunk/Master/texmf-dist/source/latex/fixdif/fixdif.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/fixdif/fixdif.ins	2023-01-27 21:56:49 UTC (rev 65643)
+++ trunk/Master/texmf-dist/source/latex/fixdif/fixdif.ins	2023-01-27 21:57:08 UTC (rev 65644)
@@ -6,7 +6,7 @@
 %%
 %% fixdif.dtx  (with options: `install')
 %% 
-%%   Copyright (C) 2022 by Zhang Tingxuan <alphaztx at 163.com>
+%%   Copyright (C) 2022-2023 by Zhang Tingxuan <alphaztx at 163.com>
 %% 
 %%   This work may be distributed and/or modified under the
 %%   conditions of the LaTeX Project Public License, either
@@ -33,7 +33,7 @@
 
 \preamble
 
-  Copyright (C) 2022 by Zhang Tingxuan <alphaztx at 163.com>
+  Copyright (C) 2022-2023 by Zhang Tingxuan <alphaztx at 163.com>
 
   This work may be distributed and/or modified under the
   conditions of the LaTeX Project Public License, either

Modified: trunk/Master/texmf-dist/tex/latex/fixdif/fixdif.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fixdif/fixdif.sty	2023-01-27 21:56:49 UTC (rev 65643)
+++ trunk/Master/texmf-dist/tex/latex/fixdif/fixdif.sty	2023-01-27 21:57:08 UTC (rev 65644)
@@ -6,7 +6,7 @@
 %%
 %% fixdif.dtx  (with options: `package')
 %% 
-%%   Copyright (C) 2022 by Zhang Tingxuan <alphaztx at 163.com>
+%%   Copyright (C) 2022-2023 by Zhang Tingxuan <alphaztx at 163.com>
 %% 
 %%   This work may be distributed and/or modified under the
 %%   conditions of the LaTeX Project Public License, either
@@ -29,22 +29,22 @@
 %%                               and README.md.
 %% 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{fixdif}[2022/10/27 Interface for defining differential operators.]
-\@ifpackageloaded{unicode-math}{
-  \Umathcode`\/="4 "0 "002F
-  \Umathcode"2044="4 "0 "2044
-  \Umathcode"2215="4 "0 "2215
-  \Umathcode"2F98="4 "0 "2F98
-  \Umathcode`\\="4 "0 "005C
-  \Umathcode"2216="4 "0 "2216
-  \Umathcode"29F5="4 "0 "29F5
-  \Umathcode"29F9="4 "0 "29F9
-}{
+\ProvidesPackage{fixdif}[2023/01/27 Interface for defining differential operators.]
+\@ifpackageloaded{unicode-math}{\AtBeginDocument{%
+  \Umathcode`\/="4 \symoperators "002F
+  \Umathcode"2044="4 \symoperators "2044
+  \Umathcode"2215="4 \symoperators "2215
+  \Umathcode"2F98="4 \symoperators "2F98
+  \Umathcode`\\="4 \symoperators "005C
+  \Umathcode"2216="4 \symoperators "2216
+  \Umathcode"29F5="4 \symoperators "29F5
+  \Umathcode"29F9="4 \symoperators "29F9
+}}{
   \mathcode`\/="413D
   \mathcode`\\="426E % \backslash
   \def\backslash{\delimiter"426E30F\relax}
 }
-\def\mup at tch{\mathchoice{\mskip-\thinmuskip}{\mskip-\thinmuskip}{}{}}
+\def\mup at tch{\mathchoice{\mskip-\thinmuskip}{\mskip-\thinmuskip}{}{}{}}
 \def\s at beforep@tch{\mathchoice{}{}{\mbox{}}{\mbox{}}}
 \DeclareOption{rm}{\@ifpackageloaded{unicode-math}
   {\def\@@dif{\symrm{d}}}{\def\@@dif{\mathrm{d}}}}
@@ -59,8 +59,8 @@
 \gdef\resetdfont#1{\let\@@dif\relax%
   \def\@@dif{#1{d}}}
 \def\@dif{\mathinner{\@@dif}\mup at tch}
-\let\d at accent\d
-\DeclareRobustCommand\d{\ifmmode\@dif\else\expandafter\d at accent\fi}
+\AtBeginDocument{\let\d at accent\d
+  \DeclareRobustCommand\d{\ifmmode\@dif\else\expandafter\d at accent\fi}}
 \def\@letdif#1#2{\AtBeginDocument{%
   \ifcsname #2nondif\endcsname\else%
   \expandafter\let\csname #2nondif\expandafter\endcsname
@@ -73,7 +73,7 @@
   \expandafter\let\csname #2nondif\expandafter\endcsname
     \csname #2\endcsname%
   \fi%
-  \gdef#1{\mathinner{\s at beforep@tch\csname #2nondif\endcsname\mbox{}}\mup at tch}%
+  \gdef#1{\mathinner{\s at beforep@tch\csname #2nondif\endcsname\hbox{}}\mup at tch}%
 }}
 \def\letdif{\@ifstar\s at letdif\@letdif}
 \long\def\@newdif#1#2{\AtBeginDocument{%



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