

Note that the actual YAML fields use - instead of _, e.g. Sets margins if geometry is not used, otherwise geometry overrides these. Margin_left, margin_right, margin_top, margin_bottom Use document class settings for indentation? The default LaTeX template otherwise removes indentation and adds space between paragraphs.Īdjusts line spacing using the setspace LaTeX package, e.g. 1.25, 1.5 The document class usually “article”, “book”, or “report”Ī character vector of options for the geometry LaTeX package, e.g. “margin=1in” Note that the YAML field is actually called block-headings.Ī character vector of options for document class, e.g. “oneside”

Make paragraph and subparagraph (fourth- and fifth-level headings, or fifth- and sixth-level with book classes) free-standing rather than run-in requires further formatting to distinguish from subsubsection (third- or fourth-level headings). LaTeX/PDF Options LaTeX/PDF Options Help Page See the help page for the function you are using, e.g., ?rmarkdown::pdf_document. The nested fields for the output field are based on the arguments of the output function.


The Language subtag lookup tool can help find the appropriate tag. The document language using IETF language tags such as “en” or “en-US”. This field is not available in all output formats it is available in word_document() and powerpoint_presentation() by default. This field is not available in all output formats it is available in word_document(), odt_document(), and powerpoint_presentation() by default.Ī character vector, the category of the document. This field is not available in all output formats it is available in pdf_document(), html_document(), word_document(), odt_document(), and powerpoint_presentation() by default.Ī character vector, a description of the document. This field is not available in all output formats it is available in pdf_document(), html_document(), word_document(), odt_document(), and powerpoint_presentation() by default.Ī character vector, the subject of the document. This field is not available in all output formats it is available in pdf_document() and html_document() by default.Ī character vector of keywords. Long character vectors are automatically wrapped using valid YAML syntax. It is available in pdf_document(), html_document(), and word_document() by default.Ī character vector, the abstract. Not all R Markdown formats use subtitles, so it may depend on what you use in the output field (see ). Ī character vector, the title of the documentĪ character vector, the subtitle of the document. When the default date is used, the format passed to. The date by default this is “ `r format(Sys.Date())`”, which will populate the date automatically. Note that not all formats support the email field. The author’s affiliation must match length of name, e.g. if name has length of two, affiliation must as well use NA if you don’t want to include an affiliation for a given author.Note that not all formats support the affiliation field. Note that the actual YAML field is toc-title.Ī character vector, name of the author(s) Note that the actual YAML field is toc-depth. Remove intermediate files that are created while making the R Markdown document?Īn integer. shiny_prerendered is a subset of the shiny runtime that allows pre-rendering of app components (see the R Markdown site for more) static, the default, renders static documents shiny allows you to include use Shiny in your document.
