Skip to content
Tables guide

Wide table in Word? Put it on a landscape page automatically

How to fit a wide table in Word, by hand with section breaks or automatically. Mathfold measures every table and gives the wide ones a landscape page of their own.

Try a very wide tableUpdated

Step by step

  1. Paste the Markdown with the table into Mathfold, or open the file.
  2. Leave Auto landscape ticked (it is on by default).
  3. The preview marks the tables that moved to a landscape page.
  4. Download Word or PDF. Only those tables are turned; the rest of the document stays portrait.

Doing it by hand in Word

To give one table a landscape page in Word you insert a section break (Next Page) before the table and another after it, then select the middle section and set Layout, Orientation, Landscape. After that, you fix the column widths, because Word's AutoFit rarely gets them right with long text. It works, but it takes several minutes per table, and it breaks again when the content changes.

What Mathfold does instead

Mathfold measures the table before placing it. Short codes and numbers get narrow columns, long descriptions get the room, and the result decides the orientation:

Table Portrait result Decision
4 columns, one with long notes Notes wrap to 2 or 3 lines Stays portrait
14 columns of short numbers Fits at a normal size Stays portrait
9 columns of words Words would split mid-word Landscape page
40 columns Too wide even in landscape Column groups

Try the extreme case

The "very wide table" example has 14 columns of five-digit numbers. Those do not fit across a portrait page at a readable size, so it moves to landscape:

You paste
| Department | Jan | Feb | Mar | Apr | May | Jun |
|---|---:|---:|---:|---:|---:|---:|
| Theoretical Physics | 40,000 | 54,729 | 69,458 | 84,187 | 98,916 | 113,645 |
| Philosophy | 87,514 | 102,243 | 116,972 | 41,701 | 56,430 | 71,159 |
Mathfold makes
Department Jan Feb Mar Apr May Jun
Theoretical Physics 40,000 54,729 69,458 84,187 98,916 113,645
Philosophy 87,514 102,243 116,972 41,701 56,430 71,159

The preview shows exactly what will happen, so if you want a table on a portrait page anyway, you can untick Auto landscape and see the result before downloading.

Questions

How does Mathfold decide when a table needs landscape?

It measures the text in every column, then tries portrait first. Long descriptions are allowed to wrap onto two or three lines. The page turns only when portrait would split words, or squeeze short values onto several lines.

What if a table is too wide even for landscape?

First the font gets slightly smaller, within readable limits. If that is not enough, for example with 40 columns, the table is split into column groups, and each group repeats the first column so rows stay identifiable.

Can I turn the automatic landscape off?

Yes. Untick Auto landscape and tables stay on portrait pages, with smaller text where needed. The API has the same option (autoLandscape false).

Do long tables repeat their header on every page?

Yes. The header row is marked as a repeating header in Word, and the PDF repeats it too.