Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Handwriting and Image to LaTeX

ChongCyrusChongCyrus253 downloads

Draw math formulas by hand or import from album, then convert them to LaTeX using AI APIs (SimpleTex / Custom).

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

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.


✨ Features

  • ✍️ Handwriting canvas – draw with your finger or mouse, with pen/eraser/pan modes.
  • 📷 Image import – load images from your device’s photo gallery.
  • 🧠 Formula recognition – powered by:
    • SimpleTex (recommended, free UAT token)
    • Custom APIs (JSON or multipart/form-data)
    • (Experimental) Mathpix, OpenAI GPT-4o Vision
  • 🎯 Smart crop – select exactly the region you want to recognize.
  • 🌀 Infinite canvas – auto‑expands, zoom & pan, rotate, undo, clear.
  • 📐 Math mode – insert as inline ($...$), display ($$...$$), or raw LaTeX.
  • 📱 Mobile friendly – fully optimized for touch devices.
  • 🎨 Customizable – stroke color/width, grid, default canvas size.

Sample images

Handwriting Recognition
Image Recognition
Inserted Result

📦 Installation

From Obsidian Community Plugins

  1. Open Settings → Community Plugins.
  2. Disable Safe Mode.
  3. Click Browse and search for “Handwriting to LaTeX”.
  4. Install and enable the plugin.

Manual (BRAT)

  1. Install the BRAT plugin.
  2. Add this repository: https://github.com/ChongCyrus/handwriting-latex.
  3. Enable the plugin.

🚀 Usage

Open the handwriting modal

  • Click the pencil icon in the ribbon (left sidebar).
  • Or run the command: “Open handwriting canvas” from the Command Palette (Cmd/Ctrl+P).

Drawing on the canvas

  • Pen mode (✏️) – draw freely.
  • Eraser mode (🧹) – tap/click strokes to remove them.
  • Hand mode (✋) – pan around the canvas.
  • Zoom – pinch on touch, or use mouse wheel.
  • Undo (↩️) – remove the last stroke.
  • Clear (🗑️) – erase everything.
  • Rotate (↺/↻) – rotate all strokes by 90°.
  • Fit view (⊘) – zoom to fit all content.
  • Reset view (🏠) – return to default zoom/pan.
  • Grid toggle (⊞) – show/hide background grid.

Recognizing a formula

  1. Draw your formula (or import an image via the 📷 or 🖼️ buttons).
  2. Click the “🔍 Recognize” button (top‑right or inside the crop window).
  3. The LaTeX result will appear in the right‑hand panel (or slide‑up on mobile).
  4. Choose your insert mode (inline/display/raw).
  5. Click “✅ Insert” – the LaTeX is inserted at your cursor position.

Importing images

  • Camera (📷) – opens your device camera (only works if Obsidian has camera permissions; on desktop this may not be available).
  • Album (🖼️) – opens your file picker to select an image.
  • After importing, you can crop the image to the formula area before recognition.

⚙️ Configuration

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.

🔐 API Setup Guides

SimpleTex (Recommended)

  1. Register at SimpleTex.
  2. Go to User Center → User Authorization Token.
  3. Create a token (UAT) and copy it.
  4. Paste it into the API Key field.

Custom API (JSON)

  • Your endpoint should accept a POST request with JSON body:
    {
      "image": "data:image/png;base64,...",
      "prompt": "your prompt"
    }
    
HealthExcellent
ReviewSatisfactory
About
Draw formulas or import images and convert them to LaTeX using OCR. Crop precisely, use an infinite touch-friendly canvas with zoom/pan/rotate, and insert results as inline, display, or raw LaTeX; choose from multiple backends including free SimpleTex, Mathpix, GPT-4o Vision or custom APIs.
LaTeXOCRDrawing
Details
Current version
1.2.0
Last updated
Last month
Created
Last month
Updates
3 releases
Downloads
253
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
ChongCyrusChongCyruschongcyrus
GitHubchongcyrus
  1. Community
  2. Plugins
  3. LaTeX
  4. Handwriting and Image to LaTeX

Related plugins

Latex OCR

Generate LaTeX equations from images in your vault or clipboard.

MathLive

Faster and more intuitive MathJax editing using MathLive.

Math+

Take math notes using Excalidraw.

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Mermaid Tools

Improved Mermaid.js experience: visual toolbar with common elements and more.

Ink

Handwriting and drawing directly between paragraphs using a digital pen, stylus, or Apple pencil.

Text Extractor

A (companion) plugin to facilitate the extraction of text from images (OCR) and PDFs.

TTRPG Tools - Maps

A toolbox for interactive fantasy maps.

Kroki

Render Kroki diagrams.

Simple mind map

A mind map that combines aesthetics and functionality. 一个颜值与功能并存的思维导图。