Wild ยท table extraction (OTSL) ยท formula โ LaTeX
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.
Try the table page and the formula page:
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 โ