# how to insert two columns in latex?

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

How do I code this? I am confused

• Googling 'latex two columns' returns texblog: Creating two columns in article, report or book as the second result, and LaTeX Wikibook: Page Layout as the third. – Mike Renfro Dec 8 '14 at 17:45
• There are many options: The simplest would be to use a tabular environment with two columns: \begin{tabular}{ll} [. . .] \end{tabular} If you need text wrapping in the right column you can write \begin{tabular}{l p{0.5\linewidth} for example. – musarithmia Dec 8 '14 at 17:45
• If you can show us a complete sample document with the code you've tried, we can help you better. – musarithmia Dec 8 '14 at 17:47
• possible duplicate of How can I make two columns in two columns – Basilius Sapientia Dec 8 '14 at 17:54
• Downvoter: I think the comments were sufficient without the downvote. We have all had times when we didn't know where to start. – musarithmia Dec 8 '14 at 17:54

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.

\documentclass{article}
\begin{document}
\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\\
\end{tabular}
\end{document}


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

• 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