This code tries to use \multiinclude from xmpmulti
inside a tikz node text to include for example a series of files pic-0.pdf, pic-1.pdf,..., etc. and doesn't compile and throws out error listed below. Is it possible to use \multiinclude in a tikz node? If it is, how to do it? Or if not, is there alternative ways to manage the same effect: showing a stack of slides inside a tikz node?
\documentclass{beamer}
\usepackage{tikz}
\usepackage{xmpmulti}
\begin{document}
\begin{frame}
\begin{tikzpicture}
\node {
\multiinclude[format=pdf,graphics={width=.45\textwidth}]{pic}
};
\end{tikzpicture}
\end{frame}
\end{document}
The error beamer gives is
! Package tikz Error: Giving up on this path. Did you forget a semicolon?.
See the tikz package documentation for explanation.
Type H <return> for immediate help.
...
l.14 \end{frame}
! You can't use `\lastskip' in restricted horizontal mode.
\@let@token ...{}\beamer@lastskipcover =\lastskip
\edef \beamer@lastskiptext...
l.14 \end{frame}