From a5de2aa6d34460d27722ade9cfb7ee2b4155d0ea Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Tue, 27 Nov 2018 13:59:04 -0600 Subject: [PATCH] fix #198: don't hard-code the latex_engine argument, and don't use the hard-coded command-line argument --pdf-engine since it is only available for Pandoc 2.x (#135) --- NEWS | 2 ++ R/rsos_article.R | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 3f51daff8..0de0803b4 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,8 @@ rticles 0.7 - Updated the template for PLOS to version 3.5 (thanks, @uvesten, #196). +- No longer hardcode the LaTeX engine to `xelatex` in `rsos_article()` (thanks, @bensprung, #198). + rticles 0.6 --------------------------------------------------------------------- diff --git a/R/rsos_article.R b/R/rsos_article.R index af7a847d6..41c9ba84d 100644 --- a/R/rsos_article.R +++ b/R/rsos_article.R @@ -14,6 +14,7 @@ rsos_article <- function( ..., keep_tex = TRUE, + latex_engine = 'xelatex', pandoc_args = NULL, includes = NULL, fig_crop = TRUE @@ -27,7 +28,6 @@ rsos_article <- function( ) args <- c( "--template", template, - "--pdf-engine", "xelatex", pandoc_variable_arg("documentclass", "article"), pandoc_args, "--natbib", @@ -99,7 +99,7 @@ rsos_article <- function( ), pandoc = pandoc_options( to = "latex", - latex_engine = "xelatex", + latex_engine = latex_engine, args = args, keep_tex = keep_tex ),