July 13, 2023

Increase the font size of a pdf document compiled with Pandoc

To increase the font size when converting a Markdown file to a pdf with Pandoc add the option -V to specify a custome template, then set the variable documentclass to article, then -V again, and finally set the variable fontsize to 12pt, for example. So the command you run would be, for example:

$ pandoc -o file.pdf file.md -V documentclass=article -V fontsize=12pt 

Check out $ man pandoc to see other possible document class.

command-line interface (cli) personal computing pandoc trisquel GNU linux text processing office applications wiki

No affiliate links, no analytics, no tracking, no cookies. © 2016-2023 yctct.com. Content is licensed under CC BY-NC-SA 4.0 .