Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Tint is not Tufte

NotificationsYou must be signed in to change notification settings

eddelbuettel/tint

Repository files navigation

CIPackage-LicenseCRANDependenciesDownloadsLast Commit

Motivation

The (html and pdf) styles provided by thetufte packagemake it very easy and convenient to create documents in the celebrated style ofEdward Tufte.

The clear layout, focused use of white space and unparalleled use of the margin for complementaryinformation, including graphs, offer a novel and very valuable resource for typesetting.

Yet at the same time, not everybody is a fan of the yellow tint, and the fonts. I had been lookingfor a while for an alternative, and came acrossenvisioned css by Jef Lippiat. It gets a few thingsvery right: use of the beautifulRoboto Condensed font along witha closer-to-white background. So Imixed this with the code framework provided by JJ and Yihui tomake it anRMarkdown template you can use just by installing thispackage. Among the small changes I made were the removal ofitalics in subheaders and the title.

Similarly, LaTeX styles exists and thetufte package supports both pdfhandouts and a book format. We first supported the pdf handoutoutput only, and added support for a pdf book format in release 0.1.0.

Example

HTML

A quick screenshot of the html variant is below:

and the full underlying document isavailable too. Its sourcesare included in the packages ashtml/skeleton.Rmd.

PDF

Another screenshot shows the pdf handout variant:

and its underlying sources are included aspdf/skeleton.Rmd.

Here is a screenshot of the book format (which was added with release 0.1.0), showing a chapter-opening page on the left:

PDF Font Variants

Since release 0.1.1 additional fonts can be specified in the YAML header. Using the following linesin the YAML header

latexfonts:   -package:newtxmathoptions:       -cmintegrals      -cmbraces  -package:ebgaramond-maths  -package:nimbusmononarrow

yields output as in the following screenshot of the first two vignette pages:

A second example is using

latexfonts:   -package:latooptions:default  -package:FiraMonolinkcolor:"0.3,0.3,0.6"

which also show thelinkcolor option resulting in

Status

The package is now onCRAN andsupports both pdf and html output for handouts, as well as pdf format forbook-length documents. This latter style can be used withrmarkdown orbookdown.

Usage

Install fromCRAN as any other package via

R> install.packages("tint")

and then use as a Markdown template via RStudio, or callrmarkdown::render() directly.We have also used the book-length format viabookdown::render_book().

Requirements

Beyond the R package dependencies, a workingpandoc binary is needed. RStudio installsits own copy, otherwise do what is needed on your OS (i.e., something likesudo apt-get install pandoc pandoc-citeproc).

The pdf mode requires a fairly complete LaTeX installation. On Debian/Ubuntu, thefollowing packages should provide a working set:

texlive-basetexlive-binariestexlive-fonts-extratexlive-fonts-recommendedtexlive-generic-recommendedtexlive-humanitiestexlive-latex-basetexlive-latex-extratexlive-latex-recommendedtexlive-pictures

See Also

Other RMarkdown Packages

  • binb: Binb is not Beamer: Stylish pdf Presentations from RMarkdown
  • linl: Linl is not Letter: LaTeX letters from RMarkdown
  • pinp: Pinp is not PNAS: Snazzy one-or two column short papers or vignettes

and theminm package installing all of them.

Sidenotes

Gwern Branwen has a wide-ranging overview ofsidenotes in web design.

Authors

Dirk Eddelbuettel and Jonathan Gilligan, borrowing heavily from JJ and Yihui intufte, Dave Liepman in the underlyingtufte-css, Jef Lippiat inenvisioned css and also relying on the workof theTufte-LaTeX authors.

License

GPL-3 for our parts and the code fromtufte,mostly MIT for what comes from Dave Liepman and Jef Lippiat.

About

Tint is not Tufte

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors6


[8]ページ先頭

©2009-2025 Movatter.jp