升級到 TeXLive 2024 後“xdvipdfmx:致命:無法識別的紙張格式”

升級到 TeXLive 2024 後“xdvipdfmx:致命:無法識別的紙張格式”

誰能告訴我從哪裡開始深入了解這種情況?我升級了 TeXLive,發現它正在進行重大更新 (TeXLive 2024),突然一切停止編譯。日誌檔案目前不斷拋出此行。

xdvipdfmx:fatal: Unrecognized paper format: # Simply write the paper name. See man 1 paper and "paper --no-size --all" for possible values

我不明白為什麼它告訴我去諮詢paperA4據我所知,LaTeX 使用的只是其中列出的論文a4paper。我開始認為錯誤的xdvipdfmx配置是罪魁禍首,但我不知道該怎麼做。我在用著latexmk

MWE 就是這樣的。

\documentclass{article}

\begin{document}
Edit this.
\end{document}

過去,一切都按計劃進行。

===編輯

我使用運行該文檔xelatex,這就是結果。

This is XeTeX, Version 3.141592653-2.6-0.999996 (TeX Live 2024/Arch Linux) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
(./test2.tex
LaTeX2e <2023-11-01> patch level 1
L3 programming layer <2024-02-20>
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2023/05/17 v1.4n Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texmf-dist/tex/latex/l3backend/l3backend-xetex.def)
No file test2.aux.
(/usr/share/texmf-dist/tex/latex/base/ts1cmr.fd) [1] (./test2.aux)
xdvipdfmx:fatal: Unrecognized paper format: # Simply write the paper name. See man 1 paper and "paper --no-size --all" for possible values
 )
Error 256 (driver return code) generating output;
file test2.pdf may not be valid.
Transcript written on test2.log.

===解決方案,但需要研究

問題固定的perl在我消除了一直困擾我的區域設定問題之後。locale在 KDE 的語言環境設定有en_ID.UTF-8但沒有之後, KDE 會嚴重覆蓋你和我的設定locale.gen(這證明無論你的系統多少次locale-gen,它都不起作用)。

相關內容