我在外部化我的 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/]
它可以很好地编译。
但是当我包含这两行时,我发现无法创建文件,出现的错误是
!软件包 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
。如果您现在继续,我将尝试排版图片。
除了我可能到处使用错误的软件包之外,有人能发现这个问题吗?我似乎也无法在日志文件中找到这个问题。