Anthony D
Anthony D

Reputation: 487

change font type and size of headings in R markdown with PDF output

I've searched and searched (even the pandoc manual with its gazillion pages) but can't find the answer:

how can I change font type and size of headings in R markdown with PDF output? For instance, let's say I want all level 1 headings to be 12 pt bold Times New Roman numbered "1."; all level 2 headings to be 12 pt italics Times New Roman numbered "1.1"

thanks

Upvotes: 4

Views: 5940

Answers (1)

mb21
mb21

Reputation: 39189

You can put LaTeX in header-includes: or directly set some of the Variables for LaTeX:

---
fontsize: 12pt
fontfamily: Latin Modern
---

# my content

Upvotes: 1

Related Questions