Skip to content

Commit

Permalink
fix #198: don't hard-code the latex_engine argument, and don't use th…
Browse files Browse the repository at this point in the history
…e hard-coded command-line argument --pdf-engine since it is only available for Pandoc 2.x (#135)
  • Loading branch information
yihui committed Nov 27, 2018
1 parent af999b4 commit a5de2aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -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
---------------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions R/rsos_article.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
rsos_article <- function(
...,
keep_tex = TRUE,
latex_engine = 'xelatex',
pandoc_args = NULL,
includes = NULL,
fig_crop = TRUE
Expand All @@ -27,7 +28,6 @@ rsos_article <- function(
)
args <- c(
"--template", template,
"--pdf-engine", "xelatex",
pandoc_variable_arg("documentclass", "article"),
pandoc_args,
"--natbib",
Expand Down Expand Up @@ -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
),
Expand Down

0 comments on commit a5de2aa

Please sign in to comment.