From e9a384bd2054fd0d8a57bb3c0a230ad4fcfda04e Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 19 Jul 2022 20:09:11 +0000 Subject: fixdif (19jul22) git-svn-id: svn://tug.org/texlive/trunk@63938 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/latex/fixdif/fixdif.dtx | 53 +++++++++++++----------- Master/texmf-dist/source/latex/fixdif/fixdif.ins | 4 +- 2 files changed, 30 insertions(+), 27 deletions(-) (limited to 'Master/texmf-dist/source') diff --git a/Master/texmf-dist/source/latex/fixdif/fixdif.dtx b/Master/texmf-dist/source/latex/fixdif/fixdif.dtx index 43337e7f88f..34d709b9ab2 100644 --- a/Master/texmf-dist/source/latex/fixdif/fixdif.dtx +++ b/Master/texmf-dist/source/latex/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 . 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 . % % %<*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 . \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 . % \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 . % 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 . % \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 . % % \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 . % % \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 . % \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 . % 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 . % 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 . % 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} diff --git a/Master/texmf-dist/source/latex/fixdif/fixdif.ins b/Master/texmf-dist/source/latex/fixdif/fixdif.ins index eb8171c866f..f0dd92e3423 100644 --- a/Master/texmf-dist/source/latex/fixdif/fixdif.ins +++ b/Master/texmf-dist/source/latex/fixdif/fixdif.ins @@ -25,7 +25,7 @@ %% This work consists of the files fixdif.dtx, %% and the derived files fixdif.ins, %% fixdif.sty, -%% fixdef.pdf, +%% fixdif.pdf, %% and README.md. %% \input docstrip.tex @@ -52,7 +52,7 @@ This work consists of the files fixdif.dtx, and the derived files fixdif.ins, fixdif.sty, - fixdef.pdf, + fixdif.pdf, and README.md. \endpreamble -- cgit v1.2.3