40

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 Answer 1

39

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
    Jan 24, 2013 at 18:50
  • 7
    Do you know if this can work with the \column{.5\textwidth} syntax (without the \begin{column} and \end{column} tags)?
    – askewchan
    Jul 16, 2014 at 18:42
  • 6
    @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
    Mar 11, 2017 at 19:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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