4

When compiling this document, tikzexternalize makes two copies of the small tikz figure.

Is it possible to only make one copy to speed up compilation?

\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{external}
\tikzexternalize

\begin{document}
\begin{frame}
\begin{tikzpicture}
\node[draw] () {};
\end{tikzpicture}
\pause
\end{frame}
\end{document}
  • How about using a box to save the picture and then just using it inside the frame environment? – cfr Feb 2 '15 at 18:34
  • I don't quite follow you, could you elaborate a bit? – Jonas Nyrup Feb 2 '15 at 18:59
  • Christian Feuersänger's answer is better ;). – cfr Feb 2 '15 at 23:18
6

Use \tikzsetnextfilename to fix its name. The second compilation will detect that the figure is unchanged and re-use the existing pdf instead:

\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{external}
\tikzexternalize

\begin{document}
\begin{frame}
\tikzsetnextfilename{square}%
\begin{tikzpicture}
\node[draw] () {};
\end{tikzpicture}
\pause
\end{frame}
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.