Rmarkdown Pdf
See the onlinedocumentation for additional details on using the pdf_document
format.
Creating PDF output from R Markdown requires that LaTeX be installed.
- Preface Thedocumentformat“RMarkdown”wasfirstintroducedintheknitr package(??)inearly2012.Theideawastoembedcodechunks(ofR orotherlanguages)inMarkdowndocuments.
- 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:

--- |
title: 'Crop Analysis Q3 2013' |
fontsize: 11pt |
geometry: margin=1in |
Available metadata variables include:
lang

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

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

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)