ChongCyrus253 downloadsDraw math formulas by hand or import from album, then convert them to LaTeX using AI APIs (SimpleTex / Custom).
Handwriting and Image to LaTeX is an Obsidian plugin that lets you draw mathematical formulas directly on a canvas, or import images from your gallery, and convert them into LaTeX code using optical character recognition (OCR). It supports multiple API backends, with SimpleTex as the recommended (and free) option.
$...$), display ($$...$$), or raw LaTeX.Handwriting Recognition![]() |
Image Recognition![]() |
Inserted Result![]() |
https://github.com/ChongCyrus/handwriting-latex.Cmd/Ctrl+P).Go to Settings → Handwriting to LaTeX to configure:
| Setting | Description |
|---|---|
| API Provider | Choose SimpleTex, Mathpix, OpenAI, or Custom API. |
| API Key | Your API token/key. For SimpleTex, use your UAT (User Authorization Token). |
| API Endpoint | Required for Custom APIs (and optional for OpenAI). |
| Custom Prompt | Prompt sent to OpenAI or Custom JSON APIs. |
| Response Field | For Custom Form API: JSON field that contains the LaTeX result. |
| API Key Header | For Custom Form API: HTTP header name for your API key. |
| Image Field Name | For Custom Form API: form‑data field name for the image. |
| Math Insert Mode | Default insert style: inline, display, or raw. |
| Show Grid | Toggle background grid on the canvas. |
| Stroke Color | Pen color. |
| Stroke Width | Pen thickness. |
| Canvas Width/Height | Default canvas size in pixels. |
POST request with JSON body:{
"image": "data:image/png;base64,...",
"prompt": "your prompt"
}