Tengo algunos problemas con la exteriorización de mis imágenes tikz.
Estoy usando el siguiente preámbulo con -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
donde "PRUEBA ELIMINAR" contiene:
\begin{document}
\begin{figure}[h]
\centering
\newlength\figureheight
\newlength\figurewidth
\setlength\figureheight{6cm}
\setlength\figurewidth{8cm}
\input{TikzInput/JensenContour.tikz}
\end{figure}
\end{document}
Cuando ejecuto el código sin externalizar ( \usetikzlibrary{external}
y \tikzexternalize[prefix=TikzOutput2/]
), se compila bien.
Pero cuando incluyo las dos líneas me sale que no se puede crear el archivo, el error que aparece es
! Error del paquete tikz: Lo sentimos, la llamada al sistema '
pdflatex -halt-on-error -interact ion=batchmode -jobname "TikzOutput2/FinalReport-figure0" "\def\tikzexternalreal job{FinalReport}\input{FinalReport}"
' NO resultó en un archivo de salida utilizable 'T ikzOutput2/FinalReport-figure0
' (se esperaba uno de .pdf:.jpg:.jpeg:.png:). Verifique que haya habilitado las llamadas al sistema. Para pdflatex, esto es 'pdflatex -sh ell-escape
'. A veces también se llama "escribir 18" o algo así. ¿O tal vez el comando simplemente falló? Los mensajes de error se pueden encontrar en 'TikzOutput2/Fin alReport-figure0.log
'. Si continúas ahora, intentaré componer la imagen.
Además del hecho de que probablemente estoy usando terriblemente los paquetes incorrectos aquí y allá, ¿alguien puede ver el problema? Parece que tampoco puedo encontrar el problema en el archivo de registro.