yml_latex_opts {ymlthis} | R Documentation |
Set LaTeX YAML options for PDF output
Description
yml_latex_opts()
sets top-level YAML fields for LaTeX options used by
pandoc (see the documentation, from which
these descriptions were derived), as when making a PDF document with
pdf_document()
.
Usage
yml_latex_opts(
.yml,
block_headings = yml_blank(),
classoption = yml_blank(),
documentclass = yml_blank(),
geometry = yml_blank(),
indent = yml_blank(),
linestretch = yml_blank(),
margin_left = yml_blank(),
margin_right = yml_blank(),
margin_top = yml_blank(),
margin_bottom = yml_blank(),
pagestyle = yml_blank(),
papersize = yml_blank(),
secnumdepth = yml_blank(),
fontenc = yml_blank(),
fontfamily = yml_blank(),
fontfamilyoptions = yml_blank(),
fontsize = yml_blank(),
mainfont = yml_blank(),
sansfont = yml_blank(),
monofont = yml_blank(),
mathfont = yml_blank(),
CJKmainfont = yml_blank(),
mainfontoptions = yml_blank(),
sansfontoptions = yml_blank(),
monofontoptions = yml_blank(),
mathfontoptions = yml_blank(),
CJKoptions = yml_blank(),
microtypeoptions = yml_blank(),
colorlinks = yml_blank(),
linkcolor = yml_blank(),
filecolor = yml_blank(),
citecolor = yml_blank(),
urlcolor = yml_blank(),
toccolor = yml_blank(),
links_as_notes = yml_blank(),
lof = yml_blank(),
lot = yml_blank(),
thanks = yml_blank(),
toc = yml_blank(),
toc_depth = yml_blank(),
biblatexoptions = yml_blank(),
biblio_style = yml_blank(),
biblio_title = yml_blank(),
bibliography = yml_blank(),
natbiboptions = yml_blank()
)
Arguments
.yml |
a |
block_headings |
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). Note that
the YAML field is actually called |
classoption |
a character vector of options for document class, e.g. "oneside" |
documentclass |
the document class usually "article", "book", or "report" |
geometry |
a character vector of options for the geometry LaTeX package, e.g. "margin=1in" |
indent |
Logical. Use document class settings for indentation? The default LaTeX template otherwise removes indentation and adds space between paragraphs. |
linestretch |
adjusts line spacing using the setspace LaTeX package, e.g. 1.25, 1.5 |
margin_left , margin_right , margin_top , margin_bottom |
sets margins if
|
pagestyle |
control the |
papersize |
paper size, e.g. letter, a4 |
secnumdepth |
numbering depth for sections (with |
fontenc |
allows font encoding to be specified through fontenc LaTeX package (with pdflatex); default is "T1" (see LaTeX font encodings guide) |
fontfamily |
font package for use with pdflatex: TeX Live includes many options, documented in the LaTeX Font Catalogue. The default is "Latin Modern". |
fontfamilyoptions |
a character vector of options for |
fontsize |
font size for body text. The standard classes allow "10pt", "11pt", and "12pt". |
mainfont , sansfont , monofont , mathfont , CJKmainfont |
font families for use with xelatex or lualatex: take the name of any system font, using the fontspec LaTeX package. CJKmainfont uses the xecjk LaTeX package.. |
mainfontoptions , sansfontoptions , monofontoptions , mathfontoptions , CJKoptions |
a character vector of options to use with mainfont, sansfont, monofont, mathfont, CJKmainfont in xelatex and lualatex. Allow for any choices available through fontspec. |
microtypeoptions |
a character vector of options to pass to the microtype LaTeX package. |
colorlinks |
Logical. Add color to link text? Automatically enabled if
any of |
linkcolor , filecolor , citecolor , urlcolor , toccolor |
color for internal links, external links, citation links, linked URLs, and links in table of contents, respectively: uses options allowed by xcolor, including the dvipsnames, svgnames, and x11names lists |
links_as_notes |
Logical. Print links as footnotes? Note that the actual
YAML field is |
lof , lot |
Logical. Include list of figures or list of tables? |
thanks |
contents of acknowledgments footnote after document title |
toc |
include table of contents |
toc_depth |
level of section to include in table of contents. Note that
the actual YAML field is |
biblatexoptions |
list of options for biblatex. |
biblio_style |
bibliography style, when used with
natbib and
biblatex. Note that the actual YAML field
is |
biblio_title |
bibliography title, when used with
natbib and
biblatex. Note that the actual YAML field
is |
bibliography |
a path to the bibliography file to use for references |
natbiboptions |
a character vector of options for natbib |
Value
a yml
object
See Also
Other yml:
asis_yaml_output()
,
bib2yml()
,
draw_yml_tree()
,
has_field()
,
read_json()
,
use_yml_defaults()
,
use_yml_file()
,
use_yml()
,
yml_author()
,
yml_blogdown_opts()
,
yml_bookdown_opts()
,
yml_citations()
,
yml_clean()
,
yml_distill_opts()
,
yml_output()
,
yml_pagedown_opts()
,
yml_params()
,
yml_pkgdown()
,
yml_reference()
,
yml_replace()
,
yml_resource_files()
,
yml_rsconnect_email()
,
yml_rticles_opts()
,
yml_runtime()
,
yml_site_opts()
,
yml_toc()
,
yml_vignette()
Examples
yml() %>%
yml_output(pdf_document()) %>%
yml_latex_opts(
fontfamily = "Fira Sans Thin",
fontsize = "11pt",
links_as_notes = TRUE
)