Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion R/jss_article.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jss_article <- function(..., keep_tex = TRUE, citation_package = 'natbib') {
}
hook_input <- function(x, options) {
if (options$prompt && length(x)) {
x <- gsub("\\n", paste0("\n", "R+ "), x)
x <- gsub("\\n", paste0("\n", "+ "), x)
x <- paste0("R> ", x)
}
paste0(c('\n\\begin{CodeInput}', x, '\\end{CodeInput}', ''),
Expand Down
5 changes: 3 additions & 2 deletions inst/rmarkdown/templates/jss_article/skeleton/skeleton.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ This template demonstrates some of the basic latex you'll need to know to create

## Code formatting

Don't use markdown, instead use the more precise latex commands:
In general, don't use Markdown, but use the more precise LaTeX commands instead:

* \proglang{Java}
* \pkg{plyr}
* \code{print("abc")}

One exception is inline code, which can be written inside a pair of backticks (i.e., using the Markdown syntax).

# R code

Expand Down