未定义控制序列 \IfFormatAtLeastTF

未定义控制序列 \IfFormatAtLeastTF

我正在\RequirePackage{expkv/expkv-opt,expkv/expkv-def}我的文件中使用它sty。但是当我运行我的tex文件时,我收到以下错误。

This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
LaTeX2e <2017-04-15>
Babel <3.18> and hyphenation patterns for 84 language(s) loaded.

Document Class: book 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/bk10.clo))
(/home/Opstk/vulcan-kmpj/gungadin.sty
(/home/Opstk/vulcan-kmpj/expkv/expkv-opt
.sty
/home/Opstk/vulcan-kmpj/expkv/expkv-opt.
sty:34: Undefined control sequence.
l.34 \IfFormatAtLeastTF
                       {2021/05/01}
? 
/home/Opstk/vulcan-kmpj/expkv/expkv-opt.
sty:34: Emergency stop.
l.34 \IfFormatAtLeastTF
                       {2021/05/01}
/home/Opstk/vulcan-kmpj/expkv/expkv-opt.
sty:34:  ==> Fatal error occurred, no output PDF file produced!
Transcript written on fredholm.log.
/usr/local/bin/texi2dvi: pdflatex exited with bad status, quitting.

Compilation exited abnormally with code 1 at Tue Apr 26 13:13:19

答案1

您需要更新您的 TeX 安装。

内置\IfFormatAtLeastTF功能是为2020 年 10 月版本。如果控制序列未定义,则表示您正在较旧的内核上运行。

您尝试加载的软件包至少需要 2021 年 5 月版 TeX 才能运行。您的安装太旧了。

相关内容