Home > database >  How to change the font color of title, author, date and make it bold in yaml of Rmarkdown?
How to change the font color of title, author, date and make it bold in yaml of Rmarkdown?

Time:05-27

---
title: "PDF Document"
author: "Sana"
date: "27-05-2022"
---

How to change the font color and style of title, author, date and make it bold or italic in yaml of Rmarkdown?

CodePudding user response:

One way is to use a latex code chunk in the title.

---
title: |
  ```{=latex}
  \textcolor{red}{\textbf{PDF Document}}
  ```
author: "Sana"
output: pdf_document
---
  • Related