Search code examples
latexmarkup

vertical line between latex minipages


right now I have a latex section that looks like

\begin{minipage}{0.35\textwidth}   %left column
...
\end{minipage}
\hfill
\begin{minipage}{0.55\textwidth} %right column
...
\end{minipage}

This makes a nice looking two column layout, but I would like to add a vertical bar between the two minipages (where I currently have \hfill). What is the easiest way to do this?


Solution

  • Using

    \begin{minipage}{0.35\textwidth}   %left column
    
    ...
    
    \end{minipage}
    
    \hfill\vline\hfill
    
    \begin{minipage}{0.55\textwidth} %right column
    
    ...
    
    \end{minipage}
    

    Works without needing to change to parbox and staying with minipage.