plos_article.R 910 B

12345678910111213141516171819202122232425262728
  1. #' PLOS journal format.
  2. #'
  3. #' Format for creating submissions to PLOS journals. Adapted from
  4. #' \href{http://journals.plos.org/ploscompbiol/s/latex}{http://journals.plos.org/ploscompbiol/s/latex}.
  5. #'
  6. #' @inheritParams rmarkdown::pdf_document
  7. #' @param ... Additional arguments to \code{rmarkdown::pdf_document}
  8. #'
  9. #' @return R Markdown output format to pass to
  10. #' \code{\link[rmarkdown:render]{render}}
  11. #'
  12. #' @examples
  13. #'
  14. #' \dontrun{
  15. #' library(rmarkdown)
  16. #' draft("MyArticle.Rmd", template = "plos_article", package = "rticles")
  17. #' }
  18. #'
  19. #' @export
  20. plos_article <- function(...,
  21. keep_tex = TRUE,
  22. md_extensions = c("-autolink_bare_uris")) {
  23. inherit_pdf_document(...,
  24. template = find_resource("plos_article", "template.tex"),
  25. keep_tex = keep_tex,
  26. md_extensions = md_extensions)
  27. }