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

「TESTING DELETE」には次の内容が含まれます。

\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/]正常にコンパイルされます。

しかし、2行を追加すると、ファイルを作成できないというエラーが表示されます。

! パッケージ 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' にあります。このまま続行すると、画像のタイプセットを試みます。

おそらくあちこちで間違ったパッケージをひどく使用しているという事実以外に、誰かこの問題に気づいている人はいますか? ログ ファイルでも問題が見つからないようです。

関連情報