Emacs library to take screenshots and convert them to LaTeX formulas through Mathpix's OCR API.
License: GNU General Public License v3.0
Emacs Lisp 90.23%TeX 9.77%
screen2latex.el's Introduction
Set up
Clone this repo.
Create an account for Mathpix OCR over at Mathpix.
Insert your Mathpix OCR app id and key in auth.el.template, and save it
as a new auth.el.gpg file. math2latex will then load this file and your
credentials.
Load the math2latex.el file
Usage
Have the formula you want to convert ready on the screen somewhere
In emacs, move the pointer to where the LaTeX formula should go
M-x math2latex
Draw box around the formula you want to convert
LaTeX version of your formula will appear at point
Next tasks [4/6]
[ ] Split functionality in math2latex.el over multiple functions
[ ] Better handle response from Mathpix
[ ] Define :complete function separately
[ ] Print a message when response says no formula was detected
[ ] Print confidence level in case conversion is successful