Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/seananderson/solarized-knitr

Experimental Solarized colour themes for knitr
https://github.com/seananderson/solarized-knitr

Last synced: 12 days ago
JSON representation

Experimental Solarized colour themes for knitr

Awesome Lists containing this project

README

        

# Solarized knitr style files

The built-in [knitr](http://yihui.name/knitr) [Solarized](http://ethanschoonover.com/solarized) style files are quite basic. I've been experimenting with improved versions.

This repository has my versions of the light and dark Solarized theme files:

![Solarized light](solarized-light.png)

![Solarized light](solarized-dark.png)

To use them yourself, download the `.css` files, place them in your working directory, and add a code chunk at the beginning of your knitr TeX document like this:

```
<>=
library("knitr")
opts_chunk$set(dev = 'pdf')
opts_knit$set(out.format = "latex")
thm <- knit_theme$get("solarized-dark.css")
knit_theme$set(thm)
@
```

See the files `solarized-dark.Rnw` and `solarized-light.Rnw` for example documents testing the two `.css` files. See the output files `solarized-dark.pdf` and `solarized-light.pdf` for the output.

For more information on the Solarized theme itself, see the main website:

and the main GitHub repository:

Note that you'll need a recent version of knitr (>= 1.5), since the style names were changed recently.