tags:

views:

307

answers:

2

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?

+2  A: 

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, your question might be closed because it is not programming related btw.

bjarkef
Whadya mean "not programming related"? His question is about how to write code in a Turing complete language to achieve a particular output. It's programming all the way.
dmckee
A: 

hi all am new at latex i use miktex basic with texcenter tool

when i write

\begin{figure}[h] \centering \includegraphics{C:/MIK/doc/latex/oberdiek/test/yte.JPG} \label{fig:te} \end{figure}

the PDF output for the documentation i write is a block for the figure and no figure output just written the location C:/MIK/doc/latex/oberdiek/test/te.JPG

what's the problem?? plzzz neeed help

i used the \usepackage{graphicx}

You should put your problem in a new question. In this way your chances to get an answer are bigger. I believe there is a problem with the path. Try to put that image in your current folder and see if it works.
Ionel Bratianu