- Notifications
You must be signed in to change notification settings - Fork25
eddelbuettel/tint
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
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.
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.
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:
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
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.
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().
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- 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.
Gwern Branwen has a wide-ranging overview ofsidenotes in web design.
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.
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
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors6
Uh oh!
There was an error while loading.Please reload this page.




