Skip to content

Commit

Permalink
fix #182: support syntax highlighting in ieee_article() and acm_artic…
Browse files Browse the repository at this point in the history
…le()
  • Loading branch information
yihui committed Aug 5, 2018
1 parent e7f2cc1 commit bc8a239
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
@@ -1,7 +1,7 @@
Package: rticles
Type: Package
Title: Article Formats for R Markdown
Version: 0.5.2
Version: 0.5.3
Authors@R: c(
person("JJ", "Allaire", role = "aut", email = "jj@rstudio.com"),
person("Yihui", "Xie", role = c("aut", "cre"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")),
Expand Down
2 changes: 2 additions & 0 deletions NEWS
Expand Up @@ -3,6 +3,8 @@ rticles 0.6 (unreleased)

- Added the template for the SAGE Journals (thanks, @oguzhanogreden, #181).

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

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

Expand Down
8 changes: 7 additions & 1 deletion inst/rmarkdown/templates/acm_article/resources/template.tex
Expand Up @@ -56,8 +56,14 @@
\conferenceinfo{} {}
\CopyrightYear{}
\crdata{}

% Pandoc syntax highlighting
$if(highlighting-macros)$
$highlighting-macros$
$endif$

$for(header-includes)$
$header-includes$
$header-includes$
$endfor$

\begin{document}
Expand Down
6 changes: 6 additions & 0 deletions inst/rmarkdown/templates/ieee_article/resources/template.tex
Expand Up @@ -388,6 +388,12 @@
$else$
\setcounter{secnumdepth}{0}
$endif$

% Pandoc syntax highlighting
$if(highlighting-macros)$
$highlighting-macros$
$endif$

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

0 comments on commit bc8a239

Please sign in to comment.