Skip to content

Instantly share code, notes, and snippets.

View minimaxir's full-sized avatar
🤔
<script>alert('hi')</script>

Max Woolf minimaxir

🤔
<script>alert('hi')</script>
View GitHub Profile
@yihui
yihui / knitr-cairo.Rnw
Created May 27, 2012 16:27
Custom graphics devices in knitr
\documentclass{article}
\begin{document}
This demo shows you how to use the Palatino font in the Cairo PDF device.
<<setup>>=
my_cairo = function(file, width, height) {
cairo_pdf(file, width, height, family = 'Palatino')
}