Skip to content

Commit

Permalink
--latex-engine has been renamed to --latex-engine in Pandoc 2. (#1120)
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Oct 24, 2017
1 parent b546726 commit abd0319
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/pandoc.R
Original file line number Diff line number Diff line change
@@ -250,7 +250,8 @@ pandoc_highlight_args <- function(highlight, default = "tango") {
#' @rdname pandoc_args
#' @export
pandoc_latex_engine_args <- function(latex_engine) {
c("--latex-engine", find_latex_engine(latex_engine))
c(if (pandoc_available('2.0')) "--pdf-engine" else "--latex-engine",
find_latex_engine(latex_engine))
}

find_latex_engine <- function(latex_engine) {

0 comments on commit abd0319

Please sign in to comment.