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.

Is it possible to split a long verbatim simply into 2 columns? For example:

 \begin{verbatim}
 a
 a
 a
 b
 b
 \end{verbatim}

result displayed (b starting at the middle of the page):

a       b
a       b
a       
share|improve this question
add comment

1 Answer 1

Use the package multicol that allows doing two columns text:

\documentclass{article}
\usepackage{multicol}
\begin{document}
\begin{multicols}{2}
\begin{verbatim}
a
a
a
a
b
b
b
\end{verbatim}
\end{multicols}
\end{document}

enter image description here

share|improve this answer
add comment

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.