使用 TikZ externalize 时出现“致命错误”

使用 TikZ externalize 时出现“致命错误”

所以我在使用 TikzExternalize 时遇到了问题。我有一篇论文,其中包含大量动态构建的图表。我到达了文件中的某个点,无法再构建了。一旦到达这一点,我就无法再构建我之前构建的任何文件,如果我注释掉该图,它就会再次完美运行。如果我插入一个完全不同的图形,它会出现同样的问题。下面是该图的示例代码,我也在 pdfscape 和多列环境中使用这些代码

发生一些像下面的代码一样简单的事情:

\begin{tikzpicture}
  \draw (0,0) --(1,2);
\end{tikzpicture}

错误如下:

! Package tikz Error: Sorry, the system call 'pdflatex -shell-escape -halt-on-e
rror -interaction=batchmode -jobname "tikzfigures/Report-figure53" "\def\tikzex
ternalrealjob{Report}\input{Report}"' did NOT result in a usable output file 't
ikzfigures/Report-figure53' (expected one of .pdf:.jpg:.jpeg:.png:). Please ver
ify that you have enabled system calls. For pdflatex, this is 'pdflatex -shell-
escape'. Sometimes it is also named 'write 18' or something like that. Or maybe
the command simply failed? Error messages can be found in 'tikzfigures/Report-
figure53.log'. If you continue now, I'll try to typeset the picture.

在文件中我得到的只是常见的垃圾和:

!  ==> Fatal error occurred, no output PDF file
produced!

平均能量损失

\documentclass[]             % options: RDPonly, coveronly, nocover
{article}                       %   plus standard article class options
\usepackage[pdftex]{lscape}

\usepackage{multicol}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows, positioning, calc, external}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\tikzexternalize[prefix=tikzfigures/]

\begin{document}
\begin{multicols}{2}
    \begin{tikzpicture}
      \draw (0,0) --(1,2);
    \end{tikzpicture}

        \columnbreak

    \begin{tikzpicture}
      \draw (0,0) --(1,2);
    \end{tikzpicture}

        \columnbreak

    \begin{tikzpicture}
      \draw (0,0) --(1,2);
    \end{tikzpicture}
\end{multicols}

\end{document}

相关内容