Formula OCR
pendingby streetartist
Handwrite math formulas on a canvas and recognize them as LaTeX using SimpleTex API.
Obsidian Formula OCR
Handwrite math formulas on a canvas and recognize them as LaTeX using SimpleTex API.
Features
- Canvas Drawing: Touch and mouse support, optimized for mobile devices
- Pen & Eraser: Switch between pen and eraser mode to refine your drawing
- Stroke Controls: Undo, clear, adjustable pen width and color
- Formula Recognition: Powered by SimpleTex OCR (turbo / standard models)
- Editable Result: Edit the recognized LaTeX text before inserting
- Live Preview: Real-time MathJax preview that updates as you edit
- Format Options: Insert as inline
$...$or block$$...$$ - Redraw: Go back to the canvas to re-draw if the result is wrong
- One-tap Insert: Insert result at cursor position in the editor
Usage
- Open command palette → Handwritten Formula Recognition
- Draw your formula on the canvas (use Pen/Eraser/Undo/Clear to refine)
- Tap Recognize to send to SimpleTex API
- Edit the LaTeX result if needed, preview updates in real-time
- Tap Redraw to go back and re-draw, or Insert to place the formula in your note
Installation
From Community Plugins (Recommended)
- Open Obsidian Settings → Community Plugins → Browse
- Search for Formula OCR
- Install and enable
From BRAT
- Install BRAT
- Add beta plugin:
streetartist/obsidian-formula-ocr
Manual
- Download
main.js,manifest.json,styles.cssfrom the latest release - Create folder
.obsidian/plugins/formula-ocr/in your vault - Place the three files inside
- Enable the plugin in Obsidian settings
Configuration
| Setting | Description | Default |
|---|---|---|
| SimpleTex Access Token | Your UAT from simpletex.cn | — |
| API Endpoint | Turbo (fast) or Standard (accurate) | Turbo |
| Formula Format | Inline $...$ or Block $$...$$ | Inline |
| Stroke Color | Pen color on canvas | #000000 |
| Stroke Width | Pen thickness (1–10) | 3 |
Getting a SimpleTex Token
- Register at simpletex.cn
- Go to your account dashboard
- Copy your User Access Token (UAT)
- Paste it in the plugin settings
License
MIT
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.