Skip to contents

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.

Usage

compile_slide_tinytex(slide_file, margin, ...)

Arguments

slide_file

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

margin

[TRUE] By default renders slides with margin. Otherwise a 4:3 slide is rendered.

...

Arguments passed to tinytex::latexmk().

Value

TRUE if an output PDF file exists, FALSE otherwise.

Examples

if (FALSE) { # \dontrun{
compile_slide_tinytex("lecture_advml/slides/gaussian-processes/slides-gp-basic-3.tex")
} # }