Rmarkdown Pdf

  

See the onlinedocumentation for additional details on using the pdf_documentformat.

  1. R Markdown Pdf
  2. Rmarkdown Pdf Templates
  3. Rmarkdown Pdf Landscape

Creating PDF output from R Markdown requires that LaTeX be installed.

  1. Preface Thedocumentformat“RMarkdown”wasfirstintroducedintheknitr package(??)inearly2012.Theideawastoembedcodechunks(ofR orotherlanguages)inMarkdowndocuments.
  2. R Markdown supports dozens of static and dynamic output formats including HTML, PDF, MS Word, Beamer, HTML5 slides, Tufte-style handouts, books, dashboards, shiny applications, scientific articles, websites, and more.

R Markdown documents can have optional metadata that is used to generate adocument header that includes the title, author, and date. For more detailssee the documentation on R Markdown metadata.

I'm trying to follow this pandoc example to add multiple authors to an Rmarkdown file in the yaml metadata block.The pdf will generate in RStudio (Version 0.98.932), but there is no author information.

R Markdown documents also support citations. You can find more information onthe markdown syntax for citations in theBibliographiesand Citations article in the online documentation.

Many aspects of the LaTeX template used to create PDF documents can becustomized using metadata. For example:

Rmarkdown Pdf
---
title: 'Crop Analysis Q3 2013'
fontsize: 11pt
geometry: margin=1in

Available metadata variables include:

lang
Rmarkdown Pdf

Document language code (e.g. 'es', 'fr', 'pt-BR')

Examples
fontsize

Font size (e.g. 10pt, 11pt, 12pt)

documentclass

LaTeX document class (e.g. article)

classoption

Option for documentclass (e.g. oneside); may be repeated

geometry

Options for geometry class (e.g. margin=1in); may be repeated

Rmarkdown pdf font size
mainfont, sansfont, monofont, mathfont

Document fonts (works only with xelatex and lualatex, see the latex_engine option)

R Markdown Pdf

linkcolor, urlcolor, citecolor

Color for internal, external, and citation links (red, green, magenta, cyan, blue, black)

Rmarkdown Pdf Templates

linestretch

Rmarkdown Pdf Landscape

Options for line spacing (e.g. 1, 1.5, 3)