render_latex {mathpix}R Documentation

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

Description

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

Usage

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.

Value

NULL (invisibly)


[Package mathpix version 0.6.0 Index]