-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xelatex in beamer yaml #4
Comments
What error are you getting? Is it a LaTeX error or a Pandoc error or an R error? |
Using the minimal example, and changing only the latex_engine...Upon knitting, it throws the following latex error:
|
I encountered this in the morning when I saw your issue and ran the reprex myself. I think those errors are LaTeX's way of saying, given what's fed to it (e.g. my template), if you're using |
Yup, that was it, thank you. Apparently "trillium web" wasn't installed, but reprex works smooth now. Thanks again for the work. |
For whatever reason, replacing the latex_engine: pdflatex with the xelatex option recommended in the template makes it so I can't knit the presentation.
However, if I change the yaml to the following structure (moving latex_engine out from under the output), it knits fine and with the appropriate font changes (I've commented out the original latex_engine call):
output:
stevetemplates::beamer:
keep_tex: TRUE
#latex_engine: pdflatex # use xelatex here instead! I recommend it, but this is minimal reprex
dev: cairo_pdf # I typically comment this out if latex_engine: pdflatex
slide_level: 3 # I prefer this, but I won't force it on you.
fig_width: 7
fig_height: 6
#toc: false
latex_engine: xelatex
title: The Effect of Body-Worn Camera Activation and Review Policies on Perceived Fairness
subtitle: Technology, Policy, and Organizational Justice
author: Ian T. Adams
date: "
r paste0('JOB TALK LOCATION, ',format(Sys.time(), '%B %d, %Y'))
"institute: University of Utah
#titlegraphic: "img/public-affairs.png"
#scaletg: .5 # Optional, proportional (0, 1) to paper width. Defaults to .3
fontsize: 10pt
make149: TRUE
mainfont: "Open Sans" # Try out some font options if xelatex
titlefont: "Titillium Web" # Try out some font options if xelatex
#specify color as six-digit RGB (no pound sign)
primarycolor: "CC0000"
secondarycolor: "808080"
Not sure if this is a "me" problem, or if there's something else going on, but thought I'd drop a note on it.
The text was updated successfully, but these errors were encountered: