render_tex_files: Render a bunch of small .tex files

View source: R/tex-helpers.R

render_tex_filesR Documentation

Render a bunch of small .tex files

Description

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

## Not run: 
render_tex_files("formulas")

## End(Not run)

jemus42/jemisc documentation built on March 24, 2024, 8:18 p.m.