Skip to content

Commit 8d56fc6

Browse files
zkamvaryihui
authored andcommitted
this allows syntax highlighting for PeerJ (#238)
* this allows syntax highlighting for PeerJ see #182 (comment) * add NEWS * fix parens error in DESCRIPTION * Update NEWS.md
1 parent 9e0d889 commit 8d56fc6

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ Authors@R: c(
3333
person("Daniel", "Nüst", role = c("aut", "cph"), email = "daniel.nuest@uni-muenster.de", comment = c(ORCID = "0000-0002-0024-5046")),
3434
person("Petter", "Uvesten", role = c("aut", "cph"), email = "petter.uvesten.7362@student.lu.se"),
3535
person("Elio", "Campitelli", role = c("aut", "cph"), email = "elio.campitelli@cima.fcen.uba.ar", comment = c(ORCID = "0000-0002-7742-9230")),
36-
person("John", "Muschelli", role = c("aut", "cph"), email = "muschellij2@gmail.com", comment = c(ORCID = "0000-0001-6469-1750"))
36+
person("John", "Muschelli", role = c("aut", "cph"), email = "muschellij2@gmail.com", comment = c(ORCID = "0000-0001-6469-1750")),
37+
person("Zhian N.", "Kamvar", role = c("aut", "cph"), email = "zkamvar@gmail.com", comment = c(ORCID = "0000-0003-1458-7108"))
3738
)
3839
Description: A suite of custom R Markdown formats and templates for
3940
authoring journal articles and conference submissions.

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
rticles 0.10
22
---------------------------------------------------------------------
33

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

66
rticles 0.9
77
---------------------------------------------------------------------

inst/rmarkdown/templates/peerj_article/resources/template.tex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@
2424
\usepackage{longtable}
2525

2626

27+
% Pandoc syntax highlighting
28+
% See https://github.com/rstudio/rticles/issues/182
29+
$if(highlighting-macros)$
30+
$highlighting-macros$
31+
$endif$
2732

33+
% Pandoc Header
2834
$for(header-includes)$
2935
$header-includes$
3036
$endfor$

0 commit comments

Comments
 (0)