on-internet
← Community

Inconsistent page number positions in PDF from R bookdown

Stack Overflow ·

I want to experiment with R's bookdown package to make PDFs, and I hit a strange issue at the very start. I created a new bookdown project with RStudio (File > New Project... > New Directory > Book project using bookdown). This creates a minimal book example in the new directory. Following the bookdown instructions, I ran bookdown::render_book("index.Rmd", "bookdown::pdf_book") to make a PDF out of it. The problem is, I get a PDF where the page numbers are strangely placed. All odd page numbers are on the bottom middle and all even page numbers are on the top left, see below. I have not seen a

Comments

Sign in or sign up to comment and upvote.

No comments yet.