Let see the following RMarkdown document.
How to set font types and sizes for these two sections, for example:
1 - "Arial, bold, 9pt" for the first section
2 - "Arial Narrow, bold, 8pt" for the second one.
Thanks!
---
title: "R Notebook"
output: pdf_document
---
## 1. First section with "First car name"
```{r echo=FALSE, message=FALSE, warning=FALSE, results='asis'}
# 1. Data
fist_car_name <- rownames(mtcars)[[1]]
# 2. Print name of the first car
cat(fist_car_name)
```
## 2. Second section with "Data about all cars"
```{r echo=FALSE, message=FALSE, warning=FALSE, results='asis'}
library(knitr)
library(kableExtra)
kable(mtcars)
```