I have a markdown file which is very long so I want to break it into section with page numbers at the bottom so the reader can choose a page number.
I tried to use page break
like this:
hello world
\newpage
```{r, echo=FALSE}
1+1
```
\pagebreak
```{r, echo=FALSE}
plot(1:10)
```
but there is still one markdown and not many pages. How can I produce a markdown using knite html with page numbers at the bottom for other pages?
. Note that you likely won't see a page break in your browser (HTMLs don't have pages per se), but the printing layout will have it.
– Xiongbing Jin Mar 08 '16 at 04:07