Skip to contents

Proactively installs all LaTeX packages needed by arframe's PDF backend via tinytex::tlmgr_install(). Call this once after tinytex::install_tinytex() to ensure fr_render() can produce PDFs without interruption.

Usage

fr_install_latex_deps()

Value

Invisible NULL. Called for its side effect of installing packages.

Details

The tinytex package must be installed. If it is not, fr_install_latex_deps() raises an error with installation instructions.

Packages already present are silently skipped by tlmgr.

See also

fr_latex_deps() for the package list, fr_render() for PDF output.

Examples

if (requireNamespace("tinytex", quietly = TRUE)) {
  fr_install_latex_deps()
}
#>  Installing 7 LaTeX packages via tlmgr.
#> tlmgr update --all --self
#> tlmgr install tabularray fontspec geometry xcolor fancyhdr lastpage booktabs