Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am trying to place two images side-by-side in a beamer document. However, when I compile the document, the image in the right column is forced too low on the page. I am using the [htp] options but no variation on these options moves the image. Is there something I am missing?

\begin{frame}{Frame}
    \begin{columns}
    \begin{column}{0.5\textwidth}
        \includegraphics[htb, scale=0.3]{image1}
    \end{column}
    \begin{column}{0.5\textwidth}
        \includegraphics[htb, scale=0.3]{image2}
        \vfill
    \end{column}
    \end{columns}
\end{frame}
share|improve this question
1  
Welcome to TeX.sx! –  texenthusiast Apr 1 '13 at 22:50
    
\includegraphics doesnt't have an htb key you should get an error message from that? –  David Carlisle Apr 1 '13 at 23:20
    
I am compiling in TexWorks, and I don't read all the compile text, so maybe there is a warning but I don't get an error. Is there some way to force a position using \includegraphics? –  MicahJ Apr 2 '13 at 1:49
    
When i compile the code both images are on the same height. Please verify that your problem doesn't derive form the picture itself (like bit white area) and add a picture. Futhermore a MEW which is image independent would be helpful. –  bloodworks Jun 1 '13 at 7:38
    
\begin{columns}[t] (align top by baseline) or \begin{columns}[T] (align top by first line). The positioning option (one of bctT) has to be given to the columns environment, not to \inlcudegraphcis. For details, see §12.7 (p 127) of the beamer users guide. –  Daniel Jun 1 '13 at 7:57

1 Answer 1

Maybe depends on the images, their size or something else, but somethings like this works fine for me:

\begin{frame}{Frame}
    \begin{columns}
        \begin{column}{0.5\textwidth}
            \includegraphics[width=1\textwidth]{image1}
        \end{column}
        \begin{column}{0.5\textwidth}
            \includegraphics[width=1\textwidth]{image2}
        \end{column}
    \end{columns}
\end{frame}

I've learned here that it's best to use width=bla instead of scale

share|improve this answer
    
Nope, still gives the same problem, except that the images are a bit disproportionate. I checked in inkscape and there is no white space above the top of the image. Perhaps I should mention that there is some text in the same frame, above the two images. However, I did a test with the text removed and the problem persisted. –  MicahJ Apr 2 '13 at 1:48
    
Can you upload the images? Or give a link to the images? –  Nico Apr 2 '13 at 3:44
    
I'm just going to combine the images and include them on the frame as a single image –  MicahJ Apr 2 '13 at 17:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.