Skip to contents

Use case: A bunch of stuff done in LaTeXiT, resulting in some helper calculations or derivations contained in tex files. These are then rendered to PDF using tex_fun, per default tinytex::xelatex, and then optionally converted to png using the system convert tool via imagemagick.

Usage

render_tex_files(
  path,
  cleanup = TRUE,
  tex_fun = tinytex::xelatex,
  to_png = TRUE
)

Arguments

path

Folder where .tex files are.

cleanup

TRUE: Whether to cleanup auxilliary files (e.g. .aux, .log, ...)

tex_fun

Which function to use, default ist tinytex::xelatex.

to_png

TRUE: Whether to use convert to convert PDF to png.

Value

Nothing

Examples

if (FALSE) {
render_tex_files("formulas")
}