English | 中文
Snip is an amazing app built by Mathpix to help you extract LaTeX (also text) from documents. It gives you the first 50 snips for free every single month. With the help of MathpixOCR and this supplementary app, you can now make up to 1000 OCR requests per month for free.
Image2LaTeX is a personal side project that keeps only core functions of the Snip such as convert images to certain LaTeX equation formats and OCR. For other advanced functions and unlimited snips, subscribe to the Snip for $4.99 per month.
See the features section on MathpixOCR website.
- Self-contained executable application for macOS.
-
Your API keys in your MathpixOCR dashboard (different from the Mathpix account used in the Snip app)
-
JDK 11 or higher version (OpenJDK is highly recommended) if you plan to use
Image2LaTeX-x.x.x.jar
Enter your API keys (without single quotes) at the first launch of this app.
To change your API keys, macOS and Windows users will find a menu item called API Key
by clicking this app's menu bar icon.
Linux users need to change it manually by finding the config
file and edit it by text editor.
Do not share your config
file with others.
This app will also not send your API keys to others except for MathpixOCR API server (see OCRRequest.java to learn how your API keys are used).
Run Image2LaTeX.app
.
Run Image2LaTeX.vbs
at Image2LaTeX-windows/
.
Run Image2LaTeX
at Image2LaTeX-linux/bin/
or with:
./Image2LaTeX
With a JAR launcher installed, run Image2LaTeX-x.x.x.jar
or with:
java -jar Image2LaTeX-x.x.x.jar
Use your operating system's default methods (or other tools) to take a screenshot of equations or text (Shift (⇧)-Control (⌃)-Command (⌘)-4 on macOS by default).
The Image2LaTex app will display the image you captured.
Press the Return
or Enter
key to send the OCR request.
See demo section below.
Not yet. But, with the GA release of Java 14 in 2020, jpackage should be available for packaging self-contained JavaFX application.
At that time, I will drop the release of .jar
and .zip
files and no one (except me) needs to install JDK anymore.
The Image2LaTeX.app
is for macOS only.
The Image2LaTeX-x.x.x-windows.zip
和 Image2LaTeX-x.x.x-linux.zip
are built with the Badass Runtime Plugin which has a huge size.
You don't need to have JDK 11 installed for running these versions.
Considering the people using similar apps, I assumed that a large percentage of users should have JDK installed.
Therefore, a smaller size Fat JAR Image2LaTeX-x.x.x.jar
has also released.
See this article about watching and unwatching releases for a repository by GitHub.
- Add system tray icon support for some Linux distributions.
Please first refer to the official API Docs about error types if an error dialogue is displayed.
Welcome to open an issue with the bug or question label, but the time to fix non-vital bugs may not be guaranteed.
Contributions are highly welcomed. Suggestions can be made through opening an issue with enhancement label. Pull Requests including bug fixes, new features, code style guidance, etc., will be reviewed as soon as possible.
This code is distributed under the terms of the Apache License 2.0.