我正在嘗試\tikzexternalize
使用 MWE 來實現。我能夠使用相同的配置在 LinuxMint 安裝上成功編譯 MWE。在 Win7 安裝上我無法編譯 MWE。
配置:作業系統:WIn7;整合開發環境:TexStudio2.8.8; TEXengine:texlive_150128wininstaller (抱歉我找不到版本) 編譯器:pdflatex 3.0.0
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{external}
\tikzexternalize
\listfiles
\begin{document}
\begin{tikzpicture}
\draw(0,0)--(1,1);
\end{tikzpicture}
\end{document}
TexStudio 設定\指令\pdflatex :
"P:\texlive\2014...\pdflatex.exe" -src -interaction=nonstopmode --shell-escape %.tex
當\usetikzlibrary{external}
被%
註解掉時,進程正常退出。當\usetikzlibrary{external}
包含 時,會發生錯誤並且不會main-figure0.pdf
產生任何內容。main-figure1.md5
除了.log
、.aux
、.auxloc
和main.pdf
文件之外,還會產生A。
! Package tikz Error: Sorry, the system call 'pdflatex -shell-escape -halt-on-e rror -interaction=batchmode -jobname "main-figure0" "\def\tikzexternalrealjob{m ain}\input{main}"' did NOT result in a usable output file 'main-figure0' (expec ted one of .pdf:.jpg:.jpeg:.png:). Please verify that you have enabled system c alls. For pdflatex, this is 'pdflatex -shell-escape'. Sometimes it is also name d 'write 18' or something like that. Or maybe the command simply failed? Error messages can be found in 'main-figure0.log'. If you continue now, I'll try to t ypeset the picture.
我嘗試過幾種不同的pdflatex
開關,但現在我只是向它扔東西,看看是否有東西會粘住。對於 Win7 系統上的故障排除建議,我們將不勝感激。