tint (version 0.0.1.2)

tintHtml: Tint Is Not Tufte -- A Tufte-Inspired HTML Format

Description

A templates for creating handouts according to the style of Edward R. Tufte and Richard Feynman, but with an updated font choice.

Usage

tintHtml(...)
tint(...)
newthought(text)
margin_note(text, icon = "⊕")
quote_footer(text)
sans_serif(text)

Arguments

...
Other arguments to be passed to tint (note you cannot use the theme argument in tint; this arguments has been set internally)
text
A character string to be presented as a “new thought” (using small caps), or a margin note, or a footer of a quote
icon
A character string to indicate there is a hidden margin note when the page width is too narrow (by default it is a circled plus sign)

Details

tint provides the HTML format based on the Tufte CSS https://edwardtufte.github.io/tufte-css/ with fonts set according to http://nogginfuel.com/envisioned-css/

newthought() can be used in inline R expressions in R Markdown (e.g. `r newthought(Some text)`), and it works for both HTML (text) and PDF (\newthought{text}) output.

margin_note() can be used in inline R expressions to write a margin note (like a sidenote but not numbered).

quote_footer() formats text as the footer of a quote. It puts text in

for HTML output, and after \hfill for LaTeX output (to right-align text).

sans_serif() applies sans-serif fonts to text.

References

See http://rstudio.github.io/tufte for an example.

Examples

Run this code
## Not run: library(tint)

newthought('In this section')

Run the code above in your browser using DataLab