Bookdown has many configuration options and I am finding it hard to understand how to know whether an option exists, and the logic behind where these options are stated.
Specifically I am finding it hard to describe what kind of options go in _bookdown.yml
given that there are at least two other places for stating options:
- In
_output.yml
, - Arguments to function calls such as
bookdown::render_book
.
It doesn't appear to me that there's any sort of 1 to 1 mapping between _bookdown.yml
and arguments to functions like bookdown::render_book
, so _bookdown.yml
doesn't seem to be just a different way of recording options to function calls.
We can see in the source code that `_bookdown.yml' is controlling some of the config options but not all of them.
So - to rephrase the question - why is _bookdown.yml
a separate config file and where/what is the definition of what it should contain?
To take a representative example, there is a chapter_name
option that can be used in _bookdown.yml
. I have the following questions:
- How are we supposed to know that this is an option, given that it is not referenced in the documentation here or even in the example here.
- Once we know it exists, how do I found out what effect it has? Do all of these options get passed to other packages (e.g. pandoc, rmarkdown)? The only place I can find reference to
chapter_name
is in the CRAN source code for bookdown, and even there I can't really figure out how it's being used.
Note, the discussion of _bookdown.yml
by the author is here, but I still don't fully understand.