0

Possible Duplicate:
How to force a table into page width?

I am generating some table as follow:

\begin{tabular}[l]{|l|l|l|}
\hline
Input & Output& Action return \\
\hline
\hline
DNF &  simulation & jsp\\
\hline

\end{tabular}

How can can I give this table the same width as the text width? For graphic I use

[width=\textwidth]

But this doesn't work for table.

3
  • you can use tabularx or tabulary. Please see documentation. texdoc tabularx / texdoc tabulary. Or check www.texdoc.net
    – user11232
    May 19 '12 at 13:39
  • 1
    @HarishKumar or the standard tabular* if you want to avoid my packages! May 19 '12 at 14:15
  • @DavidCarlisle: That is also a possibility. And NO WAY! I like your packages and without them my hands are cut off. They are handy and very useful.
    – user11232
    May 19 '12 at 16:13

Browse other questions tagged or ask your own question.