letter | R Documentation |
Write a letter in R Markdown on the official Smith College SDS letterhead
letter(
fig_width = 10,
fig_height = 5,
fig_crop = TRUE,
dev = "pdf",
highlight = "default",
keep_tex = FALSE,
includes = NULL,
md_extensions = NULL,
pandoc_args = NULL,
...
)
fig_width |
Default width (in inches) for figures |
fig_height |
Default height (in inches) for figures |
fig_crop |
Whether to crop PDF figures with the command
|
dev |
Graphics device to use for figure output (defaults to pdf) |
highlight |
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+. Pass |
keep_tex |
Keep the intermediate tex file used in the conversion to PDF |
includes |
Named list of additional content to include within the
document (typically created using the |
md_extensions |
Markdown extensions to be added or removed from the
default definition of R Markdown. See the |
pandoc_args |
Additional command line options to pass to pandoc |
... |
Arguments passed to |
Note that this uses ebgaramond-maths
as the default font. You
will need the texlive-fonts-extra
package or the equivalent. Note also
that in order for this to work you must us the xelatex
rendering engine.
https://www.smith.edu/about-smith/college-relations/visual-identity-program
pdf_document
## Not run:
# simple invocation
render("input.Rmd", sds::letter())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.