当我尝试编译以下内容时
\documentclass{article}
\usepackage{tabularray}
\UseTblrLibrary{functional}
\IgnoreSpacesOn
\prgNewFunction \test {} {
\cellSetText{1}{1}{modfied}
}
\IgnoreSpacesOff
\begin{document}
\begin{tblr}[process=\test]{
width=50mm,
colspec={XX}}
original & original\\
original & original\\
\end{tblr}
\end{document}
使用 pdflatex test.tex 我得到以下结果:
This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian) (preloaded format=latex)
restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-01-21>
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/latex/tabularray/tabularray.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3backend/l3backend-dvips.def))
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty))
(/usr/share/texlive/texmf-dist/tex/latex/varwidth/varwidth.sty)
! Undefined control sequence.
l.7 \IgnoreSpacesOn
?
似乎功能包不是我的 (vanila) TeX live 安装的一部分。这是一个已知问题还是我的安装或代码有问题?
感谢您的帮助,
乔克