Releases: rstudio/bookdown
bookdown 0.14
NEW FEATURES
-
Added
rtf_document2
(thanks, @jooyoungseo, #768). -
Added copy to clipboard buttons to code blocks in the
gitbook
output format (thanks, @behrman #775, @RLesur #776).
BUG FIXES
- Images specified in
toc: before:
of thegitbook
format are not copied to the output directory (thanks, @dcossyleon, #763).
bookdown 0.13
bookdown 0.12
bookdown 0.11
BUG FIXES
- The fix for https://stackoverflow.com/q/56061122/559676 in the previous version was incorrect, causing
rmd_files
to fail when it is a character vector of Rmd filenames (thanks, Joyce Robbins and Hadley Wickham, https://stackoverflow.com/q/56118663/559676).
bookdown 0.10
NEW FEATURES
-
Added an argument
clean_highlight_tags
tohtml_document2()
(thanks, @atusy, #706). -
For HTML output formats such as
gitbook
, the abstract title (if the abstract is provided) can be customized via the fieldabstract-title
in the YAML frontmatter (thanks, @XiangyunHuang, #715).
BUG FIXES
-
Split reference sections in
gitbook
ignored the sorting definition of the citation style (thanks @GegznaV #661, @crsh #674). -
For the
gitbook
output format, the content doesn't get the focus when the page is loaded, which makes it fail to respond to keystrokes such as PageUp/PageDown/Up/Down (thanks, @darshanbaral #691, @aronatkins #699). -
For the
gitbook
output format, when searching for keywords in code blocks, the automatic scroll to keywords doesn't work (thanks, @colearendt, #700). -
The search keyword no longer persists across page loads for different books in the
gitbook
format (thanks, @aronatkins, #695). -
The keybindings
Up
andDown
(orEnter
) in the search input of thegitbook
output format work across all pages now; previously they only work on the current page (thanks, @dsblank, #657). -
When performing searching, the
gitbook
sidebar will only display relevant TOC items that actually take users to the HTML pages containing the search keyword. Previously, some TOC items do not really take users to the search destination but an anchor on a page instead, which can be confusing (thanks, @aronatkins, #696). -
Hyphenated words will be correctly highlighted in the search results now if spaces are used in the search keyword instead of dashes, e.g., you can search for
hand-off
using the keywordhand off
(thanks, @aronatkins, #701). -
When
rmd_files
is configured in_bookdown.yml
,render_book()
will fail if the output format is not HTML or LaTeX (thanks, Ladislas Nalborczyk, https://stackoverflow.com/q/56061122/559676). -
The colon after figure/table numbers is missing in Word and EPUB output (thanks, @upton9265, #618).
-
Multiple labels on the same line are allowed for Word output (thanks, @mdlincoln @h-k-kan @brooksambrose, #538).
MINOR CHANGES
-
Added alt/hover text to icons on the
gitbook
toolbar (thanks, @aronatkins, #698). -
Added an Information button to the
gitbook
toolbar to show the keybindings that are otherwise difficult for users to discover without reading the bookdown book (thanks, @aronatkins, #697). -
Added information about the keybindings Enter/Up/Down to the placeholder text and tooltip of the search input in
gitbook
output (thanks, @pyltime, #660).
bookdown 0.9
BUG FIXES
- The tags for OpenGraph titles in HTML output were not properly closed.
bookdown 0.8
NEW FEATURE
-
Added Conjecture to the list of theorem environments.
-
In addition to
rmd_subdir: true
, which searches all subdirectories, you can now provide a list of subdirectories to be recursively searched (#242). -
Added an argument
template
togitbook()
andepub_book()
(thanks, @ThierryO, #570). -
Added an argument
table_css
togitbook()
to allow customized css for tables. (thanks, @haozhu233, #642) -
You can also add a "history" button on the Gitbook toolbar, which is similar to the "edit" button, but shows the GIT history of a source file instead (thanks, @maelle #638, @noamross, #639).
-
Added a
quiet
argument toserve_book()
, so that users can suppress stdout withbookdown::serve_book(quiet = TRUE)
(thanks, @hammer, #633). -
For HTML output, the title of the current chapter or section will be added to the page title (in the
<title>
tag). This will give readers more information when reading the results from search engines or Twitter cards. Previously, all pages would have identical titles (thanks, @benwhalley and @batpigandme, #544).
BUG FIXES
-
HTML output formats such as
gitbook
andhtml_document2
won't work when only unnumbered parts (i.e.,# (PART\*)
) are used (thanks, @tjmahr, #575). -
Previously the
rmd_files
parameter in_bookdown.yml
would overridermd_subdir
, but now both parameters can be used simultaneously (thanks, @ellisvalentiner, #600). -
Resources with URL encoded special characters are now correctly copied to the output directory (thanks, @AshesITR, #622).
-
serve_book()
can now be used without error when rstudioapi is installed but RStudio is not being used (thanks, @jimhester, #637). -
Text references via
(ref:label)
forbookdown::pdf_document()
doesn't always work (thanks, @brendanf, #616).
bookdown 0.7
MINOR CHANGES
-
Added a new dependency tinytex to build PDF, and xfun for some utility functions.
-
Added the ability to share documents on LinkedIn with the
gitbook
output format (thanks, @WeeBeasties, #523, https://stackoverflow.com/q/48494097/559676).
CHANGES IN bookdown VERSION 0.6
NEW FEATURES
-
Added an argument
config_file
torender_book()
so that one can specify a custom config file; the default config file is still_bookdown.yml
(thanks, @stephlocke, #465). -
Added a global option
bookdown.preview.cutoff
(defaults to 30) for the preview moderender_book(preview = TRUE)
: when the number of lines of a chapter is smaller or equal to this number, the full chapter is included in the preview; otherwise, only the section titles are extracted from the chapter for preview.
BUG FIXES
-
Various compatibility issues with Pandoc 2.0 (thanks, @maxheld83 #479, @jerrythomas #481, @Hantabaru #483, @dataopt #504, and #478).
-
split_by = 'section'
does not work completely correctly for the HTML output formats likegitbook
(thanks, @dataopt, #502).
CHANGES IN bookdown VERSION 0.5
NEW FEATURES
-
Added support for two more environments: Exercises and Solutions (thanks, @dshuman1, #423).
-
If the Rmd file merged from all chapters exists and you are sure it can be safely deleted, you can set an option
delete_merged_file
totrue
in_bookdown.yml
(thanks, @dmenne, #442).
BUG FIXES
-
The book cannot be properly rendered when the option
book_filename
in_bookdown.yml
contains a dot (thanks, @pinusm, #410). -
Proof and Remark blocks do not work well for EPUB output (thanks, @mamaciasq, #443).
-
When
split_by = 'section'
for thegitbook
output format, navigation buttons are missing on the page before the appendix (thanks, @dataopt, #409).
MINOR CHANGES
- The label prefix for Example blocks was changed from
ex:
toexm:
.