All Projects → eddelbuettel → Tint

eddelbuettel / Tint

Tint is not Tufte

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Tint

Pinp
Pinp Is Not PNAS -- Two-Column PDF Template
Stars: ✭ 134 (-40.71%)
Mutual labels:  markdown, r-package, cran
Mlr
Machine Learning in R
Stars: ✭ 1,542 (+582.3%)
Mutual labels:  r-package, cran
Rinside
Seamless embedding of R in C++ programs
Stars: ✭ 112 (-50.44%)
Mutual labels:  r-package, cran
Rblpapi
R package interfacing the Bloomberg API from https://www.bloomberglabs.com/api/
Stars: ✭ 133 (-41.15%)
Mutual labels:  r-package, cran
Linl
Linl Is Not Letter -- Markdown-based LaTeX Letter Template
Stars: ✭ 84 (-62.83%)
Mutual labels:  markdown, cran
Trackmd
Tools for tracking changes in Markdown format within RStudio
Stars: ✭ 89 (-60.62%)
Mutual labels:  markdown, r-package
Drat
Drat R Archive Template
Stars: ✭ 127 (-43.81%)
Mutual labels:  r-package, cran
Configr
Implements the JSON, INI, YAML and TOML parser, for R setting and writing of configuration file.
Stars: ✭ 38 (-83.19%)
Mutual labels:  r-package, cran
Osrm
Shortest Paths and Travel Time from OpenStreetMap with R
Stars: ✭ 160 (-29.2%)
Mutual labels:  r-package, cran
Webservices
CRAN WebTechnologies Task View
Stars: ✭ 160 (-29.2%)
Mutual labels:  r-package, cran
Pacman
A package management tools for R
Stars: ✭ 220 (-2.65%)
Mutual labels:  r-package, cran
Markovchain
Easy Handling Discrete Time Markov Chains
Stars: ✭ 80 (-64.6%)
Mutual labels:  r-package, cran
Pkgsearch
Search R packages on CRAN
Stars: ✭ 73 (-67.7%)
Mutual labels:  r-package, cran
Wooldridge
The official R data package for "Introductory Econometrics: A Modern Approach". A vignette contains example models from each chapter.
Stars: ✭ 90 (-60.18%)
Mutual labels:  r-package, cran
Nanotime
Nanosecond Resolution Time Functionality for R
Stars: ✭ 39 (-82.74%)
Mutual labels:  r-package, cran
Minicran
R package to create internally consistent, mini version of CRAN
Stars: ✭ 123 (-45.58%)
Mutual labels:  r-package, cran
Dataexplorer
Automate Data Exploration and Treatment
Stars: ✭ 362 (+60.18%)
Mutual labels:  r-package, cran
Rcpp
Seamless R and C++ Integration
Stars: ✭ 572 (+153.1%)
Mutual labels:  r-package, cran
Arsenal
An Arsenal of 'R' Functions for Large-Scale Statistical Summaries
Stars: ✭ 171 (-24.34%)
Mutual labels:  r-package, cran
Simmer
Discrete-Event Simulation for R
Stars: ✭ 170 (-24.78%)
Mutual labels:  r-package, cran

tint: Tint is not Tufte

Build Status CI Package-License CRAN Dependencies Downloads Last Commit

Motivation

The (html and pdf) styles provided by the tufte package make it very easy and convenient to create documents in the celebrated style of Edward Tufte.

The clear layout, focused use of white space and unparalleled use of the margin for complementary information, 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 looking for a while for an alternative, and came across envisioned css by Jef Lippiat. It gets a few things very right: use of the beautiful Roboto Condensed font along with a closer-to-white background. So I mixed this with the code framework provided by JJ and Yihui to make it an RMarkdown template you can use just by installing this package. Among the small changes I made were the removal of italics in subheaders and the title.

Similarly, LaTeX styles exists and the tufte package supports both pdf handouts and a book format. We first supported the pdf handout output 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 is available too. Its sources are included in the packages as html/skeleton.Rmd.

PDF

Another screenshot shows the pdf handout variant:

and its underlying sources are included as pdf/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 lines in the YAML header

latexfonts: 
  - package: newtxmath
    options: 
      - 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: lato
    options: default
  - package: FiraMono
linkcolor: "0.3,0.3,0.6"

which also show the linkcolor option resulting in

Status

The package is now on CRAN and supports both pdf and html output for handouts, as well as pdf format for book-length documents. This latter style can be used with rmarkdown or bookdown.

Usage

Install from CRAN as any other package via

R> install.packages("tint")

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

Requirements

Beyond the R package dependencies, a working pandoc binary is needed. RStudio installs its own copy, otherwise do what is needed on your OS (i.e., something like sudo apt-get install pandoc pandoc-citeproc).

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

texlive-base
texlive-binaries
texlive-fonts-extra
texlive-fonts-recommended
texlive-generic-recommended
texlive-humanities
texlive-latex-base
texlive-latex-extra
texlive-latex-recommended
texlive-pictures

See Also

  • 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 the minm package installing all of them.

Authors

Dirk Eddelbuettel and Jonathan Gilligan, borrowing heavily from JJ and Yihui in tufte, Dave Liepman in the underlying tufte-css, Jef Lippiat in envisioned css and also relying on the work of the Tufte-LaTeX authors.

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].