Creating Two Columns In Beamer
Answer :
You forgot to give the mandatory width to the second column, and you included an unnecessary width=
in the width for the first column.
\documentclass[demo]{beamer}
\begin{document}
\begin{frame}
\frametitle{explanation}
\begin{columns}
\begin{column}{0.5\textwidth}
some text here some text here some text here some text here some text here
\end{column}
\begin{column}{0.5\textwidth} %%<--- here
\begin{center}
\includegraphics[width=0.5\textwidth]{image1.jpg}
\end{center}
\end{column}
\end{columns}
\end{frame}
\end{document}
Also note that the graphics need not be scaled down as much in the second column. The column becomes a minipage
, so \textwidth
is already adjusted to its width.
\documentclass[demo]{beamer}
\begin{document}
\begin{frame}
\frametitle{explanation}
\begin{columns}
\begin{column}{0.5\textwidth}
some text here some text here some text here some text here some text here
\end{column}
\begin{column}{0.5\textwidth}
\begin{center}
%%%%% this is a minipage, so \textwidth is already adjusted to the size of the column
\includegraphics[width=\textwidth]{image1.jpg}
\end{center}
\end{column}
\end{columns}
\end{frame}
\end{document}
The "columns" feature of Beamer (other answers above) lets you customize the layout and the breaking point.
However if you want to let the text flow or you don't care about the exact layout, many times the good old multicol
package does the job well with less noise.
Paragraph divisions and \columnbreak
can help deciding what is on the left and side or the right hand side in the two-column case.
\usepackage{multicol}
...
\begin{frame}{Frame Title}
\begin{multicols}{2} % two columns
Left Hand side text
\includegraphics[width=4cm]{RHS_image}
\end{multicols}
\end{frame}
Comments
Post a Comment