I am using the default Bookdown example "A Minimal Book Example" which is available on GitHub: https://github.com/rstudio/bookdown-demo
How do I edit the template so that the PDF output does not have blank pages before all the chapters?
I don't speak TeX so basic clues for the clueless would be greatly appreciated.
Open the PDF in Acrobat. Choose the Organize Pages tool from the right pane. The Organize Pages toolset is displayed in the secondary toolbar, and the page thumbnails are displayed in the Document area. Select a page thumbnail you want to delete and click the Delete icon to delete the page.
The default setting for many books (and many thesis templates) is two-sided, with each chapter opening on a right-hand-side page. To get rid of these empty pages, just add the oneside option (or alternatively, the openany option) to your document class declaration.
Remove the page number from the first page Go to Insert > Header & Footer. SelectOptions on the right side, and then select Different First Page. Select Options again, and then select Remove Page Numbers.
This is not a problem with rbookdown itself, but it is because of a classoption in the documentclass "book" in LaTex. I found the hint here.
At the top of you index.Rmd file, you have documentclass: book
in your YAML header. Right below it, add classoption: openany
to fix this. For example:
---
title: "Fancy Title"
author: "Your Name"
date: "`r Sys.Date()`"
documentclass: book
classoption: openany
---
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With