peerj_article.Rd 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/peerj_article.R
  3. \name{peerj_article}
  4. \alias{peerj_article}
  5. \title{PeerJ journal format.}
  6. \usage{
  7. peerj_article(..., keep_tex = TRUE, citation_package = "none",
  8. base_format = rmarkdown::pdf_document)
  9. }
  10. \arguments{
  11. \item{...}{Additional arguments to \code{base_format}}
  12. \item{keep_tex}{Keep the intermediate tex file used in the conversion to PDF}
  13. \item{citation_package}{The LaTeX package to process citations, \code{natbib}
  14. or \code{biblatex}. Use \code{none} if neither package is to be used.}
  15. \item{base_format}{The function to use for the base format of the article.
  16. By default, this is \code{rmarkdown::pdf_document}, but to use bookdown's
  17. cross-referencing feature, this can be set to \code{bookdown::pdf_document2}}
  18. }
  19. \value{
  20. R Markdown output format to pass to
  21. \code{\link[rmarkdown:render]{render}}
  22. }
  23. \description{
  24. Format for creating submissions to The PeerJ.
  25. }
  26. \details{
  27. This was adapted from the
  28. \href{https://www.overleaf.com/latex/templates/latex-template-for-peerj-journal-and-pre-print-submissions/ptdwfrqxqzbn}{PeerJ Overleaf Template}.
  29. }
  30. \note{
  31. If you use \code{rmarkdown::pdf_document()}, all internal references
  32. (i.e. tables and figures) must use \code{\\ref\{\}} whereas with
  33. \code{bookdown::pdf_document2()}, you can additionally use \code{\\@ref()}.
  34. }
  35. \examples{
  36. \dontrun{
  37. library(rmarkdown)
  38. draft("MyArticle.Rmd", template = "peerj_article", package = "rticles")
  39. }
  40. }