Convert to LaTeX

  • Convert to LaTeX: right-click a picture in the visual editor, or a line with \includegraphics or image() 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.