With help of this Question I managed to realize a parallel externalization of multiple tikz picture rendering using the tikzexternalize option mode=list and make
. Considering the following example
\documentclass{article}
\usepackage{tikz,pgfplots}
\usetikzlibrary{external}
\tikzexternalize[mode=list and make]
\begin{filecontents}{plot.tikz}
\begin{tikzpicture}
\begin{axis}
\addplot coordinates {(1,1) (2,2) (3,3)};
\end{axis}
\end{tikzpicture}%
\end{filecontents}
\begin{document}
\input{plot.tikz}
\end{document}
the procedure to get a document is the following:
- compile document to create list of tikz pictures
- use make via latexmk to create tikz picture pdf files
- compile again to include tikz pictures and create final pdf document
I tried to automate these three steps with the tool chain in Texstudio. If a PDF file of the tikzpicture is already available the toolchain runs without problems. But if the chain is started for the first time the first compilation ends with the error:
===== mode=`list and make': Use 'make -f texstudio_cB6136.makefile' to generate all images. Then, re-run (pdf)latex texstudio_cB6136. =====
! Package tikz Warning: Some images are not up-to-date and need to be generated
The error is expected but it interrupts the toolchain. So I wonder if there is the possibility to either ignore the error during execution of the toolchain in texstudio or to directly supress the error?
The commands I use are
pdflatex.exe -enable-write18 -synctex=1 -interaction=nonstopmode %.tex
make -j <number of threads> -f %.makefile
pdflatex.exe -enable-write18 -synctex=1 -interaction=nonstopmode %.tex