最新版本的 expl3 物理包中有很多警告

最新版本的 expl3 物理包中有很多警告

一切都很顺利,直到我使用 Texlive Utility 更新一些软件包。然后我收到很多警告。这是 MWE

\documentclass{amsart}

\usepackage{physics}

\begin{document}
MWE
\end{document}

这是控制台窗口中的结果

This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./MWE.tex
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-02-25>
(/usr/local/texlive/2019/texmf-dist/tex/latex/amscls/amsart.cls
Document Class: amsart 2017/10/31 v2.20.4
(/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2019/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/local/texlive/2019/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/local/texlive/2019/texmf-dist/tex/latex/physics/physics.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/l3backend/l3backend-pdfmode.def))
)

LaTeX3 Warning: Argument delimiter '\big ' for the command '\@quantity' should
(LaTeX3)        be a single character.


LaTeX3 Warning: Argument delimiter '\Big ' for the command '\@quantity' should
(LaTeX3)        be a single character.


LaTeX3 Warning: Argument delimiter '\bigg ' for the command '\@quantity'
(LaTeX3)        should be a single character.


LaTeX3 Warning: Argument delimiter '\Bigg ' for the command '\@quantity'
(LaTeX3)        should be a single character.


LaTeX3 Warning: Argument delimiter '\big ' for the command '\@braces' should
(LaTeX3)        be a single character.


LaTeX3 Warning: Argument delimiter '\Big ' for the command '\@braces' should
(LaTeX3)        be a single character.


LaTeX3 Warning: Argument delimiter '\bigg ' for the command '\@braces' should
(LaTeX3)        be a single character.


LaTeX3 Warning: Argument delimiter '\Bigg ' for the command '\@braces' should
(LaTeX3)        be a single character.


LaTeX3 Warning: Argument delimiter '\big ' for the command '\fbraces' should
(LaTeX3)        be a single character.


LaTeX3 Warning: Argument delimiter '\Big ' for the command '\fbraces' should
(LaTeX3)        be a single character.


LaTeX3 Warning: Argument delimiter '\bigg ' for the command '\fbraces' should
(LaTeX3)        be a single character.


LaTeX3 Warning: Argument delimiter '\Bigg ' for the command '\fbraces' should
(LaTeX3)        be a single character.


LaTeX3 Warning: Argument delimiter '\ket ' for the command '\bra' should be a
(LaTeX3)        single character.

) (./MWE.aux) (/usr/local/texlive/2019/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/local/texlive/2019/texmf-dist/tex/latex/amsfonts/umsb.fd) [1{/usr/local/t
exlive/2019/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./MWE.aux) )</usr/l
ocal/texlive/2019/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/loc
al/texlive/2019/texmf-dist/fonts/type1/public/amsfonts/cm/cmr7.pfb>
Output written on MWE.pdf (1 page, 15935 bytes).
SyncTeX written on MWE.synctex.gz.
Transcript written on MWE.log

有人有解决方案可以让这些警告消失吗?

答案1

控制序列标记(如\big)的使用不受支持xparse(请参阅latex3/latex3#367latex3/latex3#368),只允许使用字符标记,当使用非字符标记时,应该会出现明确的警告(您看到的警告)。

然而由于一个小错误,这个警告被静音,并且错误输出如下这个问题会产生。到 TL'19 的最后几天,此警告重新激活,然后随着 TL'19,您会看到这些警告(也与该更改相关,此警告:latex3/babel#52)。除了警告之外,行为没有改变,因此输出与之前相同。

对于 TL'20,xparse已扩展为支持(大多数)控制序列标记作为参数分隔符,以便删除警告并且代码可以正常工作。

相关内容