Search code examples
latexmarkdownpandoc

How do I change the font in markdown pandoc?


I am writing a document in markdown, and I read that I could change the font to Arial like this:

---
fontfamily: arev
---

But it did not work. But when I try to change the font to Times, it's working fine

---
fontfamily: times
---

So how do I change the font to Arial?


Solution

  • Pandoc uses LaTeX per default for PDF generation, so it depends on your TeX installation.

    If you're on TeX Live you can use most in this font catalogue.