44

I am using the columns environment with beamer.

\begin{columns}[c]
\begin{column}{0.5\textwidth}
\includegraphics<1>[width=0.35\textwidth]{dictmat-4.png}
\end{column}
\hspace{-50pt}
\begin{column}{0.50\textwidth}
\includegraphics<1>[width=0.35\textwidth]{dictmat-5.png}
\end{column}
\end{columns}

How can I draw a vertical line between two columns (i.e., the two figures?)

1
  • why the \hspace{-50}?
    – user313032
    Commented May 5 at 20:20

1 Answer 1

45

Try adding a \vrule between the two columns:

\begin{columns}[c]
\begin{column}{0.5\textwidth}
\includegraphics<1>[width=0.35\textwidth]{picture.jpg}
\end{column}
\hspace{-50pt}
\vrule{}
\begin{column}{0.50\textwidth}
\includegraphics<1>[width=0.35\textwidth]{picture.jpg}
\end{column}
\end{columns}
3
  • It worked fine! I just had to remove \hspace and use [T] as parameter to \begin{columns}[T]
    – user24913
    Commented Jan 24, 2013 at 18:50
  • 8
    Do you know if this can work with the \column{.5\textwidth} syntax (without the \begin{column} and \end{column} tags)?
    – askewchan
    Commented Jul 16, 2014 at 18:42
  • 7
    @askewchan I normally use \column{0.5\textwidth}, but that didn't work for me when trying to get the line between columns.
    – Jessica B
    Commented Mar 11, 2017 at 19:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .