尽管启用了外壳转义,但Tikz的外部化不起作用

时间:2019-04-24 20:10:21

标签: latex pdflatex tikz miktex

我在论文上使用了带有Miktex的TexStudio,并且需要外部化所有创建的tikz图形。我处理了很多帖子,但无法弄清楚为什么我不能外部化我的代码。我使用pdflatex.exe -synctex=1 -interaction=nonstopmode --shell-escape %.tex进行编译,但也尝试使用write18。

这是图形日志之一的输出:

The command '\includegraphics []{\AM@currentdocname }' has been     optimized away.
Use '/tikz/external/optimize=false' to disable this.
! Undefined control sequence.
\AM@getpagecount ...ource {\AM@currentdocname@fix 
                                              }\edef \AM@pagecount     {\the...
l.181 \vorspann

Here is how much of TeX's memory you used:
 46796 strings out of 492970
 976398 string characters out of 3126594
 1219813 words of memory out of 3000000
 49867 multiletter control sequences out of 15000+200000
 567782 words of font info for 61 fonts, out of 3000000 for 9000
 1141 hyphenation exceptions out of 8191
 72i,9n,84p,9134b,280s stack positions out of     5000i,500n,10000p,200000b,50000s

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

和主要的tex文件:

===== 'mode=convert with system call': Invoking 'pdflatex -shell-escape    -halt-on-error -interaction=batchmode -jobname "figures/Masterarbeit-figure87"    "\def\t    ikzexternalrealjob{Masterarbeit}\input{Masterarbeit}"' ========
\openout3 = `Masterarbeit.auxlock'.

runsystem(pdflatex -shell-escape -halt-on-error -interaction=batchmode    -jobname
"figures/Masterarbeit-figure87" "\def\tikzexternalrealjob{Masterarbeit}   \input{
Masterarbeit}")...executed.

\openout3 = `Masterarbeit.auxlock'.


! Package tikz Error: Sorry, the system call 'pdflatex -shell-escape    -halt-on-e
rror -interaction=batchmode -jobname "figures/Masterarbeit-figure87"    "\def\tikz
externalrealjob{Masterarbeit}\input{Masterarbeit}"' did NOT result in a    usable 
output file 'figures/Masterarbeit-figure87' (expected one of    .pdf:.jpg:.jpeg:.p
ng:). Please verify that you have enabled system calls. For pdflatex,    this is '
pdflatex -shell-escape'. Sometimes it is also named 'write 18' or    something lik
e that. Or maybe the command simply failed? Error messages can be found    in 'fig
ures/Masterarbeit-figure87.log'. If you continue now, I'll try to    typeset the p
icture.

See the tikz package documentation for explanation.

我还可以补充一点,就是我可以在Windows文件系统中看到pdf文件一秒钟,然后再消失

0 个答案:

没有答案