Skip to contents

Core rendering

Create and draw LaTeX math as grid grobs

latex_grob() grid.latex()
Create a grid grob from a LaTeX expression
latex_dims()
Get dimensions of a LaTeX expression
latex_tree()
Inspect the parsed layout of a LaTeX expression

Options, macros, and cache

Project-wide defaults and advanced tooling

latex_options() reset_latex_options()
Set or query package-wide LaTeX rendering defaults
define_macro() clear_macros() list_macros()
Define a user-level LaTeX macro
latex_cache_limit() latex_cache_clear() latex_cache_info()
Set the maximum number of entries kept in the LaTeX layout cache

ggplot2 integration

Use LaTeX in ggplot2 plots

geom_latex()
A ggplot2 geom for LaTeX math labels
element_latex()
A ggplot2 theme element for LaTeX text

Font management

Load and configure math and text fonts

available_math_fonts()
List available math fonts
load_font()
Load a font file into MicroTeX
check_fonts()
Check font status