Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

LateX Beamer : Putting a tikzpicture next to a picture

I’d like to put tikzpicture next to a picture on a beamer but right now the tikzpicture is way below the slide ! Here is my code :

\begin{frame}{Frame name}
\begin{columns}[t]
\column{.5\textwidth}
\centering

\begin{tikzpicture}{Tikzpicture name}
     %my tikzpicture here
\end{tikzpicture}

\column{.5\textwidth}
\centering
      \includegraphics[width=100px, height=200 px]{PICTURE.jpg}
\end{columns}
\end{frame}

Here's my tikzpicture

And the slide it gives me after my code

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You can use T as alignment option for the columns to make sure the very top of the columns is aligned instead of the baseline of the first lines.

\documentclass{beamer}

\usepackage{tikz}

\begin{document}

\begin{frame}
  \frametitle{Frame name}
  \begin{columns}[T]
    \begin{column}{.5\textwidth}
      \centering
      \begin{tikzpicture}{Tikzpicture name}
        \draw (0,0) circle [radius=1cm];
      \end{tikzpicture}
    \end{column}
    \begin{column}{.5\textwidth}
      \centering
      \includegraphics[width=100px, height=200 px]{example-image-duck}
    \end{column}
  \end{columns}
\end{frame}

\end{document}

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading