themthem
themthem

Reputation: 543

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?

Upvotes: 4

Views: 8712

Answers (2)

mb21
mb21

Reputation: 39243

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.

Upvotes: 2

Ralf Stubner
Ralf Stubner

Reputation: 26823

If Helvetica is "good enough" you can use:

fontfamily: helvet
header-includes:
  - \renewcommand{\familydefault}{\sfdefault}

Upvotes: 4

Related Questions