This template demonstrates some of the basic markdown you’ll need to know to create a JSS article with pagedown (Xie et al. 2021).

Code formatting

You should use Pandoc’s markdown but you also can use \(\LaTeX\) commands:

  • Java or \(\proglang{Java}\)
  • plyr, plyr or \(\pkg{plyr}\)
  • print("abc") or \(\code{print("abc")}\)

R code

Can be inserted in regular R Markdown blocks.

R> x <- 1:10
R> x
 [1]  1  2  3  4  5  6  7  8  9 10

Render the document

If you use the option self_contained: false (see line #22 of this Rmd file), don’t click on the Knit button in RStudio. Use instead the xaringan (Xie 2021) RStudio add-in Infinite Moon Reader.


Xie Y (2021). Xaringan: Presentation Ninja. Retrieved from

Xie Y, Lesur R, Thorne B, Tan X (2021). Pagedown: Paginate the Html Output of R Markdown with Css for Print. Retrieved from