I'm trying to speed-up compilation of my multi-tikz .tex file.
I found this topic and successfully applied the solution ; unfortunately, it doesn't work for animations inside the tikzfigure: Only the first view of the animation is rendered on the final pdf.
Question: Is there a way to make tikz external work with beamer's animations?
The tikzset I use for my animations is the following (found also on texSE):
\tikzset{
invisible/.style={opacity=0},
visible on/.style={alt={#1{}{invisible}}},
alt/.code args={<#1>#2#3}{%
\alt<#1>{\pgfkeysalso{#2}}{\pgfkeysalso{#3}} % \pgfkeysalso doesn't change the path
},
}
Here is a full document that illustrate the issue:
\documentclass{beamer}
\usepackage{pgfplots} % handle plots
\pgfplotsset{compat=1.13}
\usepgfplotslibrary{external}
\tikzexternalize[mode=list and make, prefix=tikz/]
\tikzset{external/system call={pdflatex \tikzexternalcheckshellescape
-halt-on-error -interaction=batchmode -jobname "\image" "\texsource"}
} % to let pdflatex work
\tikzset{
invisible/.style={opacity=0},
visible on/.style={alt={#1{}{invisible}}},
alt/.code args={<#1>#2#3}{%
\alt<#1>{\pgfkeysalso{#2}}{\pgfkeysalso{#3}} % \pgfkeysalso doesn't change the path
},
}
\begin{document}
\begin{frame}
\begin{tikzpicture}
\node[draw] at (0,0) {auie};
\pause
\node[draw] at (1,0) {tsrn};
\node[draw,visible on=<3->] at (1,1) {vdlj};
\end{tikzpicture}
\end{frame}
\end{document}


\dcoumentclassand ends with\end{document}. BT, perhaps something like this answer helps or is at least a good starting point. – Oct 05 '18 at 16:42visible onetc. is part of the very useful libraryoverlay-beamer-styles, whose only disadvantage is that nobody can recall its name. ;-) – Oct 05 '18 at 16:59