Learn R Programming

mathpix (version 0.6.0)

mathpix_api: Connect to the mathpix API and translate an image to LaTeX

Description

Connect to the mathpix API and translate an image to LaTeX

Usage

mathpix_api(img)

Value

a character string of LaTeX commands (or NULL if fails).

Arguments

img

image to be converted to LaTeX

Details

You must save your own API key in your environment (e.g. `~/.Renviron`) with the identifiers `MATHPIX_APP_ID` and `MATHPIX_APP_KEY`. This can be tested with `mathpix:::credentials()`.