更新后未找到模块“pdftexcmds”

更新后未找到模块“pdftexcmds”

昨天我更新了我的发行版(tlmgr update --all),现在我无法再将 TikZ 与 lualatex 一起使用。

最小工作示例:

\documentclass{article}
\usepackage{tikz}
\begin{document}
a
\end{document}

编译输出:

> lualatex a
This is LuaTeX, Version 1.10.0 (TeX Live 2019)                                                                                                                                                                       
 restricted system commands enabled.                                                                                                                                                                                 
(./a.tex                                                                                                                                                                                                             
LaTeX2e <2019-10-01> patch level 3                                                                                                                                                                                   

luaotfload | main : initialization completed in 0.098 seconds                                                                                                                                                        
(/opt/texlive/2019/texmf-dist/tex/latex/base/article.cls                                                                                                                                                             
Document Class: article 2019/10/25 v1.4k Standard LaTeX document class                                                                                                                                               
(/opt/texlive/2019/texmf-dist/tex/latex/base/size10.clo))                                                                                                                                                            
(/opt/texlive/2019/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty                                                                                                                                                   
(/opt/texlive/2019/texmf-dist/tex/latex/pgf/basiclayer/pgf.sty                                                                                                                                                       
(/opt/texlive/2019/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty            

...

(/opt/texlive/2019/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex
(/opt/texlive/2019/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothandlers.
code.tex)
(/opt/texlive/2019/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix.code.tex)

(/opt/texlive/2019/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikz
librarytopaths.code.tex)))
No file a.aux.
ABD: EveryShipout initializing macros
(/opt/texlive/2019/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/opt/texlive/2019/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty[\direc
tlua]:1: module 'pdftexcmds' not found:
        no field package.preload['pdftexcmds']
        [kpse lua searcher] file not found: 'pdftexcmds'
        [kpse C searcher] file not found: 'pdftexcmds'
stack traceback:
        [C]: in function 'require'
        [\directlua]:1: in main chunk.
l.165       \directlua{require("pdftexcmds")}

? 

似乎缺少一个 Lua 包。

这是一个错误吗?我是否缺少某个软件包?

答案1

目前正在进行大规模oberdiek包含许多有用且广泛使用的软件包的软件包更易于维护。具体来说,计划是将软件包从主软件包中分离出来,这样就可以单独更新它们,而无需更新整个集合。在此过程中,您将逐渐看到软件包从https://github.com/ho-tex/oberdiek并重新出现在独立存储库中https://github.com/ho-tex


几天前包裹pdftexcmds是从oberdiek,因此它现在可作为 TeX live 和 MikTeX 中的独立包使用。

如果您收到任何有关缺失的错误,您可能获得了不包含任何内容pdftexcmds的新版本的捆绑包。oberdiekpdftexcmds

如果你TeX 直播用户,只需运行

tlmgr install pdftexcmds

这将安装新的pdftexcmds独立包。

如果你MikTeX用户需要pdftexcmds通过 MikTeX 控制台进行安装。为了避免 MikTeX 的即时安装功能出现问题,您应确保随后在用户和管理员模式下运行和更新,然后在管理员模式下和用户模式下分别更新包数据库(MikTeX 控制台 > 任务 > 更新包数据库)。


这些软件包拆分只会影响未使用完整 TeX 安装但仅安装了选定软件包的用户。使用 TeX live 通常建议获取包含所有软件包的完整安装,这是许多人使用的,他们不会注意到任何变化,因为新软件包将自动安装。

正如 Ulrike 在评论中提到的那样,未来几周将有更多软件包被拆分。事实上,就在今晚,一个软件包kvoptions被拆分出来,现在是一个独立的软件包(例如参见此处),因此你可能需要安装kvoptions今晚之后也是如此。


请注意,oberdiek 软件包的任何更新都会在 ctan-ann 邮件列表中公布,消息链接来自 ctan oberdiek 页面。最新公告存档于此处

https://ctan.org/ctan-ann/id/[电子邮件保护]

并以可能需要安装的软件包列表结束:

如果你安装了最小的 tex 安装,并且之前安装了 oberdiek,那么为了安装等效的软件包集,你现在可能需要安装

附加文件2 epstopdf-pkg grffile hobsub iftex inputenx kvoptions luacolor magicnum makerobust oberdiek pdfcolmk pdftexcmds stringenc transparent zref

如果有更多软件包被拆分出来,此列表将在每次发布公告时更新。

相关内容