![更新後找不到模組“pdftexcmds”](https://rvso.com/image/405354/%E6%9B%B4%E6%96%B0%E5%BE%8C%E6%89%BE%E4%B8%8D%E5%88%B0%E6%A8%A1%E7%B5%84%E2%80%9Cpdftexcmds%E2%80%9D.png)
昨天我更新了我的發行版 ( 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
的新版本捆綁包。oberdiek
pdftexcmds
如果你是一個TeX 直播用戶,只需運行
tlmgr install pdftexcmds
這將安裝新的pdftexcmds
獨立包。
如果你是一個米克特克斯用戶需要pdftexcmds
透過 MikTeX 控制台安裝。為了避免 MikTeX 的即時安裝功能出現問題,您應該確保之後在使用者和管理模式下運行和更新,然後在管理模式和管理模式下再次更新套件資料庫(MikTeX 控制台 > 任務 > 更新套件資料庫)使用者模式。
這些軟體包拆分僅影響未使用完整 TeX 安裝但僅安裝選定軟體包的用戶。對於 TeX live,通常建議對許多人使用的所有軟體包進行完整安裝,並且他們不會注意到任何更改,因為新軟體包將自動安裝。
正如烏爾里克在評論中提到的,未來幾週將有更多的包裹被拆分。確實就在今晚kvoptions
被拆分出來了,現在是一個獨立的包(例如參見這裡),所以你可能需要安裝kvoptions
今晚之後也是如此。
請注意,對 oberdiek 軟體包的任何更新都會在 ctan-ann 郵件列表中公佈,並從 ctan oberdiek 頁面連結到訊息。最後的公告存檔在這裡
https://ctan.org/ctan-ann/id/[電子郵件受保護]
並以可能需要安裝的軟體包清單結尾:
如果您安裝了先前安裝了 oberdiek 的最小 tex 安裝,那麼要安裝等效的軟體包集,您現在可能需要安裝
Attachfile2 epstopdf-pkg grffile hobsub iftex inputenx kvoptions luacolor magicnum makerobust oberdiek pdfcolmk pdftexcmds stringenc 透明 zref
如果拆分更多軟體包,則此清單將在每次發佈時更新。