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?
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.
If using minipage
is not a necessity for you, you could easily use the tabular
environment together with parbox
to achieve the desired result:
\begin{tabular}{l | l} \parbox{0.35\textwidth}{ left column content } & \parbox{0.35\textwidth}{ right column content } \end{tabular}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With