I wish to write the code of the picture displayed below..

How do I code this? I am confusedenter image description here


One simple way to put a short portion of text into two columns, if the rows need to line up, is to use the basic tabular environment. You can use the p specification to get a row with wrapped text.

\begin{tabular}{l p{0.5\linewidth}}
Line 1 on the left  & Line 1 on the right\\
Line 2 on the left  & Line 2 on the right overflowing with a lot of extra text\\

For beginners in TeX who find this answer helpful, you can find a basic introduction to LaTeX by entering texdoc lshort at a terminal.

| improve this answer | |
  • Is there a way to allow spaces to align the columns in the source document without getting overfull hbox errors? – Andrew Hundt Sep 15 '15 at 4:47
  • @AndrewHundt Yes, TeX ignores most extra whitespace so you can insert spaces or tabs between columns to align the source code. Overfull hboxes happen when there is too much text in a table cell to fit in the box allotted to it, among other reasons. – musarithmia Sep 15 '15 at 5:38

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.