mnras_article.R 1.1 KB

123456789101112131415161718192021222324252627282930
  1. #' Monthly Notices of the Royal Astronomical Society (MNRAS) Journal format.
  2. #'
  3. #' Format for creating an Monthly Notices of Royal Astronomical Society (MNRAS) Journal articles.
  4. #' Adapted from
  5. #' \href{https://www.ras.org.uk/news-and-press/2641-new-version-of-the-mnras-latex-package}{https://www.ras.org.uk/news-and-press/2641-new-version-of-the-mnras-latex-package}.
  6. #'
  7. #' @inheritParams rmarkdown::pdf_document
  8. #' @param ... Arguments to \code{rmarkdown::pdf_document}
  9. #'
  10. #' @return R Markdown output format to pass to \code{\link[rmarkdown:render]{render}}
  11. #' @examples
  12. #'
  13. #' \dontrun{
  14. #' library(rmarkdown)
  15. #' draft("MyArticle.Rmd", template = "mnras_article", package = "rticles")
  16. #' }
  17. #'
  18. #' @export
  19. mnras_article <- function(...,
  20. keep_tex = TRUE,
  21. md_extensions = c(),
  22. fig_caption = TRUE) {
  23. pdf_document_format(...,
  24. keep_tex = keep_tex,
  25. md_extensions = md_extensions,
  26. format = "mnras_article",
  27. template = "template.tex",
  28. csl = "mnras.csl")
  29. }