Skip to content

Commit 17d2bf7

Browse files
committed
latex_block() doesn't need the two arguments x and options
1 parent 97927a6 commit 17d2bf7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: rticles
22
Type: Package
33
Title: Article Formats for R Markdown
4-
Version: 0.15.2
4+
Version: 0.15.3
55
Authors@R: c(
66
person("JJ", "Allaire", role = "aut", email = "jj@rstudio.com"),
77
person("Yihui", "Xie", role = c("aut", "cre"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")),

R/jss_article.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jss_article <- function(
5353
}
5454

5555
# wrap the content in a raw latex block
56-
latex_block <- function(x, options, hook) {
56+
latex_block <- function(hook) {
5757
force(hook)
5858
function(x, options) {
5959
x2 <- hook(x, options)
@@ -64,7 +64,7 @@ latex_block <- function(x, options, hook) {
6464
# use knitr's sweave hooks, but wrap chunk output in raw latex blocks
6565
set_sweave_hooks <- function(base, ...) {
6666
hooks <- knitr::hooks_sweave(...)
67-
hooks[['chunk']] <- latex_block(x, options, hooks[['chunk']])
67+
hooks[['chunk']] <- latex_block(hooks[['chunk']])
6868
base$knitr$knit_hooks <- merge_list(base$knitr$knit_hooks, hooks)
6969
base
7070
}

0 commit comments

Comments
 (0)