What is an appropriate way to have a page break before each of my chapters in my bookdown project? edit: this is for a PDF output
In an Rmarkdown document I would just use \newpage
, but that does not work for my bookdown project. In this project I have place \newpage
at the end of my Rmd documents and at the beginning, but neither option worked.
- Should I set this in the index.Rmd? How?
- Should I set this in the _bookdown.yml? How?
- Should I set this in the _output.yml? How?
I would also appreciate it if you could direct me to references for:
- bookdown
- rmarkdown
- yaml
- LaTeX
I've reviewed the bookdown and rmarkdown stuff prepared by Yihui Xie, but I don't know where to go to find what I need to be able to understand the options.
My _bookdown.yml
:
book_filename: my-book-filename
output_dir: _book
delete_merged_file: true
language:
label:
fig: "FIGURE "
tab: "TABLE "
ui:
chapter_name: "Chapter "
My _output.yml
:
bookdown::gitbook:
css: style.css
split_by: section
config:
toc:
before: |
<li>""</li>
after: |
<li>""</li>
edit: ""
download: ["pdf", "epub"]
bookdown::html_chapters:
css: [css/style.css, css/toc.css]
bookdown::pdf_book:
includes:
in_header: preamble.tex
latex_engine: xelatex
citation_package: natbib
keep_tex: yes
toc_depth: 3
toc_appendix: yes
bookdown::epub_book: default
My index.Rmd
:
---
title: "My Title"
author: "The Author"
date: "`r format(Sys.Date(), '%d %B %Y')`"
knit: "bookdown::render_book"
documentclass: report
bibliography: [book.bib]
link-citations: yes
colorlinks: yes
lot: no
lof: no
fontsize: 12pt
papersize: letter
site: bookdown::bookdown_site
description: "A brief description"
output:
bookdown::gitbook:
lib_dir: "book_assets"
---