Support for the 'Mathpix' API (Image to 'LaTeX')

Given an image of a formula (typeset or handwritten) this package provides calls to the 'Mathpix' service to produce the 'LaTeX' code which should generate that image, and pastes it into a (e.g. an 'rmarkdown') document. See <> for full details. 'Mathpix' is an external service and use of the API is subject to their terms and conditions.


mathpix 0.3.0

mathpix 0.2.0

  • Ability to not insert the LaTeX block (insert = FALSE).
  • Errors encountered in processing now show to the user rather than returning an empty block (#4).
  • Ability to retry equation detection with a pre-processed image (retry=TRUE) (#3, #5).
    • explicit magick support now required.
    • tested with tools/eq_no_05_screencapfixes.jpg and retrying works.
  • Providing a non-existent file produces an error rather than a warning.
  • README is now self-contained (images in tools/).
  • README now directs users to for key requests (#2).
  • Added Appveyor support.
  • Added covr support.

mathpix 0.1.0

  • Preparing for initial CRAN release.
  • Feature-complete access to the Mathpix API.
  • Includes a latex renderer via texPreview.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.4.0 by Jonathan Carroll, a year ago

Report a bug at

Browse source code at

Authors: Jonathan Carroll [aut, cre]

Documentation:   PDF Manual  

Task views: Web Technologies and Services

GPL (>= 3) license

Imports purrr, base64enc, httr, rstudioapi, texPreview, magick, utils

Suggests testthat, covr

See at CRAN