summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/fixdif
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/fixdif')
-rw-r--r--macros/latex/contrib/fixdif/README.md2
-rw-r--r--macros/latex/contrib/fixdif/fixdif-zh-cn.pdfbin163948 -> 163584 bytes
-rw-r--r--macros/latex/contrib/fixdif/fixdif-zh-cn.tex31
-rw-r--r--macros/latex/contrib/fixdif/fixdif.dtx20
-rw-r--r--macros/latex/contrib/fixdif/fixdif.ins4
-rw-r--r--macros/latex/contrib/fixdif/fixdif.pdfbin97475 -> 97610 bytes
6 files changed, 21 insertions, 36 deletions
diff --git a/macros/latex/contrib/fixdif/README.md b/macros/latex/contrib/fixdif/README.md
index 5fb480f7c8..c1fc6d7f3e 100644
--- a/macros/latex/contrib/fixdif/README.md
+++ b/macros/latex/contrib/fixdif/README.md
@@ -19,4 +19,4 @@ either version 1.3c of this license or (at your option) any later version.
------
-Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
+Copyright (C) 2022-2023 by Zhang Tingxuan <alphaztx@163.com>.
diff --git a/macros/latex/contrib/fixdif/fixdif-zh-cn.pdf b/macros/latex/contrib/fixdif/fixdif-zh-cn.pdf
index e887bdcf39..576280efef 100644
--- a/macros/latex/contrib/fixdif/fixdif-zh-cn.pdf
+++ b/macros/latex/contrib/fixdif/fixdif-zh-cn.pdf
Binary files differ
diff --git a/macros/latex/contrib/fixdif/fixdif-zh-cn.tex b/macros/latex/contrib/fixdif/fixdif-zh-cn.tex
index 9c2feac52b..4c4793742d 100644
--- a/macros/latex/contrib/fixdif/fixdif-zh-cn.tex
+++ b/macros/latex/contrib/fixdif/fixdif-zh-cn.tex
@@ -1,12 +1,10 @@
\documentclass[letterpaper,11pt]{article}
-\date{2023/01/23\quad Version 1.5%
+\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}%
@@ -15,11 +13,9 @@
\addtocounter{fixdifattention}{1}%
\ifnum \value{fixdifattention}<#1 \repeat\dbend}\fi%
\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@name{\char"66\char"69\char"78\char"64\char"69\char"66}
\def\ps@plain{\let\@mkboth\@gobbletwo
- \def\@oddhead{\hbox{}\llap{\raisebox{-24.44cm}[0pt][0pt]{\sffamily\bfseries%
- \color{titlecolor!5}\fontsize{238pt}{0pt}\selectfont\fd@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@font}\let\@evenhead\@oddhead\let\@evenfoot\@oddfoot}
-\gdef\@title{\bfseries\pkg{\fd@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}
diff --git a/macros/latex/contrib/fixdif/fixdif.dtx b/macros/latex/contrib/fixdif/fixdif.dtx
index 0d6e945658..c6dfc5a236 100644
--- a/macros/latex/contrib/fixdif/fixdif.dtx
+++ b/macros/latex/contrib/fixdif/fixdif.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>
+% Copyright (C) 2022-2023 by Zhang Tingxuan <alphaztx@163.com>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
@@ -48,7 +48,7 @@ either version 1.3c of this license or (at your option) any later version.
------
-Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
+Copyright (C) 2022-2023 by Zhang Tingxuan <alphaztx@163.com>.
%</readme>
%
%<*internal>
@@ -65,7 +65,7 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
\preamble
- Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>
+ Copyright (C) 2022-2023 by Zhang Tingxuan <alphaztx@163.com>
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either
@@ -131,7 +131,7 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
%</internal>
%
%<*driver>
-\ProvidesFile{fixdif.dtx}[2023/01/23 (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 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
\title{The \pkg{fixdif} Package}
\author{Zhang Tingxuan}
-\date{2023/01/23\quad Version 1.5\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 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
% Check the \TeX{} format and provides the package name.
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{fixdif}[2023/01/23 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}
@@ -509,7 +509,7 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
% \DescribeMacro{\mup@tch}
% The following \cs{mup@tch} patches the skip after the differential operator.
% \begin{macrocode}
-\def\mup@tch{\mathchoice{\mskip-\thinmuskip}{\mskip-\thinmuskip}{}{}}
+\def\mup@tch{\mathchoice{\mskip-\thinmuskip}{\mskip-\thinmuskip}{}{}{}}
% \end{macrocode}
% The \cs{s@beforep@tch} patches the commands with star (\cs{letdif*}, etc).
% \begin{macrocode}
@@ -551,12 +551,12 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
% Restore the \cs{d} command in text by \cs{d@accent} with the \cs{let}
% primitive.
% \begin{macrocode}
-\let\d@accent\d
+\AtBeginDocument{\let\d@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@accent\fi}
+ \DeclareRobustCommand\d{\ifmmode\@dif\else\expandafter\d@accent\fi}}
% \end{macrocode}
%
% \subsection{User's interface for defining new differential operators}
@@ -586,7 +586,7 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
\expandafter\let\csname #2nondif\expandafter\endcsname
\csname #2\endcsname%
\fi%
- \gdef#1{\mathinner{\s@beforep@tch\csname #2nondif\endcsname\mbox{}}\mup@tch}%
+ \gdef#1{\mathinner{\s@beforep@tch\csname #2nondif\endcsname\hbox{}}\mup@tch}%
}}
\def\letdif{\@ifstar\s@letdif\@letdif}
% \end{macrocode}
diff --git a/macros/latex/contrib/fixdif/fixdif.ins b/macros/latex/contrib/fixdif/fixdif.ins
index 1bea3ed204..e6e57f27d3 100644
--- a/macros/latex/contrib/fixdif/fixdif.ins
+++ b/macros/latex/contrib/fixdif/fixdif.ins
@@ -6,7 +6,7 @@
%%
%% fixdif.dtx (with options: `install')
%%
-%% Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>
+%% Copyright (C) 2022-2023 by Zhang Tingxuan <alphaztx@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@163.com>
+ Copyright (C) 2022-2023 by Zhang Tingxuan <alphaztx@163.com>
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either
diff --git a/macros/latex/contrib/fixdif/fixdif.pdf b/macros/latex/contrib/fixdif/fixdif.pdf
index 64f8440ed8..c01f1bc78f 100644
--- a/macros/latex/contrib/fixdif/fixdif.pdf
+++ b/macros/latex/contrib/fixdif/fixdif.pdf
Binary files differ