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),utopiaorfourier(Utopia),fouriernc(New Century Schoolbook),timesortxfonts(Times),mathpazoorpxfontsormathpple(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