Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am trying to create a document that has two discontinuous and asymmetrical width columns with a dividing line vertically separating the columns, which extend above and below the text. The basic format would look something like this:

enter image description here

I've attempted to implement several ideas, but the closest I can get is with this code:

\documentclass[12pt,a4paper]{article}

\begin{document}

\begin{minipage}[t]{0.5\textwidth}
dolor sit amet \\
nisi ut aliquip \\
non proident, sunt \\
\end{minipage}
\begin{minipage}[t]{0.7\textwidth}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\end{minipage}
\end{document}

The output looks something like this:

enter image description here

The main problem with my current solution is spacing. I attempted to insert the vertical line by making a new minipage and using tikz to generate the line, but three minipages seems to create alignment havoc. Can anyone help with a possible solution as to how I can generate the desired formatting from my drawing? Thanks for your time.

share|improve this question
1  
    
is this for just one page, or is it continuous for multiple pages, with the columns switching position on opposite pages? –  barbara beeton Jan 28 '12 at 13:34
    
The columns should not switch position on multiple pages. Ideally, if the text in the right column did not fit on one page, it would continue over to the right column on the next page. On the second page the left column would then be empty. –  dr.bunsen Jan 28 '12 at 13:48

1 Answer 1

up vote 3 down vote accepted

I would use a tabular environment. In your case a tabularx-environment.

\documentclass[a4paper,10pt]{standalone}
\usepackage{array,tabularx}
\usepackage{lipsum}
\begin{document}
\noindent\begin{tabularx}{\linewidth}{@{}>{\hsize=.5\hsize}X|>{\hsize=1.5\hsize}X@{}}
dolor sit amet \newline
nisi ut aliquip\newline
non proident, sunt 
&
\lipsum[1] \\
\end{tabularx}
\end{document}

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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