| latex_options | R Documentation |
A single entry point for project-wide defaults used by
latex_grob, grid.latex,
latex_dims, and latex_tree. Options set
here are applied only when the corresponding argument is not
supplied at the call site, so explicit arguments always win.
latex_options(
math_font = NULL,
render_mode = NULL,
tex_style = NULL,
input_mode = NULL
)
reset_latex_options()
math_font |
Math font name or alias (see
|
render_mode |
Either |
tex_style |
TeX style override. One of |
input_mode |
How the input string is interpreted before being
handed to MicroTeX. |
Calling latex_options() with no arguments returns the current
settings (a list whose NULL entries mean "use the built-in
default"). Supply one or more named arguments to update them.
Font size and line spacing are controlled via gp parameters
(fontsize, cex, lineheight) at the grob level
— see latex_grob.
Invisibly returns the previous settings (a list). With no arguments, returns the current settings visibly.
available_math_fonts, latex_grob
latex_options(math_font = "stix", render_mode = "typeface")
grid.latex("\\sum_{i=1}^{n} i^{2}", gp = grid::gpar(fontsize = 14))
reset_latex_options()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.