#StackBounty: #r #bookdown Position of Table of Contents in R Bookdown

Bounty: 50

I would like to move some preliminary stuff, i.e. abstract and acknowledgments, before the table of contents. By default, the TOC comes right after the title page. I am aware of the solution to include abstract into the YAML header like so, but that does not seem flexible enough for multiple things to come before the TOC.

Note a similar question here, which only refers to HTML.

My current YAML header:

title: "Title"
subtitle: "Subtitle"
author: 
- "Institution" 
- "Name"
date: "September 2020"
output: 
  bookdown::pdf_book:
    includes:
      in_header: preamble.tex
    keep_tex: yes
    latex_engine: xelatex
    citation_package: natbib
fontsize: 12pt
linestretch: 1.5
toc-depth: 2
secnumdepth: 2
lof: True
lot: True
site: bookdown::bookdown_site
documentclass: book
bibliography: ["references.bib"]
csl: american-political-science-association.csl
geometry: "left=2.5cm, right=2.5cm, top=2.5cm, bottom=2.5cm"


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.