Learn R Programming

papaja (version 0.1.0.9655)

apa6_pdf: APA article (6th edition)

Description

Template for creating an article according to APA guidelines (6th edition) in PDF format.

Usage

apa6_pdf(fig_caption = TRUE, number_sections = FALSE, toc = FALSE,
  pandoc_args = NULL, keep_tex = TRUE, ...)

apa6_word(fig_caption = TRUE, pandoc_args = NULL, md_extensions = NULL, ...)

Arguments

fig_caption

Logical. Indicates if figures are rendered with captions.

number_sections

Logical. Indicates if section headers are be numbered. If TRUE, figure/table numbers will be of the form X.i, where X is the current first -level section number, and i is an incremental number (the i-th figure/table); if FALSE, figures/tables will be numbered sequentially in the document from 1, 2, ..., and you cannot cross-reference section headers in this case.

toc

Logical. Indicates if a table of contents is included.

pandoc_args

Additional command line options to pass to pandoc

keep_tex

Logical. Keep the intermediate tex file used in the conversion to PDF.

...

Further arguments to pass to pdf_document2 or word_document2.

md_extensions

Character. Markdown extensions to be added or removed from the default definition or R Markdown. See the rmarkdown_format for additional details.

Functions

  • apa6_word: Format to create .docx-files. class parameter is ignored. This function should be considered experimental.

Details

When creating PDF documents the YAML option class is passed to the class options of the LaTeX apa6 document class. In this case, additional options are available. Refer to the apa6 document class documentation to find out about class options such as paper size or draft watermarks.

When creating PDF documents the output device for figures defaults to c("pdf", "postscript", "png", "tiff"), so that each figure is saved in all four formats at a resolution of 300 dpi.

See Also

pdf_document2, word_document2

Examples

Run this code
# NOT RUN {
NULL
# }

Run the code above in your browser using DataLab