โ† SmolDocling

Wild ยท table extraction (OTSL) ยท formula โ†’ LaTeX

Pull tables and formulas straight out of a page

The parts of a document that break flat OCR are exactly where DocTags shine. Point SmolDocling at a page with a table and it emits <otsl> cells you can drop into a spreadsheet; point it at a printed equation and it emits <formula> as LaTeX. All from a picture, all on-device.

Run it

The document image the model will read

Try the table page and the formula page:

A document containing a four-column data table A page with headings and mathematical formulas A business report page with headings and a bullet list
Drop / choose a page image

Tables & formulas found

The extracted tables and formulas will appear here.

What's happening

The same single DocTags pass produces tables and formulas alongside the prose; we just filter for the <otsl> and <formula> elements. OTSL (Optimised Table Structure Language) encodes each cell and row break, so the model recovers the grid โ€” not just the cell text โ€” which is why the result drops cleanly into a real table. Formulas come back as LaTeX, ready to re-typeset or search.

Next rung: Multi-model โ€” SmolDocling โ†’ an LLM summary โ†’