Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/seananderson/solarized-knitr
- Owner: seananderson
- Created: 2014-02-07T19:59:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-02-13T23:29:06.000Z (over 10 years ago)
- Last Synced: 2024-06-11T17:20:33.448Z (5 months ago)
- Language: CSS
- Size: 316 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.