texlive[50320] Master/texmf-dist: diffcoeff (10mar19)

commits+karl at tug.org commits+karl at tug.org
Sun Mar 10 22:02:00 CET 2019


Revision: 50320
          http://tug.org/svn/texlive?view=revision&revision=50320
Author:   karl
Date:     2019-03-10 22:02:00 +0100 (Sun, 10 Mar 2019)
Log Message:
-----------
diffcoeff (10mar19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/diffcoeff/diffcoeff.pdf
    trunk/Master/texmf-dist/doc/latex/diffcoeff/diffcoeff.tex
    trunk/Master/texmf-dist/tex/latex/diffcoeff/diffcoeff.sty

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

Modified: trunk/Master/texmf-dist/doc/latex/diffcoeff/diffcoeff.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/diffcoeff/diffcoeff.tex	2019-03-10 21:01:45 UTC (rev 50319)
+++ trunk/Master/texmf-dist/doc/latex/diffcoeff/diffcoeff.tex	2019-03-10 21:02:00 UTC (rev 50320)
@@ -1,4 +1,4 @@
-%% LyX 2.3.2-1 created this file.  For more info, see http://www.lyx.org/.
+%% LyX 2.3.2-2 created this file.  For more info, see http://www.lyx.org/.
 %% Do not edit unless you really know what you are doing.
 \documentclass[english]{article}
 \usepackage{lmodern}
@@ -52,7 +52,7 @@
  a \LaTeX{} package to ease\texttt{ }the~\\
  writing of differential coefficients \\
  in all their variety\\
- Version 3}
+ Version 3.1}
 \author{Andrew Parsloe\\
 {\small{}(ajparsloe at gmail.com)}}
 \maketitle
@@ -139,6 +139,9 @@
 contexts in a manner consistent with the form used in derivatives. After
 all, if one is using upright `d's in derivatives, similarly upright `d's
 should occur in these other contexts.\footnote{This rather obvious lack in version 2 was pointed out to me by Sergio Callegari.}
+\item Version 3.1 enables the differential command to be used before forms like
+\texttt{\textbackslash vec\{x\}} (an overlooked possibility causing an
+error in version 3).
 \item Version 3 also provides some simple spacing commands that can be useful
 for tweaking standard spacing.
 \end{enumerate}
@@ -596,7 +599,7 @@
 of a derivative, however, that degree of extra spacing seems too great
 (to my eye), interfering with seeing the derivative `as a whole', 
 \[
-\diff.pwide.{F}{x,y,z},
+\diff.pwide.F{x,y,z},
 \]
 especially for the slash-form of derivative: $\diff.pwide.F/{x,y,z}$.
 Some spacing is desirable, but less; by default \texttt{diffcoeff} inserts
@@ -1541,7 +1544,14 @@
 \textbackslash dl x $\Longrightarrow\dl x.$
 \end{example}
 
+\noindent It is also possible\footnote{\noindent From version 3.1 of \texttt{diffcoeff}; version 3.0 of the package
+produced a \LaTeX{} error.} to use the command before \texttt{\textbackslash vec\{x\}} or \texttt{\textbackslash mathbf\{x\}}:
+\begin{example}
+\textbackslash dl \textbackslash vec\{x\} $\Longrightarrow\dl\vec{{x}},$
+~~~~\textbackslash dl \textbackslash mathbf\{x\} $\Longrightarrow\dl\mathbf{x}.$
+\end{example}
 
+
 \subsection{Options}
 
 There are two options available with the differential command.

Modified: trunk/Master/texmf-dist/tex/latex/diffcoeff/diffcoeff.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/diffcoeff/diffcoeff.sty	2019-03-10 21:01:45 UTC (rev 50319)
+++ trunk/Master/texmf-dist/tex/latex/diffcoeff/diffcoeff.sty	2019-03-10 21:02:00 UTC (rev 50320)
@@ -9,7 +9,7 @@
 %
 \RequirePackage{expl3}
 \RequirePackage{xparse,l3keys2e,xtemplate}
-\ProvidesExplPackage {diffcoeff} {2019/01/01} {3} 
+\ProvidesExplPackage {diffcoeff} {2019/03/10} {3.1} 
   {Write differential coefficients consistently and easily.}
 %
 \keys_define:nn { diffcoeff }
@@ -258,7 +258,8 @@
   }
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % differential
-% #1 = space before d (0--9); mu is assumed
+% #1 variant; #2 = space in mu before d (0--9)
+% note \group_end placement for \vec{x} etc
 \NewDocumentCommand \dl { d.. m }
   {
     \group_begin:
@@ -271,9 +272,8 @@
         \l__diffcoeff_orders_seq \l__diffcoeff_tot_order_tl
         \c_empty_tl \c_empty_seq \c_empty_tl
     \tl_if_in:NnTF \c__diffcoeff_digits_tl { #2 }
-      { \mkern #2 mu \l__diffcoeff_op_tl } 
-      { \l__diffcoeff_op_tl #2 }
-    \group_end:
+      { \mkern #2 mu \l__diffcoeff_op_tl \group_end: }
+      { \l__diffcoeff_op_tl \group_end: #2 }
   }
 \NewDocumentCommand \negmu {} { \mkern -1 mu }
 \NewDocumentCommand \nilmu {} { \mkern 0 mu }
@@ -295,7 +295,6 @@
     \int_set:Nn \l__diffcoeff_vars_int 
         { \seq_count:N \l__diffcoeff_vars_seq }
     \int_set:Nn \l_tmpb_int { \seq_count:N \l__diffcoeff_orders_seq }
-    
     \int_compare:nNnTF { \l__diffcoeff_vars_int } = { 1 }
       { \bool_set_true:N \l__diffcoeff_single_var_bool }
       {



More information about the tex-live-commits mailing list