Create a JDS article draft using the specified LaTeX class file. This function is a simplified version of `rmarkdown::draft()` for creating a JDS article draft only.
draft(file, cls = c("jdsart", "jds"))
A character string for the file name of the draft. Different
with rmarkdown::draft()
, the suffix ".Rmd"
will not be
added if it is not specified.
The LaTeX class name. The available choices are jdsart
for
the latest class developed by vtex, or jds
for the deprecated
class.
The file name of the new document (invisibly).
if (interactive() && requireNamespace("rmarkdown", quietly = TRUE)) {
## draft from a sample R markdown file
jds.rmd::draft("jds-sample.Rmd")
## produce pdf with the tex source kept for submission
rmarkdown::render("jds-sample.Rmd")
}