今天我决定从 2020 升级到 TexLive 2022。安装新版本后,我在运行这个简单文件时遇到了问题:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{external}
\tikzexternalize[prefix=figures/]
\begin{document}
\begin{figure}
\centering
\begin{tikzpicture}
\draw (0,1) -- (10,4);
\end{tikzpicture}
\caption{cap}\label{some}
\end{figure}
\end{document}
使用pdflatex -shell-escape test2.tex
。控制台显示:
! Package tikz Error: Sorry, the system call 'pdflatex -halt-on-error -interact
ion=batchmode -jobname "figures/test2-figure0" "\def\tikzexternalrealjob{test2}
\input{test2}"' did NOT result in a usable output file 'figures/test2-figure0'
(expected one of .pdf:.jpg:.jpeg:.png:). Please verify that you have enabled sy
stem calls. For pdflatex, this is 'pdflatex -shell-escape'. Sometimes it is als
o named 'write 18' or something like that. Or maybe the command simply failed?
Error messages can be found in 'figures/test2-figure0.log'. If you continue now
, I'll try to typeset the picture.
See the tikz package documentation for explanation.
Type H <return> for immediate help.
...
l.10 \end{tikzpicture}
?
! Emergency stop.
...
l.10 \end{tikzpicture}
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on test2.log.
使用 2020 版本时没有问题。我很感激任何帮助。
BR,皮奥特