TransWikia.com

Beamer: How can I place two figures, one on the right of text and one below the same text?

TeX - LaTeX Asked on July 4, 2021

As the question in the title suggests, I’d like to place two figures at different places in a slide using Beamer.

Below I have provided some code I have written, in which I have succedeed placing one of the figures on the right. But, I’m not sure how to place the other figure right below the text.

I’d appreciate any help or hints. Thank you!

documentclass{beamer}

title{Testing}
date{}
subject{Testing with figures}

begin{document}
addtocounter{framenumber}{-1}

begin{frame}[plain]
  titlepage
end{frame}

begin{frame}
begin{columns}
    column{0.55 linewidth}
            begin{itemize}
                item Text A
                item Text B
                item Text C
            end{itemize}
    column{0.4 linewidth}
    centering
    includegraphics[height = 7cm, width = 4.7cm]{ImageA.png}
end{columns}

begin{figure}
    centering
    includegraphics[scale = 0.5]{ImageB.png}
end{figure}
end{frame}
end{document}

One Answer

To align the bottom of the first figure with the top of the second, its added heights must not be greater than the height of the frame. Or you can move the second up by inserting a negative vspace.

b

documentclass{beamer}

title{Testing}
date{}
subject{Testing with figures}

begin{document}
    addtocounter{framenumber}{-1}
    
    begin{frame}[plain]
        titlepage
    end{frame}
    
    begin{frame}
        begin{columns}
            column{0.55linewidth}
            begin{itemize}
                item Text A
                item Text B
                item Text C
            end{itemize}
            column{0.4linewidth}
            centering
            includegraphics[height =0.5textheight, width =linewidth]{example-image-a}
        end{columns}
        vspace*{-30pt} % comment to align bottom and top of the figures
        includegraphics[height =0.6textheight,width =0.6linewidth]{example-image-b}
    end{frame}
end{document}

Answered by Simon Dispa on July 4, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP