Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 725
themthem Avatar asked Apr 08 '18 04:04

themthem


1 Answers

If Helvetica is "good enough" you can use:

fontfamily: helvet
header-includes:
  - \renewcommand{\familydefault}{\sfdefault}
like image 172
Ralf Stubner Avatar answered Sep 19 '22 07:09

Ralf Stubner