Is there a (built-in) way to set a different font (or fonts) to use in the Pandoc YAML header? Ideally, I would do something like this in the YAML header of my Markdown file:
This should do the trick:
---
fontfamily: arev
---
From Pandoc's README:
fontfamily: font package to use for LaTeX documents (with pdflatex): TeXLive has
bookman
(Bookman),utopia
orfourier
(Utopia),fouriernc
(New Century Schoolbook),times
ortxfonts
(Times),mathpazo
orpxfonts
ormathpple
(Palatino),libertine
(Linux Libertine),arev
(Arev Sans), and the defaultlmodern
, among others.
When you use xelatex or lualatex to render the PDF you must use:
---
mainfont: Arial
---
Official documentation: Variables for LaTeX