From 1d4d5197343de99d712e190d6ea84e1db68a925c Mon Sep 17 00:00:00 2001 From: Vincent Arel-Bundock Date: Thu, 15 Jul 2021 11:38:56 -0400 Subject: [PATCH 1/2] jss ShadedRegion macros --- inst/rmarkdown/templates/jss/resources/template.tex | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/inst/rmarkdown/templates/jss/resources/template.tex b/inst/rmarkdown/templates/jss/resources/template.tex index eb26da040..69f745131 100644 --- a/inst/rmarkdown/templates/jss/resources/template.tex +++ b/inst/rmarkdown/templates/jss/resources/template.tex @@ -22,6 +22,7 @@ \Shorttitle{$title.short$} $endif$ + \Abstract{ $abstract$ } @@ -92,6 +93,10 @@ $header-includes$ $endfor$ +$if(highlighting-macros)$ +$highlighting-macros$ +$endif$ + $preamble$ \begin{document} From 03b2a5ec81bd27fdacd77d79eabd39ed22ff6bc9 Mon Sep 17 00:00:00 2001 From: christophe dervieux Date: Mon, 16 Aug 2021 14:56:01 +0200 Subject: [PATCH 2/2] Add missing component for Pandoc's template in JSS article --- inst/rmarkdown/templates/jss/resources/template.tex | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/inst/rmarkdown/templates/jss/resources/template.tex b/inst/rmarkdown/templates/jss/resources/template.tex index 69f745131..d2af69891 100644 --- a/inst/rmarkdown/templates/jss/resources/template.tex +++ b/inst/rmarkdown/templates/jss/resources/template.tex @@ -58,6 +58,11 @@ $endfor$ } +% Pandoc syntax highlighting +$if(highlighting-macros)$ +$highlighting-macros$ +$endif$ + % Pandoc citation processing $if(csl-refs)$ \newlength{\csllabelwidth} @@ -88,15 +93,10 @@ \newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1} $endif$ -% Pandoc header $for(header-includes)$ $header-includes$ $endfor$ -$if(highlighting-macros)$ -$highlighting-macros$ -$endif$ - $preamble$ \begin{document}