Skip to content

Confusing Documentation for Specifying Themes #1322

@kputschko

Description

@kputschko

### Three-column Bootstrap style {#bs4-book}

I'm trying to edit the theme of a bs4_book, but the documentation doesn't make it clear how I am supposed to alter the default theme. You mention this function, but there is no example of this function being used in the YAML header of the index.Rmd file.

bs4_book(theme = bs4_book_theme(), repo = NULL, ...,
  lib_dir = "libs", pandoc_args = NULL, extra_dependencies = NULL,
  template = "default", split_bib = FALSE, footnotes_inline = TRUE)

I try something like this, and it does work, but I'm not sure why it does. And I'm not sure where I would put a bs_lib() theme definition to modify the theme more generally.

output:
  bookdown::bs4_book: 
    theme:
      font_scale: .90

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions