diff options
author | Norbert Preining <norbert@preining.info> | 2023-01-24 03:02:57 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-01-24 03:02:57 +0000 |
commit | b06c6695162b493aeec3b594c6beb518c15c98ba (patch) | |
tree | 0c1dc3cfc73ea789d6bdc4673d776f3ef652d6d8 /macros/latex/contrib/fixdif | |
parent | 4451a2090261307c963209bc65fea9fde4eceeea (diff) |
CTAN sync 202301240302
Diffstat (limited to 'macros/latex/contrib/fixdif')
-rw-r--r-- | macros/latex/contrib/fixdif/fixdif-zh-cn.pdf | bin | 163034 -> 163948 bytes | |||
-rw-r--r-- | macros/latex/contrib/fixdif/fixdif-zh-cn.tex | 9 | ||||
-rw-r--r-- | macros/latex/contrib/fixdif/fixdif.dtx | 26 | ||||
-rw-r--r-- | macros/latex/contrib/fixdif/fixdif.pdf | bin | 97443 -> 97475 bytes |
4 files changed, 18 insertions, 17 deletions
diff --git a/macros/latex/contrib/fixdif/fixdif-zh-cn.pdf b/macros/latex/contrib/fixdif/fixdif-zh-cn.pdf Binary files differindex 09902e25b1..e887bdcf39 100644 --- a/macros/latex/contrib/fixdif/fixdif-zh-cn.pdf +++ b/macros/latex/contrib/fixdif/fixdif-zh-cn.pdf diff --git a/macros/latex/contrib/fixdif/fixdif-zh-cn.tex b/macros/latex/contrib/fixdif/fixdif-zh-cn.tex index 075b57610e..9c2feac52b 100644 --- a/macros/latex/contrib/fixdif/fixdif-zh-cn.tex +++ b/macros/latex/contrib/fixdif/fixdif-zh-cn.tex @@ -1,5 +1,5 @@ \documentclass[letterpaper,11pt]{article} -\date{2022/10/27\quad Version 1.4b% +\date{2023/01/23\quad Version 1.5% \thanks{源代码见~\hyperref{https://github.com/AlphaZTX/fixdif}{}{}{GitHub} 或~\hyperref{https://www.ctan.org/pkg/fixdif}{}{}{CTAN}。} } @@ -11,10 +11,10 @@ \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} @@ -382,7 +382,8 @@ $\d x$ 和 \d x \begin{Verbatim} \letdif{\laplacian}{Delta} \end{Verbatim} -如果你比较擅长使用 \pkg{xparse} 宏包的接口,你也可以采用下面的方法: +如果你比较擅长使用 \pkg{xparse} 宏包(2020 年 10 月后已被集成进 \LaTeXe{} 内核) +的接口,你也可以采用下面的方法: \begin{Verbatim} \letdif{\nabla}{nabla} \DeclareDocumentCommand{ \laplacian }{ s }{ diff --git a/macros/latex/contrib/fixdif/fixdif.dtx b/macros/latex/contrib/fixdif/fixdif.dtx index 7b525cc67f..0d6e945658 100644 --- a/macros/latex/contrib/fixdif/fixdif.dtx +++ b/macros/latex/contrib/fixdif/fixdif.dtx @@ -131,7 +131,7 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>. %</internal> % %<*driver> -\ProvidesFile{fixdif.dtx}[2022/10/27 (c) Copyright 2022 by Zhang Tingxuan] +\ProvidesFile{fixdif.dtx}[2023/01/23 (c) Copyright 2022 by Zhang Tingxuan] \documentclass{ltxdoc} \usepackage{xcolor} @@ -150,7 +150,7 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>. \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/23\quad Version 1.5\thanks{\url{https://github.com/AlphaZTX/fixdif}}} \usepackage{hyperref} \hypersetup{ @@ -473,27 +473,27 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>. % 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/23 Interface for defining differential operators.] % \end{macrocode} % % \subsection{Control the skip between slashes and differential operator} % 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 diff --git a/macros/latex/contrib/fixdif/fixdif.pdf b/macros/latex/contrib/fixdif/fixdif.pdf Binary files differindex 55f49058db..64f8440ed8 100644 --- a/macros/latex/contrib/fixdif/fixdif.pdf +++ b/macros/latex/contrib/fixdif/fixdif.pdf |