Skip to content

v0.4 — in-browser compilation is live

AI document compiler

See the source
in every page.

LaTeX Lens reads what is actually on the page — equations, tables, handwriting, multi-column structure — then writes clean, compilable LaTeX you can edit. Not a screenshot. Not a summary. The source.

PDFscanshandwritingtablesno install · TeX runs locally
lens / 0.4
2 · Methodsp. 14

Quadratic form

(3)
classnf1
paper4120.94
table1380.91
hand970.88
Table 1 — Corpus fidelity by class
eq.03 · 0.98
tbl.01 · 0.96
main.tex
1\documentclass{article}
2\usepackage{amsmath}
3\begin{document}
4\section{Methods}
5\begin{equation}
6x = \frac{-b \pm \sqrt{b^{2}-4ac}}{2a}
7\end{equation}
8\end{document}
utf-8latex · edited
λpipeline / 04LaTeX source
fig. 01 — document → sourcescrub the stages ↑
§ 00 / measured, not claimed
equation fidelity
0.94
equation fidelity
SSIM, held-out set
document classes
09
document classes
papers → slides
median compile
2.1s
median compile
TeX, in-browser
source editable
100%
source editable
no screenshots
§ 01 / Mechanism

One system. Five layers.

Most tools stop at text extraction. LaTeX Lens carries the page all the way to a document that compiles — and shows its work at every layer.

pipeline / deterministic order

● all layers local

  1. 01

    Ingest

    Raster and vector in one pass

  2. 02

    Segment

    Layout becomes a graph

  3. 03math ocr

    Recognize

    Math, tables, and text

  4. 04

    Emit

    Compilable source

  5. 05tex

    Compile

    PDF, in the browser

01

Ingest

Raster and vector in one pass

PDFs, phone photos, and screenshots are normalized to a page model — deskew, denoise, DPI floor. Nothing is uploaded by default.

1.2 MB / pp
02

Segment

Layout becomes a graph

Text blocks, equations, tables, figures, captions, and footnotes are found as regions, then linked into reading order.

0.96 mAP
03

Recognize

Math, tables, and text

A math-specific recognizer maps glyphs to LaTeX tokens. Tables become tabular specs. Prose keeps its hierarchy.

0.94 SSIM
04

Emit

Compilable source

The document is written as LaTeX with real packages, labels, and environments — readable by a human, not just a machine.

100% editable
05

Compile

PDF, in the browser

TeX Live runs in a worker. Your source never leaves the tab unless you explicitly enable cloud OCR.

1.84 s

output contract

.tex.pdf.zipchat history
  • Non-destructive: your upload is kept only for the current chat.
  • Every stage is inspectable — regions, tokens, and source.
  • Powered by Gemini vision, with a math-specific recognizer.
§ 02 / Live sample

Four pages, read closely.

Switch the source. The output is the same promise every time: real LaTeX, real structure, ready to compile.

samples run locally · no upload

λ attention.pdf§ 3.2 · Equations
sourcescanned · 300 dpi
3 · attentionp. 03

Scaled dot-product attention

Equation, numbering, and section hierarchy preserved from a two-column preprint.

fidelity 0.97compile 1.9stokens 412
Scaled dot-product attention
1\begin{equation}
2\mathrm{Attention}(Q,K,V) =
3\mathrm{softmax}\left(
4\frac{QK^{\top}}{\sqrt{d_k}}
5\right)V
6\end{equation}
typesetcompiled
§ 03 / Workspace

The output is a workspace, not a download.

Conversion is the first step. LaTeX Lens gives you the editor, the rendered PDF, and the conversation in one surface — so the document keeps moving after the scan.

  1. 01

    Refine in conversation

    Ask for a change in plain language. The model edits the source, not a picture of it — every revision lands in the editor.

  2. 02

    Undo everything

    AI edits join the same history as your keystrokes. Step back through revisions with the toolbar, or restore any point.

  3. 03

    Compile in the tab

    A TeX Live worker renders the PDF beside your code. No install, no round trip, no build server.

Open the workbench
λworkspace / methods.tex
synced
sourcelatex
1\section{Methods}
2\begin{equation}
3\mathbf{A} =
4\begin{bmatrix}
5a & b \\
6c & d
7\end{bmatrix}
8\end{equation}
pdf1.84s
methods.texp. 04

2. Methods

(4)

ask

use bmatrix, and label it eq. 4

↑
revision applied · §2.11 undo step

fig. 02 — workbenchcode · pdf · chat

§ 04 / Benchmarks

Precision you can audit.

Measured on 412 held-out pages across four document classes. The baseline is a standard OCR pass followed by a general-purpose model prompt.

table 01 — head-to-head

n = 412

metriclens
Equation fidelityocr 0.71manual 0.990.94
Table structureocr 0.62manual 0.980.96
Reading orderocr 0.74manual 0.970.95
Compile successocr 41%manual 96%98%
Median time / pageocr 38smanual 26 min2.1s
Editable sourceocr partialmanual yesyes

Manual transcription has the highest ceiling and the lowest throughput. LaTeX Lens is built for the middle: near-manual fidelity at machine speed.

fig. 03 — fidelity by class

0.94 avg

0.94

mean structural fidelity

lens

ocr + llm

0.50.60.70.80.9PapersHandwritingTablesSlides0.970.910.960.93
SSIM against the original page render. Handwriting remains the hardest class; tables gain the most from layout segmentation.
§ 05 / Coverage

Built for the documents you actually have.

Preprints, phone photos of a whiteboard, a table pasted from a report, a deck with one good equation. The recognizer is tuned for academic material, not receipts.

equationseq.03 · 0.98
detected

Equations that survive the trip

Inline and display math become real environments — fractions, matrices, integrals, and the numbering that goes with them.

handwritingconfidence 0.89

so the residue is

∫ f(z) dz = 2πi Σ Res

at the enclosed poles.

Notes, not neat notes

Slant, shadow, and crossed-out lines are handled as signal. The model shows its confidence so you know where to look.

tables0.96
classnf1
paper4120.94
table1380.91
hand970.88

Tables stay tabular

Rules, spans, and header groups map to a real tabular.

multi-columnorder 0.95
1
2

Reading order, recovered

Columns, sidebars, and footnotes are linked into the order a human would read.

slides6 bullets

Bayes, in one line

  • · prior
  • · likelihood
  • · posterior

Decks become sections

Slide titles map to sectioning; bullets keep their hierarchy.

Local compile — TeX Live in a worker. No build server.

No retention — Files live in the chat, not a training set.

30+ packages — amsmath, booktabs, graphicx, and friends.

§ 06 / Field notes

Used where the math has to be right.

A small set of labs and research teams run their reading pile through LaTeX Lens. Names withheld where the work is unpublished.

in use atMERIDIAN LABNORTHFIELDOBSIDIAN R&DKEPLER GROUPATLAS INSTITUTE
“The scan goes in, the LaTeX comes out, and I still recognise my own document.”

A. Kowalski

staff scientist · numerical analysis

verified sample

412 pages

“I stopped retyping equations at 2am. The output compiles on the first try, which is the only review that matters.”

R. Iyer

PhD candidate, applied mathematics

“The table extraction is the part I did not expect. Rules, headers, alignment — it kept all of it.”

M. Okafor

Research engineer, ML systems

“It reads like a typesetter, not a chatbot. I can see every region it found and fix the one that is wrong.”

L. Brandt

Lecturer, computational physics

§ 07 / Questions

The fine print.

Everything that matters before you put a real paper through it.

Yes. The emitter targets a standard article-class document with amsmath, booktabs, and graphicx. The PDF you see beside the editor is produced by TeX Live running in a Web Worker, not by a mock renderer.

A Gemini vision model handles layout and prose; a math-specific recognizer handles equations and table structure. The two are reconciled before the LaTeX is emitted, so a paragraph and an equation cannot disagree about the same region.

A document is stored only inside the chat you created it in, so you can reopen the session. Delete the chat and the attachment goes with it. Nothing is used for training. Cloud OCR is opt-in per chat.

That is the point. The editor is a real code editor with LaTeX highlighting, undo and redo across AI revisions, copy-all, and a recompile button. The model edits the source, not a picture of it.

Handwriting is supported and scored. A confidence value appears on each recognised region; low-confidence regions are flagged in amber so you can inspect them before compiling.

There is no checkout on this site. Pricing depends on page volume and team size, so it is quoted directly by the sales team. Message sales on WhatsApp and you will get a number the same day.

λ the next page is yours

Bring your next paper into focus.

Upload a scan and watch the source appear beside it. No card, no install, no build server — and pricing is a conversation, not a checkout.

no cardlocal TeXdelete anytime