Skip to content

Commit

Permalink
fix #185: disable syntax highlighting for rjournal_article()
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Oct 9, 2018
1 parent 0650a85 commit 30ad0a6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: rticles
Type: Package
Title: Article Formats for R Markdown
Version: 0.5.4
Version: 0.5.5
Authors@R: c(
person("JJ", "Allaire", role = "aut", email = "[email protected]"),
person("Yihui", "Xie", role = c("aut", "cre"), email = "[email protected]", comment = c(ORCID = "0000-0003-0645-5666")),
Expand Down
2 changes: 2 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ rticles 0.6 (unreleased)

- Supports syntax highlighting in the `ieee_article()` and `acm_article()` formats (thanks, @rainer-rq-koelle, #182).

- Disabled syntax highlighting for `rjournal_article()` (thanks, @eddelbuettel, #185).

rticles 0.5
---------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion R/rjournal_article.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ rjournal_article <- function(...) {

template <- find_resource("rjournal_article", "template.tex")

base <- inherit_pdf_document(..., template = template)
base <- inherit_pdf_document(..., template = template, highlight = NULL)

# Render will generate tex file, post-process hook generates appropriate
# RJwrapper.tex and use pandoc to build pdf from that
Expand Down

0 comments on commit 30ad0a6

Please sign in to comment.