Tikz 外部化

Tikz 外部化

我在外部化 tikz 圖像時遇到一些問題。

我正在使用以下序言,並使用 lualatex 啟用了 -shell-escape:

\documentclass[print]{adelaide-mecheng-thesis}
% for splitting lines on maths
\usepackage{amsmath}
\usepackage{breqn}
\usepackage{mathtools}
% these packages are for inserting graphics, allowing spaces in file paths and specifiying file path
\usepackage{graphicx}  
\usepackage[section]{placeins}
\graphicspath{{James/Analytical/Images/}{James/Safety/Images/}{Ello.5.25/Images/}{TurningVanes.5.26/Images/}{Paul.6.01/ImagesPD/}{Alex.6.01/Images/}{Mick.6.05/Images/}{Ish.5.27/Images/}}
% bibliography setup:
\usepackage[firstinits=true,backend=bibtex,style=authoryear,natbib=true,maxbibnames=99,urldate=long]{biblatex}% use "[style=authoryear]" alternatively.
%\bibliography{James/AnalyticalLiteratureReview/RefListAnalyticalLiteratureReview,Ello.5.25/RefListIntroduction,TurningVanes.5.26/ReferenceListTurningVane,Ish.5.27/ReferenceListIsh,Paul.5.27/RefListPaul}
\bibliography{AllRefList}
\renewbibmacro{in:}{}
\DeclareFieldFormat[article]{volume}{\bibstring{volume}\addnbspace #1}
\DeclareFieldFormat[article]{number}{\bibstring{number}\addnbspace #1}
\DeclareNameAlias{sortname}{last-first}
%for landscape pages
\usepackage{rotating}
% for wider margins
%\usepackage{fullpage}
% for inserting Tikz Figures 
\usepackage{pgfplots}
\usepackage{tikz}
\pgfplotsset{compat=1.8}


\usetikzlibrary{external} 
\tikzexternalize[prefix=TikzOutput2/]


% setting output name same as input name
%\newcommand{\includetikz}[1]{%
%   \tikzsetnextfilename{#1}%
%       \input{./TikzInput/#1.tikz}%
%}  
%for tables
%\captionsetup[table]{singlelinecheck=off}
\usepackage{longtable}
% to include matlab scripts (make sure mcode.sty is in the master tex location)
\usepackage[framed,numbered,autolinebreaks,useliterate]{mcode}
\lstset{breakatwhitespace=false}
% adjusting the margins
\usepackage[margin=1in]{geometry}
% for inserting Pages
\usepackage{docmute}
%\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{2}
% for inserting pdfs
\usepackage{pdfpages}
% for making Tikz Pie charts
\usepackage{pgf-pie}
% for the tick symbol
\usepackage{amsfonts}
\usepackage{pifont}
\newcommand{\tick}{\ding{52}}

% For the Title Page
\thesisdetails{
  honours-prelim, % "honours-final" for the final report
  sppa=true,
}
\begin{document}
\input{TESTING/DELETE}
\end{document

其中“測試刪除”包含:

\begin{document} 

\begin{figure}[h] 
\centering   
\newlength\figureheight 
\newlength\figurewidth 
\setlength\figureheight{6cm} 
\setlength\figurewidth{8cm} 
\input{TikzInput/JensenContour.tikz}
\end{figure}

\end{document}

\usetikzlibrary{external}當我在沒有外部化(和)的情況下運行程式碼時,\tikzexternalize[prefix=TikzOutput2/]它編譯得很好。

但是當我包含這兩行時,我發現無法建立該文件,出現的錯誤是

!套件 tikz 錯誤:抱歉,系統呼叫「pdflatex -halt-on-error -interact ion=batchmode -jobname "TikzOutput2/FinalReport-figure0" "\def\tikzexternalreal job{FinalReport}\input{FinalReport}"」沒有產生可用的輸出檔案「T ikzOutput2/FinalReport-figure0」(預期為 .pdf:.jpg:.jpeg:.png: 之一)。請確認您已啟用系統呼叫。對於 pdflatex,這是“ pdflatex -sh ell-escape”。有時它也被命名為“write 18”或類似的名稱。或者命令可能只是失敗了?錯誤訊息可以在“ TikzOutput2/Fin alReport-figure0.log”中找到。如果你現在繼續,我會嘗試排版圖片。

除了我可能到處使用錯誤的軟體包之外,有人能看到這個問題嗎?我似乎也無法在日誌文件中找到問題。

相關內容