Using packages for further customizations
When typesetting tables, we may encounter further challenges. For example, we may need column width adjustment, page breaks within a table, color, to rotate a table, and get a specific alignment. In the following sections, we will have a look at additional packages for such purposes.
You can find example tables and links to the documentation at https://latexguide.org/tables for each of the following sections.
Auto-fitting columns to the table width
l
, c
, and r
columns have the width of their content. For p
columns, you specify the width. This way, it's hard to find out the actual width of the table. Wouldn't it be a good idea to specify the table width and let LaTeX decide how wide the columns may be? The tabularx
package allows that. Using it looks as follows:
\usepackage{tabularx} ... \begin{tabularx}{width}{column specifiers} ... \end{tabularx}
The new tabularx
environment requires an additional argument...