Tufte's Styles for R Markdown Documents

Provides R Markdown output formats to use Tufte styles for PDF and HTML output.


Build Status Downloads from the RStudio CRAN mirror

This R package provides a few R Markdown output formats that use the Tufte style. See http://rstudio.github.io/tufte for a comprehensive example. To install the development version of this package from Github, you may use devtools::install_github('rstudio/tufte'). You can also install it from CRAN (install.packages('tufte')).

News

CHANGES IN tufte VERSION 0.3

NEW FEATURES

  • It is possible to select a subset of some features of the default Tufte style (tufte-css) via the tufte_features argument of tufte_html():

    • Disable the et-book fonts.
    • Remove the default light-yellow background color.
    • Use italics for document headers or not.
  • A new variant of the Tufte style, envisioned, is added to tufte_html(). You can use tufte_html(tufte_variant = 'envisioned') to enable this style. The major difference with the default Tufte style is: the font family is Roboto 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_references argument of tufte_html() (thanks, @stefanfritsch, #49).

BUG FIXES

  • When link-citations: no in YAML, citations should not be moved into the page margin in the HTML output (http://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).

CHANGES IN tufte VERSION 0.2

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: yes in 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 installed

  • the number_sections option did not work for LaTeX output

CHANGES IN tufte VERSION 0.1

NEW FEATURES

  • added three output formats for R Markdown: tufte_html(), tufte_handout(), and tufte_book()

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("tufte")

0.3 by Yihui Xie, 4 months ago


https://github.com/rstudio/tufte


Report a bug at https://github.com/rstudio/tufte/issues


Browse source code at https://github.com/cran/tufte


Authors: Yihui Xie <https://orcid.org/0000-0003-0645-5666> [aut, cre], JJ Allaire [aut], Andrzej Oles [ctb], Dave Liepmann [ctb] (Tufte CSS in inst/rmarkdown/templates/tufte_html/resources), RStudio, Inc. [cph]


Documentation:   PDF Manual  


GPL-3 license


Imports htmltools, xfun, knitr, rmarkdown


Suggested by CHNOSZ, bookdown, recmap, rmarkdown.


See at CRAN