So I know you can use pagesize and geometry to set the page size of the PDFs Pandoc makes to presets (like a5, b5, etc), but is there a way to set a precise pair of dimensions? I'm going to be using the PDF with Amazon Self-Publishing (paperback) and I need the pages to be exactly 5x8in, as that's the closest setting KDP has to what I want. Thank you!
Asked
Active
Viewed 840 times
1
Alexis Dumas
- 653
- 1
- 5
- 11
-
5 \times 8 what? Units would be useful ... – samcarter_is_at_topanswers.xyz Dec 10 '21 at 09:14
-
lmao sorry, inches – Alexis Dumas Dec 10 '21 at 17:02
1 Answers
3
You can set an arbitrary page size via papersize="{5in,8in}"
pandoc -V geometry:papersize="{5in,8in}" test.md -o out.pdf
For more options, see the geometry package documentation: https://texdoc.org/serve/geometry.pdf/0