GitHub · #484

lukas-blecher/LaTeX-OCR

pix2tex: Using a ViT to convert images of equations into LaTeX code. On Linux: git clone, python3 -m venv .venv, then pip install -e . 16,591 GitHub stars (#484 in this directory).

Repository
https://github.com/lukas-blecher/LaTeX-OCR
Homepage
https://lukas-blecher.github.io/LaTeX-OCR/
Owner
lukas-blecher (User)
Stars
16,591
Forks
1,306
Open issues
158
Language
Python
License
MIT
Created
2020-12-11
Last push
2025-01-18
Topics
dataset, deep-learning, im2latex, im2markup, im2text, image-processing, image2text, latex, latex-ocr, machine-learning, math-ocr, ocr
Snapshot
2026-10-18 · weekly refresh

Try it on Shadowfetch Linux.

Shadowfetch Linux is a Debian testing desktop with KDE Plasma, local AI tools, and ShadowCode. Clone this repository there, follow the steps for its primary language, and ask ShadowCode to finish the build.

Clone and set up a Python environment.

git clone https://github.com/lukas-blecher/LaTeX-OCR.git
cd LaTeX-OCR
python3 -m venv .venv
source .venv/bin/activate
pip install -e .

If the project has no installable package, use the README’s requirements file or conda notes instead of pip install -e .

ShadowCode prompt.

Paste this into ShadowCode after you open the project.

Clone https://github.com/lukas-blecher/LaTeX-OCR into ~/Workspaces/LaTeX-OCR.
Read the README.
On this Shadowfetch Linux desktop, create a Python virtualenv, install from the README, then run or import the project.
Ask before installing packages or using the network.

Download Shadowfetch Linux — ISO, checksum and signature.

Back to the GitHub directory · Methodology