Skip to contents

A thin wrapper around tinytex::latexmk().

Usage

latexmk_tinytex(slide_file, ...)

Arguments

slide_file

[character(1)] Name of a (single) slide, with or without .tex extension. See examples of find_slide_tex().

...

Arguments passed to tinytex::latexmk().

Value

TRUE if the output PDF exists, FALSE otherwise.

Details

TinyTex's tinytex::latexmk() automatically installs missing LaTeX packages, making it very useful. This is just a thin wrapper run the command with a changed working directory, as relative paths used in preamble.tex etc. require.

Note

This utility is usually invoked by compile_slide().

Examples

if (FALSE) { # \dontrun{
latexmk_tinytex("slides-advriskmin-bias-variance-decomposition.tex")
} # }