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

View source: R/connect.R

render_latexR 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)


mathpix documentation built on Nov. 6, 2023, 9:06 a.m.