summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/fixdif/fixdif.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/fixdif/fixdif.dtx')
-rw-r--r--macros/latex/contrib/fixdif/fixdif.dtx53
1 files changed, 28 insertions, 25 deletions
diff --git a/macros/latex/contrib/fixdif/fixdif.dtx b/macros/latex/contrib/fixdif/fixdif.dtx
index 43337e7f88..34d709b9ab 100644
--- a/macros/latex/contrib/fixdif/fixdif.dtx
+++ b/macros/latex/contrib/fixdif/fixdif.dtx
@@ -19,7 +19,7 @@
% This work consists of the files fixdif.dtx,
% and the derived files fixdif.ins,
% fixdif.sty,
-% fixdef.pdf,
+% fixdif.pdf,
% and README.md.
%
%<*internal>
@@ -35,13 +35,16 @@ The basic commands are:
- `\d`: for differential operator "d" in math mode and under-dot accent in text;
- `\partial`: a "fixed" partial differential operator command;
-- `\letdif`: an interface for defining new commands for differential operators.
+- `\letdif`: an interface for defining new commands for differential operators;
+- `\mathdif`: a commmand in math mode, you can use it just like `\mathop`, etc.
See `fixdif.pdf` for more. Happy TeXing!
## License
-This work may be distributed and/or modified under the conditions of the [LaTeX Project Public License](http://www.latex-project.org/lppl.txt), either version 1.3c of this license or (at your option) any later version.
+This work may be distributed and/or modified under the conditions of
+the [LaTeX Project Public License](http://www.latex-project.org/lppl.txt),
+either version 1.3c of this license or (at your option) any later version.
------
@@ -81,7 +84,7 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
This work consists of the files fixdif.dtx,
and the derived files fixdif.ins,
fixdif.sty,
- fixdef.pdf,
+ fixdif.pdf,
and README.md.
\endpreamble
@@ -126,7 +129,7 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
%</internal>
%
%<*driver>
-\ProvidesFile{fixdif.dtx}[2022/07/14 (c) Copyright 2022 by Zhang Tingxuan]
+\ProvidesFile{fixdif.dtx}[2022/7/19 (c) Copyright 2022 by Zhang Tingxuan]
\documentclass{ltxdoc}
\usepackage{xcolor}
@@ -145,7 +148,7 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
\title{The \pkg{fixdif} Package}
\author{Zhang Tingxuan}
-\date{2022/07/14\quad Version 1.3\thanks{\url{https://github.com/AlphaZTX/fixdif}}}
+\date{2022/7/19\quad Version 1.3a\thanks{\url{https://github.com/AlphaZTX/fixdif}}}
\usepackage{hyperref}
\hypersetup{
@@ -227,7 +230,7 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
% \renewcommand\d{\mathop{\mathrm{d}}\!}
% \end{Verbatim}
% This macro works well in ``display math'' and ``text math'', but we still
-% face three problems:
+% face the following three problems:
% \begin{enumerate}
% \item The skip before ``d'' would still be reserved in ``text fraction'',
% which is regarded bad. For example, |$\d y/\d x$| produces
@@ -264,12 +267,12 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
% If you are using \pkg{unicode-math} package with \XeTeX/\LuaTeX{}
% in your document, you must pay attention to the following items:
% \begin{itemize}
-% \item If you want to \pkg{amsmath} package, make sure that the
+% \item If you want to use \pkg{amsmath} package, make sure that the
% \pkg{unicode-math} package is loaded \emph{after} \pkg{amsmath}.
%
% \item You had better specify the math font through the \cs{setmathfont}
-% provided by \pkg{unicode-math} in order to avoid bad skip in text fraction
-% like $\d y/\d x$.
+% command provided by \pkg{unicode-math} in order to avoid bad skip in
+% text fraction like $\d y/\d x$.
%
% \item Load the \pkg{fixdif} package \emph{after} \pkg{unicode-math}.
% \end{itemize}
@@ -289,8 +292,8 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
% \subsection{Basic commands and package options}
% \DescribeMacro{\d}
% The \pkg{fixdif} package provides a \cs{d} command for the differential
-% operator ``d'' in math mode. When in the text, \cs{d} behaves
-% just like the old \cs{d} command in \LaTeX{} or plain \TeX{} as an
+% operator ``d'' in math mode. When in text, \cs{d} behaves just like
+% the old \cs{d} command in \LaTeX{} or plain \TeX{} as an
% accent command. For example,
% \begin{Verbatim}
% $\d x$ and \d x
@@ -299,7 +302,7 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
%
% \paragraph{Set the font of \cs{d}}
% There are two basic package options to control the \cs{d}'s style in math
-% mode~--- \opt{rm} and \opt{normal}. The default option is \opt{rm}, in whose
+% mode~--- \opt{rm} and \opt{normal}. The default option is \opt{rm}, in which
% case |$f(x)\d x$| produces $f(x)\d x$. If you chose the \opt{normal} option,
% for example
% \begin{Verbatim}
@@ -309,7 +312,7 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
%
% \DescribeMacro{\resetdfont}
% Besides the previous two optional fonts, you can reset the font of
-% differential operator ``d'' through \cs{resetdfont} command:
+% differential operator ``d'' through \cs{resetdfont} command in preamble:
% \begin{Verbatim}
% \resetdfont{\mathsf}
% \end{Verbatim}
@@ -333,12 +336,12 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
% \hfill(preamble only)
%
% The \cs{letdif} command has two arguments~--- the first is the newly-defined
-% command and the second is the \emph{name} of a \emph{single} character
-% command (without the backslash on the front). For example,
+% command and the second is the control sequence \emph{name} of a math character,
+% that is, a command without its backslash. For example,
% \begin{Verbatim}
% \letdif{\vr}{delta}
% \end{Verbatim}
-% then the |\vr| will produce a $\delta$ (|\delta|) with automatic skip
+% then |\vr| will produce a $\delta$ (|\delta|) with automatic skip
% before it.
%
% Through the \cs{letdif} command, we can redefine a math character command
@@ -393,8 +396,8 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
% If your second argument contains only one command like |\Delta|,
% it's recommended to use \cs{letdif} or \cs{letdif*} instead.
%
-% These two commands will check whether \meta{cmd} has been defined already.
-% If so, an error message will be given.
+% \cs{newdif} and \cs{newdif*} will check whether \meta{cmd} has been defined
+% already. If so, an error message will be given.
%
% \noindent\textcolor{titlecolor}{\cs{renewdif}\marg{cmd}\marg{multi-cmd}}\DescribeMacro{\renewdif}
% \hfill(without correction, preamble only)\\
@@ -449,11 +452,11 @@ Copyright (C) 2022 by Zhang Tingxuan <alphaztx@163.com>.
% produces $\Delta$.
%
% \paragraph{Dealing with ``$+$'' and ``$-$''}
-% If you input \verb|$-\d x$|, you'll get ``$-\d x$'' in your document,
-% but compared to ``$-\d x$'', ``$-{\d x}$'' is better. To get ``$-{\d x}$'',
-% you can input \verb|-{\d x}|. The ``\verb|\d x|'' in a \emph{group} will be
-% regarded \textsl{ordinary} but not \textsl{inner}
-% so that the small skip will disappear.
+% If you input \verb|$-\d x$|, you'll get ``$-\d x$'' in your document.
+% However, if you think ``$-{\d x}$'' is better, you can input
+% \verb|-{\d x}|. The ``\verb|\d x|'' in a \emph{group} will be
+% regarded \textsl{ordinary} but not \textsl{inner} so that the
+% small skip will disappear. Maybe ``$-\d x$'' is just okay.
%
% \section{The source code}
% \begin{macrocode}
@@ -462,7 +465,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}[2022/07/14 Interface for defining the differential operators.]
+\ProvidesPackage{fixdif}[2022/7/19 Interface for defining differential operators.]
% \end{macrocode}
%
% \subsection{Control the skip between slashes and differential operator}