amq_article.R 1.0 KB

1234567891011121314151617181920212223242526272829
  1. #' Format pour Bulletin de l'AMQ.
  2. #'
  3. #' Ce format a été adapté du format du bulletin de l'AMQ
  4. #'
  5. #' @inheritParams rmarkdown::pdf_document
  6. #' @param ... Arguments to \code{rmarkdown::pdf_document}
  7. #' @return R Markdown output format to pass to \code{\link[rmarkdown:render]{render}}
  8. #' @examples
  9. #' \dontrun{
  10. #' rmarkdown::draft("MyArticle.Rmd", template = "amq_article", package = "rticles")
  11. #' }
  12. #'
  13. #' @export
  14. amq_article <- function(...,
  15. latex_engine = 'xelatex',
  16. keep_tex = TRUE,
  17. md_extensions = c("-autolink_bare_uris"),
  18. fig_caption = TRUE){
  19. pdf_document_format(...,
  20. latex_engine = latex_engine,
  21. highlight = NULL,
  22. keep_tex = keep_tex,
  23. md_extensions = md_extensions,
  24. format = "amq_article",
  25. template = "template.tex",
  26. csl = "",
  27. fig_caption = fig_caption)
  28. }