Changelog
Source:NEWS.md
tufte 0.15.0
CRAN release: 2026-05-21
New features
tufte_handout()andtufte_book()gain amargin_fig_posargument for controlling the vertical offset of margin figures globally. Set in YAML (margin_fig_pos: "0cm"), viaknitr::opts_chunk$set(), or per-chunk. Per-chunkfig.posstill overrides it, and a globalopts_chunk$set(fig.pos = ...)(intended for regular figures) no longer leaks onto margin chunks (#62).New
tufte_handout2(),tufte_book2(), andtufte_html2()wrap the corresponding bookdown output formats, enabling text references(ref:label)in figure and table captions and cross-references. Markdown links infig.capare now converted to LaTeX. Requires the bookdown package (suggested) (#60).
Minor improvements and fixes
fig.margin = TRUE(andfig.fullwidth = TRUE) are now honoured in HTML output whenfig.alignis set. The margin/fullwidth wrapper was previously dropped because the figure hook missed thestyleattribute added by knitr (#54).The obsolete
usenamesoption is no longer passed to thexcolorLaTeX package, suppressing a warning on TeX Live 2022+ (#127).quote_footer()now renders an em-dash consistently across tufte and non-tufte outputs when the caller writes a leading"---". For non-tufte HTML the leading"---"is stripped to avoid doubling with Bootstrap’s::beforeem-dash; for tufte HTML an em-dash glyph is inserted in the markup; for LaTeX the leading"---"is preserved so pandoc’s smart-punctuation extension converts it (#73).quote_footer()now right-aligns the footer in non-tufte HTML output (e.g.html_document, includingbslibBootstrap 4 and 5 themes) and tags it withclass="blockquote-footer"so Bootstrap 4/5 class-based styling applies.quote_footer()no longer warns when called outside a pandoc context, so it can be used unconditionally in inline R expressions (#73).tufte_handout()andtufte_book()no longer place pandoc’s\citepand\citetnatbib citations inline whencitation_package: natbibis used. The patchedtufte-common.defroutes both through the margin sidenote machinery;\citetkeeps its textual “Author (Year)” form inline while adding the full reference to the margin. Suppress-author citations ([-@key], emitted as\citeyearpar) are intentionally left inline (thanks, @jlorieau, #48).tufte_handout()andtufte_book()usefig_crop = "auto"by default (matchingrmarkdown::pdf_document()), avoiding a spurious warning aboutpdfcropwhen crop tools are not installed (thanks, @sandhya9215, #124).tufte_html()no longer dropsnocitereferences whenlink-citations: yes. References without in-text citations are preserved in the bibliography section at the bottom of the document (#35).
tufte 0.11
CRAN release: 2021-12-19
Fix an issue with Pandoc’s table support in
tufte_handout()(thanks, @chrisjake, #104).Fix an issue with Pandoc’s citation processing by updating latex template (thanks, @rmcd1024, #106).
tufte 0.10
CRAN release: 2021-05-17
- Fix an issue with the wrong references placed in margins when
link-citations: yesis used with Pandoc 2.11+ (#92)
tufte 0.9
CRAN release: 2020-12-02
Add the missing
CSLReferencesenvironment in the template required by Pandoc 2.11+ and its new citeproc (#89)tufte_handout()now uses defaulttidyknitr option, which isFALSE. It can be changed withknitr::opts_chunk$set(tidy = TRUE)and requires in that case the formatR package.
tufte 0.8
CRAN release: 2020-10-30
References are now moved in the margin correctly with Pandoc 2.11 (#86).
Add a
runningheadervariable in the template fortufte_handout()andtufte_book()to have a different running header than the title if provided. (#82)
tufte 0.7
CRAN release: 2020-09-25
- Add the
cslreferencesenvironment in the template (thanks, @jonathan-g, #80).
tufte 0.6
CRAN release: 2020-05-08
NEW FEATURES
- Arbitrary full width content is supported now; see https://rstudio.github.io/tufte/#arbitrary-full-width-content for the syntax (thanks, @mlovelace @josiekre, #33).
BUG FIXES
Footnotes no longer work with Pandoc >= 2.7 (thanks, @grimbough, #76).
Margin references do not work with Pandoc 2.9.2.1 (thanks, @Selbosh, #78).
tufte 0.3
CRAN release: 2018-01-24
NEW FEATURES
-
It is possible to select a subset of some features of the default Tufte style (
tufte-css) via thetufte_featuresargument oftufte_html():- Disable the
et-bookfonts. - Remove the default light-yellow background color.
- Use italics for document headers or not.
- Disable the
A new variant of the Tufte style,
envisioned, is added totufte_html(). You can usetufte_html(tufte_variant = 'envisioned')to enable this style. The major difference with the default Tufte style is: the font family isRoboto Condensed, the background color is#fefefe, and the text color is#222(thanks, @eddelbuettel, #21).You can choose whether references from citations should be placed in the document margins or at the bottom using the
margin_referencesargument oftufte_html()(thanks, @stefanfritsch, #49).
BUG FIXES
When
link-citations: noin YAML, citations should not be moved into the page margin in the HTML output (https://stackoverflow.com/q/39053097/559676).Horizontal lines could bisect margin notes and footnotes (thanks, @ajdamico, #32).
Compatibility issues with Pandoc 2.0 (thanks, @peetCreative, #51).
tufte 0.2
CRAN release: 2016-02-07
NEW FEATURES
- it is possible to generate PDF output using the ctex package for R Markdown documents in Chinese; you just need to specify
ctex: yesin the YAML metadata
BUG FIXES
the default LaTeX template for
tufte_handout()may not work when the LaTeX package soul is installed, or ifxetex/xltxtra are not installedthe
number_sectionsoption did not work for LaTeX output
tufte 0.1
CRAN release: 2016-01-20
NEW FEATURES
- added three output formats for R Markdown:
tufte_html(),tufte_handout(), andtufte_book()