If I have a very wide table, how do I let LaTeX line-break it automatically so it won't fall off the page?
I expect it will be split into parts which will be shown on top of each other.
My table is
\documentclass{article}
\begin{document}
\begin{tabular}{*{26}{l}}
a&b&c&d&e&f&g&h&i&j&k&l&m&n&o&p&q&r&s&t&u&v&w&x&y&z\\ \hline
z&y&x&w&v&u&t&s&r&q&p&o&n&m&l&k&j&i&h&g&f&e&d&c&b&a \\
one&two&three&four&five&six&seven&eight&nine&ten&eleven&twelve&
thirteen&fourteen&fifteen&sixteen&seventeen&eighteen&nineteen&twenty&twenty-one&twenty-two&twenty-three&twenty-four&twenty-five&twenty-six
\end{tabular}
\end{document}
Relevant questions
- How can I get a very wide table to wrap all three rows within the margins? David's answer comes close, but
\hline
does not work. Werner's answer requires quite some manual fiddling.
Best Answer
This is essentially an implementation of Mico's comment