1

I'm trying to do the following in beamer:

\begin{itemize}
   \item<+-> a
   \item<+-> b
   \item<+-> c
   \item<+-> d
   \only<1-4>{\includegraphics{blah-1}}%
   \only<5->{\multiinclude[<+>]{format=pdf,start=2}{blah}}
\end{itemize}

The idea is that the figure blah-1.pdf should be displayed the entire time the first four bullet points are revealed. After that point, the figures blah-2.pdf, blah-3.pdf, blah-4.pdf, and so on should be displayed.

This works fine at first: transitions 1-4 reveal the list items while displaying the figure blah-1.pdf, but when I get to transition 5, the figure that gets displayed is blah-6.pdf. That is, the multiinclude starts counting from 2 at the first transition even though it's only first used on transition 5.

I know there are some hacks I could use (like hardcoding the includegraphics or creating dummy images blah-2.pdf,...,blah-5.pdf) but I intend to use this pattern a lot, so I wonder if there's a clean way to do it?

3
  • btw why is this not the correct behavior ? you're starting at 2, so transition 1 uses 2, t2 uses 3, t3 uses 4 and t4 uses 5. When you get to t5, your counter will be at 6. In other words, the multiinclude <+> designation is sharing the counter with the item<+> designation.
    – Suresh
    Nov 3, 2014 at 17:24
  • I don't claim that it's wrong. I just want something different. My workaround, for now, is to just add some dummy figures so that things line up. I don't like that my figures now depend so heavily on the number of bullet-points leading up to them, though.
    – Pat Morin
    Nov 3, 2014 at 17:34
  • 1
    I think the tex.SE gods might ask you to provide a minimal working example :). If you can do that, I think some futzing around with the counter beamerpauses might solve your problem.
    – Suresh
    Nov 3, 2014 at 17:46

1 Answer 1

2

The syntax of \multiinclude should be \multiinclude[<+>][format=png,start=2]{...} instead of \multiinclude[<+>]{format=pdf,start=2}{...}. With this syntax the animation starts with the second image:

\documentclass{beamer}

\usepackage{xmpmulti}

\begin{document}

\begin{frame}
\begin{itemize}
   \item<+-> a
   \item<+-> b
   \item<+-> c
   \item<+-> d
   \only<1-4>{\includegraphics{pic-1}}%
   \only<5->{%
    \multiinclude[<+>][format=png,start=2]{pic}
   }
\end{itemize}
\end{frame}

\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .