The vertical line between the latex mini channels

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 nicely shapes the two columns, but I would like to add a vertical bar between the two mini-folders (where I currently have \ hfill). What is the easiest way to do this?

+6
source share
2 answers

Using

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

It works without the need to change the parbox and stop with the mini file.

+11
source

If using minipage is not necessary for you, you can easily use the tabular environment along 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} 
+3
source

Source: https://habr.com/ru/post/982806/


All Articles