Reputation: 437
Using up to date (from github)
bookdown::render_book("file.Rmd", "bookdown::pdf_document2)
on R 3.4.1, on Windows, to generate a PDF document.
I get text running into the lower margin on the page... See image. Note the page number"10" over-printed on the textual material. YAML unremarkable.
Does anyone know the cause?
Upvotes: 1
Views: 146
Reputation: 437
It appears (rather strangely) that a blank line is required after a chunk. Some combination of bookdown/pandoc/Latex reacts rather poorly to this construct:
```{r chunkname}
R code to make a table of figure
```
Table \@ref(fig:chunkname) blah blah
I'll build a reproducible example and send to bookdown as a bug.
Upvotes: 1