Skip to content

Commit

Permalink
ieee_article: Fix lack of propagation of arguments to base formats. (#…
Browse files Browse the repository at this point in the history
…247)

* Fix propagation of arguments to base formats.

A symptom of the issue was the failure to include extra settings via `in_header` when using something like:
output:
  bookdown::pdf_book:
    base_format: rticles::ieee_article

* regenerated doc for ieee_article
  • Loading branch information
espinielli authored and yihui committed Sep 26, 2019
1 parent 4f2ded0 commit 0a20f63
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 5 additions & 3 deletions R/ieee_article.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#' \url{http://mirrors.rit.edu/CTAN/macros/latex/contrib/IEEEtran/IEEEtran_HOWTO.pdf}
#' @export
ieee_article <- function(
..., draftmode = c("final", "draft", "draftcls", "draftclsnofoot"),
draftmode = c("final", "draft", "draftcls", "draftclsnofoot"),
hyphenfixes = "op-tical net-works semi-conduc-tor",
IEEEspecialpaper = "",
with_ifpdf = FALSE,
Expand All @@ -48,7 +48,8 @@ ieee_article <- function(
with_dblfloatfix = FALSE,
keep_tex = TRUE,
pandoc_args = NULL,
md_extensions = c("-autolink_bare_uris")
md_extensions = c("-autolink_bare_uris"),
...
) {

args <- c()
Expand Down Expand Up @@ -83,6 +84,7 @@ ieee_article <- function(

pdf_document_format(
"ieee_article", pandoc_args = c(pandoc_arg_list, pandoc_args),
keep_tex = keep_tex, md_extensions = md_extensions
keep_tex = keep_tex, md_extensions = md_extensions,
...
)
}
8 changes: 4 additions & 4 deletions man/ieee_article.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0a20f63

Please sign in to comment.