0
votes

How can i change the font size of PDF output in RMarkdown? The font to be changed is not in the chunk. Example:

---
title: "Example"
author: "Tales Martins"
output:
   pdf_document:
    toc: TRUE
    number_sections: TRUE
---
\newpage

```{r, include=FALSE, echo=FALSE}
library(knitr)

```
# Introduction
This is my introduction

How can I change the font size of "This is my introduction"? Default font is little in PDF output.

Thanks in advance

1
I've found some posts that may answer your question: here and here. Rmarkdown reference guide has useful information also.Pedro Henrique
Thanks you, man. The solution was really very simple. It was just a bug in my head :)tales_alencar

1 Answers

1
votes

Did you try this?:

---
title: "Example"
author: "Tales Martins"
output:
   pdf_document:
    toc: true
    number_sections: yes
linestretch: 1.5
---

Add in the YAML linestretch: 1.5, after that change this toc: TRUE to this toc: true and number_sections: TRUE to number_sections: yes

An example here

https://i.stack.imgur.com/VEdLL.png

also you can select linestretch: 2 and others