Automatic line breaks in LaTeX tables

Tables with lots of text in LaTeX often lead to tables that do not fit on a page. This post shows how to produce tables with automatic line breaks. Here is a simple example of a badly formatted table:

The tabularx package has the possibility to break lines automatically by using the column specifier X:

This results in the following table:

Another option is defining a new command to let you set the width of the columns:

This new type has the nice feature that you can define the width of the columns yourself. It can be used as follows:

with the following result:

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.


Name *

Email *