Convert to LaTeX
Convert to LaTeX turns a picture of an equation, a table, a diagram or a page of text into source in the file's language. A LaTeX file gets LaTeX with a TikZ picture for a diagram, a Typst file gets Typst with a CeTZ canvas, and a Markdown file gets Markdown with LaTeX math.
Requires an AI agent that reads pictures
- Convert to LaTeX: right-click a picture in the visual editor, or a line with
\includegraphicsorimage()in the source editor. The result goes in below the picture. - Paste as LaTeX: right-click anywhere you can type, with a picture on the clipboard. The result goes in at the caret.
In a Typst file they read Convert to Typst and Paste as Typst.
The dialog shows the picture. Drag over it to convert part of it, then click Convert Selection. A large picture, such as a scan or a PDF page, waits for you to pick the part first. Convert All reads the whole picture, and Convert Again asks for a new result.
The result shows drawn above its source. An equation is drawn as it will look, and a diagram is drawn by your own lualatex (TikZ) or tinymist (CeTZ). A diagram that fails to compile goes back to the agent once with the error, and the fixed version is shown. Edit the source in the dialog if needed. Insert puts it in your file, and adds \usepackage{tikz} or amsmath when the document needs it.
It uses the model picked for Convert pictures under Models. What is sent is in Privacy.