Format for converting from R Markdown to a Beamer presentation.
beamer_presentation( toc = FALSE, slide_level = NULL, number_sections = FALSE, incremental = FALSE, fig_width = 10, fig_height = 7, fig_crop = "auto", fig_caption = TRUE, dev = "pdf", df_print = "default", theme = "default", colortheme = "default", fonttheme = "default", highlight = "default", template = "default", keep_tex = FALSE, keep_md = FALSE, latex_engine = "pdflatex", citation_package = c("default", "natbib", "biblatex"), self_contained = TRUE, includes = NULL, md_extensions = NULL, pandoc_args = NULL )
TRUE to include a table of contents in the output (only
level 1 headers will be included in the table of contents).
The heading level which defines individual slides. By
default this is the highest header level in the hierarchy that is followed
immediately by content, and not another header, somewhere in the document.
This default can be overridden by specifying an explicit
TRUE to number section headings
TRUE to render slide bullets incrementally. Note
that if you want to reverse the default incremental behavior for an
individual bullet you can precede it with
>. For example:
> - Bullet Text. See more in
Default width (in inches) for figures
Default height (in inches) for figures
Whether to crop PDF figures with the command
pdfcrop. This requires the tools
ghostscript to be installed. By default,
fig_crop = TRUE
if these two tools are available.
TRUE to render figures with captions
Graphics device to use for figure output (defaults to pdf)
Method to be used for printing data frames. Valid values
include "default", "kable", "tibble", and "paged". The "default" method
uses a corresponding S3 method of
print.data.frame. The "kable" method uses the
knitr::kable function. The "tibble" method uses
the tibble package to print a summary of the data frame. The "paged"
method creates a paginated HTML table (note that this method is only valid
for formats that produce HTML). In addition to the named methods you can
also pass an arbitrary function to be used for printing data frames. You
can disable the
df_print behavior entirely by setting the option
frame printing section in bookdown book for examples.
Beamer theme (e.g. "AnnArbor").
Beamer color theme (e.g. "dolphin").
Beamer font theme (e.g. "structurebold").
Syntax highlighting style passed to Pandoc.
Supported built-in styles include "default", "tango", "pygments", "kate", "monochrome", "espresso", "zenburn", "haddock", and "breezedark".
Two custom styles are also included, "arrow", an accessible color scheme, and "rstudio", which mimics the default IDE theme. Alternatively, supply a path to a .theme file to use a custom Pandoc style. Note that custom theme requires Pandoc 2.0+.
NULL to prevent syntax highlighting.
Pandoc template to use for rendering. Pass "default" to use
the rmarkdown package default template; pass
NULL to use pandoc's
built-in template; pass a path to use a custom template that you've
created. See the documentation on
pandoc online documentation for
details on creating custom templates.
Keep the intermediate tex file used in the conversion to PDF.
Note that this argument does not control whether to keep the auxiliary
.aux) generated by LaTeX when compiling
Keep the markdown file generated by knitting.
LaTeX engine for producing PDF output. Options are "pdflatex", "lualatex", "xelatex" and "tectonic".
The LaTeX package to process citations,
default if neither package is to be used,
which means citations will be processed via the command
Whether to generate a full LaTeX document (
or just the body of a LaTeX document (
FALSE). Note the LaTeX
document is an intermediate file unless
keep_tex = TRUE.
Named list of additional content to include within the
document (typically created using the
Markdown extensions to be added or removed from the
default definition of R Markdown. See the
Additional command line options to pass to pandoc
R Markdown output format to pass to
See the online documentation
for additional details on using the
Creating Beamer output from R Markdown requires that LaTeX be installed.
R Markdown documents can have optional metadata that is used to generate a document header that includes the title, author, and date. For more details see the documentation on R Markdown metadata.
R Markdown documents also support citations. You can find more information on the markdown syntax for citations in the Bibliographies and Citations article in the online documentation.