Forrest Williams Forrest Williams - 9 months ago 61
R Question

Bookdown Special Headers within Article Document Class

Bookdown has introduced a ton of great functionality, but I am having some issues with the single document output option. When

in the YAML header is set to
bookdown has no trouble recognizing and creating special headers, but if
is set to
bookdown is unable to render special headers. Here is a brief example:

title: "Untitled"
author: "John Doe"
date: "November 10, 2016"
documentclass: article
output: bookdown::pdf_document2

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)

# Chapter One
# Chapter Two
# (APPENDIX) Appendix {-}
# Appendix A
# Appendix B

Is it possible to render documents of class
with special headers using Bookdown, or is this outside of Bookdown's functionality at this time?

Answer Source

I have updated bookdown on Github so that the article class will also be supported when you use these special headers. Please try the latest version (>= 0.2):