How can I simulate a HTML table? That is: I want to give the table a maximum width (for example \textwidth
) and the table should automatically distribute the necessary space according to the contents of each cell.
So something structured like this:
<table border="1">
<tr>
<td>foo</td><td>this is a longer text<br /> with a few lines that might be even without<br/> sense</td>
</tr>
<tr>
<td>bar</td><td>not so long</td>
</tr>
</table>
should result in something similar to that:
tabulary
andtabu
offer this (maybe I'll sometime publish DocScape's table model as a LaTeX package, that would be the third option then...).booktabs
documentation – vertical lines are evil!;)