Diffcoeff 包 - 高阶导数

Diffcoeff 包 - 高阶导数

我想使用差异系数软件包版本 5.1 用于编写导数的排序,如下例所示。虽然示例很简单,但无法编译。问题出在表达式\diff[n+1]yx和上\diffp[n+1]yx

这些表达式是从软件包手册的第 12 页和第 13 页复制而来的。这有什么问题?我担心库本身或 Koma-script 有问题。

如果我scrbookarticledocumentclass 替换它,它就会起作用。

MNWE:

\documentclass[12pt]{scrbook}
\listfiles
\usepackage{diffcoeff}   

\begin{document}
  \[\diff[2]yx\]
  x\[\diff[n+1]yx.\]

  \[ \diffp[2]yx\] 
  \[\diffp[n+1]yx. \]
\end{document}

日志:

(C:\...MiKTeX\tex/generic/ltxcmds\ltxcmds.sty))) (grain0089_c.aux)
! Use of \__seq_put_left_aux:w doesn't match its definition.
\l_tmpa_seq ->d
               iffcoeff.sty
l.13   \[\diffp[n+1]yx.
                        \]
?
! Emergency stop.
\l_tmpa_seq ->d
               iffcoeff.sty
l.13   \[\diffp[n+1]yx.

列表文件:

 scrbook.cls    2022/10/12 v3.38 KOMA-Script document class (book)
scrkbase.sty    2022/10/12 v3.38 KOMA-Script package (KOMA-Script-dependent bas    
ics and keyval usage)
 scrbase.sty    2022/10/12 v3.38 KOMA-Script package (KOMA-Script-independent b    
asics and keyval usage)
scrlfile.sty    2022/10/12 v3.38 KOMA-Script package (file load hooks)
scrlfile-hook.sty    2022/10/12 v3.38 KOMA-Script package (using LaTeX hooks)      
 scrlogo.sty    2022/10/12 v3.38 KOMA-Script package (logo)
  keyval.sty    2022/05/29 v1.15 key=value parser (DPC)
tocbasic.sty    2022/10/12 v3.38 KOMA-Script package (handling toc-files)
scrsize12pt.clo    2022/10/12 v3.38 KOMA-Script font size class option (12pt)      
typearea.sty    2022/10/12 v3.38 KOMA-Script package (type area)
diffcoeff.sty    2023/01/16 v5.1 Write differential coefficients easily and con    
sistently.
xtemplate.sty    2023-01-16 L3 Experimental prototype document functions
   expl3.sty    2023-01-16 L3 programming layer (loader)
l3backend-dvips.def    2023-01-16 L3 backend support: dvips
mleftright.sty    2019/12/03 v1.2 Math left/right delim. as open/close (HO)        
infwarerr.sty    2019/12/03 v1.5 Providing info/warning/error messages (HO)        
 ltxcmds.sty    2020-05-10 v1.25 LaTeX kernel commands for general use (HO)        
 ***********

答案1

我忽略了一个初始化语句。\__diffcoeff_evaluate:NN第 531 行的例程diffcoeff v5.1需要语句

\seq_clear:N \l_tmpa_seq
\seq_clear:N \l_tmpb_seq

打开后立即{。(显然scrbook也使用\l_tmpa_seq。您的示例使用例如类进行编译。)我将很快将此更正(以及更好地处理空微分变量参数)article的 v5.2 上传到 CTAN。diffcoeff

相关内容