Anyone have any idea how to separate Title Page and Table of Content page? From this code:
---
title: "Title Page"
output:
pdf_document:
toc: true
number_sections: true
---
The few line of code above creates the Title and Table of Content, but there is no separation between the Title Cover Page and Table of Content.
I have found an alternative by adding latex symbols \newpage
and \tableofcontents
:
---
title: "Title Page"
output:
pdf_document
---
\centering
\raggedright
\newpage
\tableofcontents
# header 1
```{r}
summary(cars)
```
## header 2
```{r, echo=FALSE}
plot(cars)
```
## header 3
lore ipsum
# header 4
lore ipsum
Is there a way without having to use latex \newpage
and \tableofcontents
and use rmarkdown
somewhere in the following block:
---
title: "Title Page"
output:
pdf_document:
toc: true
---