So I'm trying Pandoc for the first time. Everything seems great but when exporting via html5 (wkhtmltopdf) my pdf output is saved with huge margins on all sides.
pandoc -t html5 -s example.md -o output.pdf
output.pdf (content output highlighted in red)
What I've tried:
- Reinstalling pdflatex
- Reinstalling wkhtmltopdf
- Including CSS to remove the margins
Am I missing something?
What I want: Write a markdown document using Typora -> Use Pandoc to apply TOC and page numbering -> Use html5 to export pdf with custom styling.
-t html
, you don't needpdflatex
. so don't bother reinstalling it. to change the styling, modify your HTML template then: see pandoc.org/MANUAL.html#templates – Sheepfold