Skip to content

Commit

Permalink
this allows syntax highlighting for PeerJ (#238)
Browse files Browse the repository at this point in the history
* this allows syntax highlighting for PeerJ

see #182 (comment)

* add NEWS

* fix parens error in DESCRIPTION

* Update NEWS.md
  • Loading branch information
zkamvar authored and yihui committed Jul 14, 2019
1 parent 9e0d889 commit 8d56fc6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ Authors@R: c(
person("Daniel", "Nüst", role = c("aut", "cph"), email = "daniel.nuest@uni-muenster.de", comment = c(ORCID = "0000-0002-0024-5046")),
person("Petter", "Uvesten", role = c("aut", "cph"), email = "petter.uvesten.7362@student.lu.se"),
person("Elio", "Campitelli", role = c("aut", "cph"), email = "elio.campitelli@cima.fcen.uba.ar", comment = c(ORCID = "0000-0002-7742-9230")),
person("John", "Muschelli", role = c("aut", "cph"), email = "muschellij2@gmail.com", comment = c(ORCID = "0000-0001-6469-1750"))
person("John", "Muschelli", role = c("aut", "cph"), email = "muschellij2@gmail.com", comment = c(ORCID = "0000-0001-6469-1750")),
person("Zhian N.", "Kamvar", role = c("aut", "cph"), email = "zkamvar@gmail.com", comment = c(ORCID = "0000-0003-1458-7108"))
)
Description: A suite of custom R Markdown formats and templates for
authoring journal articles and conference submissions.
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
rticles 0.10
---------------------------------------------------------------------


- Support syntax highlighting in the `peerj_article()` format (@zkamvar, #238).

rticles 0.9
---------------------------------------------------------------------
Expand Down
6 changes: 6 additions & 0 deletions inst/rmarkdown/templates/peerj_article/resources/template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@
\usepackage{longtable}


% Pandoc syntax highlighting
% See https://github.com/rstudio/rticles/issues/182
$if(highlighting-macros)$
$highlighting-macros$
$endif$

% Pandoc Header
$for(header-includes)$
$header-includes$
$endfor$
Expand Down

0 comments on commit 8d56fc6

Please sign in to comment.