render_latex function

Convert a 'LaTeX' expression to an image (render)

Convert a 'LaTeX' expression to an image (render)

This calls tex_preview to render a 'LaTeX' expression into an image, either as a temporary file or saved to disk.

render_latex(latex, fileDir = NULL, ...)

Arguments

  • latex: 'LaTeX' code to be evaluated. Surround in $ or $$.
  • fileDir: directory in which to save the image to (defaults to /tmp/tempfile()).
  • ...: other options to pass to tex_preview.

Returns

NULL (invisibly)

  • Maintainer: Jonathan Carroll
  • License: GPL (>= 3)
  • Last published: 2023-11-06