Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to make a two-column table that spans the entire page and is laid out something like this:

===================================
Column 1 text         Column 2 text
===================================
Column 1 text         Column 2 text
that wraps.
===================================

Where the equal signs are horizontal rules. For a (better) example of what I'm asking for, see this sample chapter of the Little Schemer. How can I create something similar?

share|improve this question
up vote 4 down vote accepted

This should get you a good chunk of what you want:

\begin{tabular*}{\textwidth}{ l l }
  \hline
  The quick brown fox jumped over the lazy dog & Another example of text \\
  \hline
  The quick brown fox jumped over the lazy dog & Another example of text \\
\end{tabular*}

Some explanation:

  • The tabular* environment lets you set a lot of layout options that the simpler tabular environment doesn't, such as widths.
  • The first argument to tabular*, \textwidth, tells LaTeX to use the entire width of the page.
  • The second argument, l l , is just like that of tabular.
  • The \hline command inserts a horizontal line.
share|improve this answer
    
You should also change the l s to p or the text won't wrap – Mark Pim Dec 9 '09 at 15:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .