Flask server to convert PDF to TeX files. Limited to <5MB files.
Online usage: https://tex-snip.herokuapp.com/
Offline usage (requires API credentials): python src/main.py
Python utility to take a screenshot of latex math equation and convert it to LaTeX. Supports text and math (but only one paragraph at a time). If the screenshot cannot be converted, nothing will be copied to your clipboard.
Handwritten conversion is in beta mode.
- Install python. Developed on Python 3.6, use any other verions at your own risk.
- Install python requirements
pip install -r requirements.txt
- Create API credentials (see below)
- (Optional) Change keyboard config in
src/config.py
- Run the program using
python src/texSnip.py
- Start a screen cap, drag the dimensions, and release. The equation will be copied to your keyboard!
- To terminate, use
SCROLL LOCK
or a key of your choice insrc/config.py
This utility uses MathPix as the OCR API. To create API credentials visit https://dashboard.mathpix.com/
Documentation can be found here.
Create a new file src/credentials.py
in the following format:
APP_ID = "<APP_ID>"
APP_KEY = "<APP_KEY>"
The default keybindings are:
ALT + P
to begin a screen captureESC
to cancel a screen captureSCROLL LOCK
to terminate the program
All of the keybindings can be changed in src/config.py
. See the pynput documentation for details of each key.