I have been trying to render my thesis with the bibliography added to the TOC. After reading bookdown documentation carefully I have come to the conclusion that I must do the following:
bookdown::render_book(input = "index.Rmd",output_format = "bookdown::pdf_book", toc_bib = TRUE)
However, "unused argument" error is thrown in the console when I try to use it.
Now, the documentation says that the third argument of render_book
is the dots
(i.e. ...
) argument and that it gets passed to output_format
, so it should work.
I'm confused here, why doesn't it work?
list(toc_bib = TRUE)
? – Frans RodenburgError in dirname(output_file) : a character vector argument expected
– Adrianbookdown::render_book(input = "index.Rmd",output_format = "bookdown::pdf_book", "toc_bib = TRUE")
. – Frans RodenburgError: Failed to compile toc_bib = TRUE.tex. See toc_bib = TRUE.log for more info.
It treats it like a new tex file. – Adrianoutput_format = "bookdown::pdf_book(toc_bib = TRUE)"
? – Frans Rodenburg