I've been working on a report in r-markdown that is getting a bit lengthy and want to break it up into parts with bookdown. I'm using a custom html template with a bootstrap menu bar that is enabled in yaml front-matter with:
toc: true
toc_float: true
My reproducible example produces the following error:
Error in html_document(fig_width = fig_width, fig_height = fig_height, : You must use a theme when specifying the 'toc_float' option Calls: ... -> base_format -> output_format -> html_document
and when I include theme: default I get this error:
Error in html_document(fig_width = fig_width, fig_height = fig_height, : formal argument "theme" matched by multiple actual arguments Calls: ... do.call -> -> base_format -> output_format
The document knits without toc_float, but my bootstrap menu bar disappears (as it was designed to do).
Any ideas?
Parent doc:
---
title: "test doc"
output:
bookdown::html_document2:
# theme: default
base_format: rmarkdown::html_vignette
toc: true
toc_float: true
---
```{r child = "chapters/01-child.Rmd"}
```
Child doc:
# Child
Child