Skip to content

Commit 22debeb

Browse files
Add highlighting macros for Pandoc in JSS template (#422)
Co-authored-by: christophe dervieux <christophe.dervieux@gmail.com>
1 parent f171c8f commit 22debeb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
\Shorttitle{$title.short$}
2323
$endif$
2424

25+
2526
\Abstract{
2627
$abstract$
2728
}
@@ -57,6 +58,11 @@
5758
$endfor$
5859
}
5960

61+
% Pandoc syntax highlighting
62+
$if(highlighting-macros)$
63+
$highlighting-macros$
64+
$endif$
65+
6066
% Pandoc citation processing
6167
$if(csl-refs)$
6268
\newlength{\csllabelwidth}
@@ -87,7 +93,6 @@
8793
\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
8894
$endif$
8995

90-
% Pandoc header
9196
$for(header-includes)$
9297
$header-includes$
9398
$endfor$

0 commit comments

Comments
 (0)