- Blog/
Easy way to get full width latex tables in pandoc
Want tables in your pdf that fills out your page width?
Some find that a table that spans the entire width of the page, looks better.
When using markdown as input in pandoc, this can be done like so:
| Phase | Rate | Timebudget | Subtotal |
| ------------------------------------------------------ | -------- | ---------- | -------: |
| Development | 360 | 60 | 288000 |
| Integration | 240 | 50 | 120000 |
Notice the second line with the many dashes.
Just make one column really long like that.
This will ensure the final pdf will have a table that fits the page width where the “Phase” column, in this example, takes up any width left over from the other columns in the table.