Skip to content

Usage

tf_article(
  ...,
  keep_tex = TRUE,
  citation_package = "natbib",
  reference_style = c("CAD", "APA", "NLM", "TFP", "TFQ", "TFS"),
  pandoc_args = NULL
)

Arguments

...

Additional arguments to rmarkdown::pdf_document()

keep_tex

Keep the intermediate tex file used in the conversion to PDF. Note that this argument does not control whether to keep the auxiliary files (e.g., .aux) generated by LaTeX when compiling .tex to .pdf. To keep these files, you may set options(tinytex.clean = FALSE).

citation_package

The LaTeX package to process citations, natbib or biblatex. Use default if neither package is to be used, which means citations will be processed via the command pandoc-citeproc.

reference_style

should be set according to the specific Taylor & Francis journal. Possibles values: "APA" (American Psychological Association reference style), "CAD" (Chicago Author-Date reference style), "NLM" (National Library of Medicine reference style), "TFP" (Reference Style-P), "TFQ" (Reference Style-Q), and "TFS" (Reference Style-S).

pandoc_args

Additional command line options to pass to pandoc

Examples

if (FALSE) { # \dontrun{
rmarkdown::draft("MyArticle.Rmd", template = "tf", package = "rticles")
setwd("MyArticle")
rmarkdown::render("MyArticle.Rmd")
} # }