Question

In a frame I have two columns. In the first column I display some information using an itemize. When I display a new item I want to change in the second column the image which is displayed. I tried with onslide but it doesn't help me. Here is the code:

\begin{columns}
    \begin{column}[l]{10cm}
        \begin{itemize}[<+->]
            \item
                first item
            \item
                second item
        \end{itemize}
    \end{column}
    \begin{column}[r]{2cm}
        \onslide<1> 
        {
            \begin{figure}
                \includegraphics[width=2cm,height=3.5cm]{First.eps}
                \caption[1]{First Image}
            \end{figure}                
        }
        \onslide<2> 
        {
            \begin{figure}
                \includegraphics[width=2cm, height=3.5cm]{Second.eps}                   
                \caption[2]{Second Image}
            \end{figure}                
        }
    \end{column}
\end{columns}

Could you help me with this problem?

Was it helpful?

Solution

Try using \only instead of \onslide.

Otherwise you might want to try something like:

\begin{column}[r]{2cm}
    \begin{figure}
        \includegraphics<1>[width=2cm,height=3.5cm]{First.eps}
        \includegraphics<2>[width=2cm,height=3.5cm]{Second.eps}
        \caption<1>{First Image}
        \caption<2>{Second Image}
    \end{figure}                            
\end{column}

I hope this helps.

OTHER TIPS

Just as a small addition.

Instead of

\caption<1>{First Image}
\caption<2>{Second Image}

use

\caption{\only<1>{First Image}\only<2>{Second Image}}

This worked fine for me.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top