diff --git a/DESCRIPTION b/DESCRIPTION index fd82981f6..3ec730529 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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. diff --git a/NEWS.md b/NEWS.md index 022178e1b..225065df2 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,7 +1,7 @@ rticles 0.10 --------------------------------------------------------------------- - +- Support syntax highlighting in the `peerj_article()` format (@zkamvar, #238). rticles 0.9 --------------------------------------------------------------------- diff --git a/inst/rmarkdown/templates/peerj_article/resources/template.tex b/inst/rmarkdown/templates/peerj_article/resources/template.tex index a3bbdcee2..c9375ccc1 100644 --- a/inst/rmarkdown/templates/peerj_article/resources/template.tex +++ b/inst/rmarkdown/templates/peerj_article/resources/template.tex @@ -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$