JP McCarthy
JP McCarthy

Reputation: 168

Pandoc grid_table columns not aligning correctly

I'm using pandoc to export markdown files to PDF. I'm using OS X Yosemite.

When markdown is exported to pdf (via pandoc) the content of the table columns overlay the content in the next column.

Is there a pandoc command to set the column width? Or, perhaps, a command to standardise column width?

Upvotes: 2

Views: 1538

Answers (1)

John MacFarlane
John MacFarlane

Reputation: 8947

If the contents of your table cells are wide enough to need wrapping, then you need to use pandoc "multiline tables" or "grid tables," not simple or pipe tables. The relative widths will be calculated automatically from the relative widths in the source file, as described in pandoc's User's Guide. You can also set the overall source width using --columns.

Upvotes: 1

Related Questions