mdpi_article.R 833 B

123456789101112131415161718192021222324252627
  1. #' MDPI journal format.
  2. #'
  3. #' Format for creating submissions to Multidisciplinary Digital Publishing
  4. #' Institute (MDPI) journals. Adapted from
  5. #' \href{http://www.mdpi.com/authors/latex}{http://www.mdpi.com/authors/latex}.
  6. #'
  7. #' @inheritParams rmarkdown::pdf_document
  8. #' @param ... Additional arguments to \code{rmarkdown::pdf_document}
  9. #'
  10. #' @return R Markdown output format to pass to
  11. #' \code{\link[rmarkdown:render]{render}}
  12. #'
  13. #' @examples
  14. #'
  15. #' \dontrun{
  16. #' library(rmarkdown)
  17. #' draft("MyArticle.Rmd", template = "mdpi_article", package = "rticles")
  18. #' }
  19. #'
  20. #' @export
  21. mdpi_article <- function(..., keep_tex = TRUE) {
  22. inherit_pdf_document(...,
  23. keep_tex = keep_tex,
  24. template = find_resource("mdpi_article", "template.tex"),
  25. citation_package = "natbib")
  26. }