Estou tendo alguns problemas ao externalizar minhas imagens tikz.
Estou usando o seguinte preâmbulo com -shell-escape habilitado usando lualatex:
\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
onde "TESTING DELETE" contém:
\begin{document}
\begin{figure}[h]
\centering
\newlength\figureheight
\newlength\figurewidth
\setlength\figureheight{6cm}
\setlength\figurewidth{8cm}
\input{TikzInput/JensenContour.tikz}
\end{figure}
\end{document}
Quando executo o código sem externalizar ( \usetikzlibrary{external}
e \tikzexternalize[prefix=TikzOutput2/]
), ele compila bem.
Mas quando incluo as duas linhas, entendo que o arquivo não pode ser criado, o erro que aparece é
! Erro do pacote tikz: Desculpe, a chamada do sistema '
pdflatex -halt-on-error -interact ion=batchmode -jobname "TikzOutput2/FinalReport-figure0" "\def\tikzexternalreal job{FinalReport}\input{FinalReport}"
' NÃO resultou em um arquivo de saída utilizável 'T ikzOutput2/FinalReport-figure0
' (esperado um de .pdf:.jpg:.jpeg:.png :). Verifique se você ativou as chamadas do sistema. Para pdflatex, isso é 'pdflatex -sh ell-escape
'. Às vezes também é chamado de ‘write 18’ ou algo parecido. Ou talvez o comando simplesmente tenha falhado? As mensagens de erro podem ser encontradas em 'TikzOutput2/Fin alReport-figure0.log
'. Se você continuar agora, tentarei compor a imagem.
Além do fato de que provavelmente estou usando horrivelmente os pacotes errados aqui e ali, alguém consegue ver o problema? Também não consigo encontrar o problema no arquivo de log.