Skip to content

Instantly share code, notes, and snippets.

@sinarueeger
Created October 3, 2018 07:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sinarueeger/c4497e8b0a3c8d06054350d74f5d0984 to your computer and use it in GitHub Desktop.
Save sinarueeger/c4497e8b0a3c8d06054350d74f5d0984 to your computer and use it in GitHub Desktop.
skimr works with xelatex, but icon package won't
---
title: "icons"
output:
pdf_document:
toc: true
latex_engine: pdflatex
dev: cairo_pdf
monofont: Menlo
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
* Example to make `skimr` work in PDFs [here](https://gist.githubusercontent.com/coolbutuseless/23f424553ce2bab899555ecad2b51e52/raw/b4b7e60c0b4dd870d7c07cfde0e4c28358de9a83/unicode.Rmd).
* In the same document where I have `skimr::skim()` I also had `icon::fa_arrow_right()` (`r icon::fa_arrow_right()`).
* But `icon::fa_` functions will only work if `latex_engine: pdflatex`, not when `latex_engine: xelatex`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment