GUIDES · PDF TO LATEX
Convert a PDF to LaTeX, equations and tables included.
Retyping equations from an old paper or a scanned textbook is slow and error-prone. Docr’d recognizes formulas, tables and figures on each page, shows each one beside the crop it came from so you can check it, and exports the document as a LaTeX project, a .tex file with its figures and bibliography, that you can compile and edit.
What the PDF to TeX export holds
The LaTeX export is a ZIP file holding:
document.tex, the document with its sections and paragraphs.- Display equations in
equation*environments, and inline math in place. An equation reconstructed at Max quality keeps its original number, written with\tagin anequationenvironment; Balanced rebuilds the equation without its number. - Tables as
tabularenvironments. - Figures as image files in a
figuresfolder, placed with\includegraphicsand their captions. docrd.styfor the small amount of styling the document needs,references.bib, andbuild.log, which lists anything that could not be converted cleanly so you know where to look.
Corrections you made in Docr’d are part of the export.
How to convert a PDF to LaTeX
- Create an account and open the web app. Hosted OCR runs there, in Docr’d Cloud, never on your computer. Adding documents and OCR need cloud access: an activated free place, while one is available, or a paid plan. Your account shows which you have.
- Add the PDF to your library. Scanned and born-digital PDFs both work; a born-digital PDF is readable and searchable straight away.
- Run reconstruction at Balanced or Max quality. On a free place you can choose a page range instead of the whole document.
- Open a formula or table to compare it with the original crop and fix anything that was misread.
- Open the document’s menu on its record bar and choose Export → LaTeX. When the ZIP is ready, choose Download.
The same menu exports Markdown with LaTeX math, if you write in Markdown.
Math OCR, one formula at a time
One page of a scanned textbook, and what Docr’d rebuilds from it. The formula comes back as math, with its LaTeX underneath:
Shows where it lands in the reconstruction. Arrow keys move between blocks.
Consider a prismatic beam of flexural rigidity EI carrying a distributed load q(x). Taking moments about a section at x and letting the element length tend to zero gives the governing relation between load and deflection w:
Fig. 4.7 Simply supported beam under distributed load.
| Support | Conditions |
|---|---|
| Simply supported | w = 0, w″ = 0 |
| Clamped | w = 0, w′ = 0 |
| Free | w″ = 0, w‴ = 0 |
Consider a prismatic beam of flexural rigidity EI carrying a distributed load q(x). Taking moments about a section at x and letting the element length tend to zero gives the governing relation between load and deflection w:
EI\,\frac{d^{4} w}{dx^{4}} = q(x)
Fig. 4.7 Simply supported beam under distributed load.
| Support | Conditions |
|---|---|
| Simply supported | w = 0, w″ = 0 |
| Clamped | w = 0, w′ = 0 |
| Free | w″ = 0, w‴ = 0 |
Each recognized formula opens in a side panel that shows its LaTeX in an editable box beside the source crop, so you can correct it and copy it into your own document. Formulas are searchable across your library, so you can type part of an equation, or search its LaTeX, and find every paper where it appears.
Choosing a quality
| Fast | Text only. It does not rebuild formulas or tables, so it is not the right choice for LaTeX. |
|---|---|
| Balanced | Layout, headings, tables and formulas. The right choice for most papers and textbooks. It does not keep formula numbers. |
| Max | The most thorough: adds formula numbers, charts and tables that continue across pages. Each page counts three times against your allowance. |
If you use Zotero
The scanned papers in a Zotero library come across with it. Docr’d imports the library, or to begin with only the collections you choose, with its PDFs, marks and notes, and never changes Zotero. Rebuild a scan, check its formulas, and export it as LaTeX. OCR for a Zotero library explains what the import does, and the Zotero import guide shows each screen. Nothing is written back into Zotero, so its copy of the PDF stays as it was.
What it costs
Reading, correcting, searching and exporting pages you have already reconstructed uses no OCR pages, though correcting in the web app needs cloud access. Reconstruction uses OCR pages: free places include 100 Balanced pages a month while places are available, and paid plans include monthly pages at any quality, with no automatic overage charge. See pricing.
Docr’d is in early access. Recognition is good but not perfect, especially on faint or skewed scans, which is why every formula stays linked to its crop. Docr’d does not read handwriting. Tell us at support@getdocrd.com when a page converts badly; please leave out private documents.
When you don’t need this
If the paper’s LaTeX source exists, use it: arXiv, for one, offers the TeX source of most of its papers. A born-digital PDF with a simple layout and no mathematics converts fine with plain tools, because its text can be copied out and typeset by hand. And for one or two equations, retyping them is quicker than any conversion. Docr’d earns its place when there is no source to be had: a scanned chapter, an old paper, a standard, with equations and tables on most pages.