user2292410
user2292410

Reputation: 437

Bookdown text runs into lower margin

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.

enter image description here

Does anyone know the cause?

Upvotes: 1

Views: 146

Answers (1)

user2292410
user2292410

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

Related Questions