-
-
Notifications
You must be signed in to change notification settings - Fork 878
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
support xelatex in knit2pdf() #131
Comments
It is as simple as setting |
Cool. I will test and update it. Thanks! |
Here is a quick cut on a modified version of knit2pdf_v2 <- function (input, compiler = 'pdftex') {
out = knit(input)
owd = setwd(dirname(out))
on.exit(setwd(owd))
old_compiler = Sys.getenv('PDFLATEX')
on.exit(Sys.setenv(PDFLATEX = old_compiler))
if (compiler = 'xelatex'){
Sys.setenv(PDFLATEX = 'xelatex')
}
texi2pdf(basename(out), clean = TRUE)
} |
I tested the function and it works. We could make it more flexible by allowing for a |
I just noticed that the latest build of |
Yes, sure. Thanks a lot! |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
maybe
knit2pdf(input, output, compiler)
or take a closer look attexi2pdf
to see if it supportsxelatex
by thetexi2dvi
argument.The text was updated successfully, but these errors were encountered: