Skip to content

Commit a5de2aa

Browse files
committed
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)
1 parent af999b4 commit a5de2aa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ rticles 0.7
33

44
- Updated the template for PLOS to version 3.5 (thanks, @uvesten, #196).
55

6+
- No longer hardcode the LaTeX engine to `xelatex` in `rsos_article()` (thanks, @bensprung, #198).
7+
68
rticles 0.6
79
---------------------------------------------------------------------
810

R/rsos_article.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
rsos_article <- function(
1515
...,
1616
keep_tex = TRUE,
17+
latex_engine = 'xelatex',
1718
pandoc_args = NULL,
1819
includes = NULL,
1920
fig_crop = TRUE
@@ -27,7 +28,6 @@ rsos_article <- function(
2728
)
2829
args <- c(
2930
"--template", template,
30-
"--pdf-engine", "xelatex",
3131
pandoc_variable_arg("documentclass", "article"),
3232
pandoc_args,
3333
"--natbib",
@@ -99,7 +99,7 @@ rsos_article <- function(
9999
),
100100
pandoc = pandoc_options(
101101
to = "latex",
102-
latex_engine = "xelatex",
102+
latex_engine = latex_engine,
103103
args = args,
104104
keep_tex = keep_tex
105105
),

0 commit comments

Comments
 (0)