Skip to content

bookdown 0.25

Compare
Choose a tag to compare
@yihui yihui released this 16 Mar 13:32
· 123 commits to main since this release

NEW FEATURES

  • Set option bookdown.theorem.enabled = FALSE to opt-out bookdown special Theorem and Proof environment syntax. options(bookdown.theorem.enabled = FALSE) must be called before the function to render the book, e.g in a project's .Rprofile. This can be useful for advanced users who only want PDF output and needs to handle themselves the environment using LaTeX directly, or Custom Blocks syntax without bookdown interfering (thanks, @finkelshtein, #1285).

  • bs4_book() gains a footnotes_inline argument. Set to FALSE to opt-out the default behavior of moving footnotes inline to show on hover (thanks, @Pindar777, #1253).

BUG FIXES

  • Fix styling of bibliography for bs4_book() (thanks, @Selbosh, #1277).

  • Fix an issue with Pandoc 2.17 and internationalization of Proof-like environment (#1302).

  • Fix an issue with Pandoc 2.17 and cross referencing sections in non HTML format (thanks, @N0rbert, #1301).

  • Fix an issue with Pandoc 2.15 and footnote relocation in each chapter (#1275).

  • Fix an issue with html_book() and toc.css not working correctly with recent pandoc (thanks, @florisvdh, #1268).

  • Fix an issue with unneeded header-attr.js inserted by rmarkdown while bookdown already cleans attributes (thanks, @salim-b, #865).

MAJOR CHANGES

  • The theorem and proof knitr engines no longer use the block2 knitr engine to create theorem/proof environments, but write out fenced Divs instead, which is the new syntax for these environments. Note that this means these environments are no longer supported in EPUB output (they work only in HTML and PDF), but hopefully the support will be back in the future (thanks, @deleeuw, #1178).

  • The tag <meta property="og:url"> has been removed from the default HTML template and the gitbook template (thanks, @jtbayly, #970).