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
  • Join the community
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Latex OCR

lucasvanmollucasvanmol12k downloads

Generate LaTeX equations from images in your vault or clipboard.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates25

⚠️ Inference API issues ⚠️

The HuggingFace Inference API is not working as Hugging Face is currently not supporting image-to-text models. Check the issue here for updates. Running locally is still supported & working.

Generate Latex equations from images and screenshots inside your vault.

Features

  • Paste LaTeX equations directly into your notes using an image from your clipboard with a custom command (bind it to a hotkey like Ctrl+Alt+V if you use it often!).
  • Transform images in your vault to LaTeX equations by choosing a new "Generate Latex" option in their context menu.
  • Use either the HuggingFace inference API or run locally

Using Inference API

By default, this plugin uses the HuggingFace inference API. Here's how you get your API key:

  • Create an account or login at https://huggingface.co
  • Create a read access token in your Hugging Face profile settings. If you already have other access tokens I recommend creating one specifically for this plugin.
  • After enabling the plugin in Obsidian, head to the Latex OCR settings tab, and input the API key you generated.

Limitations

  • The inference API is a free service by huggingface, and as such it requires some time to be provisioned. Subsequent requests should be a lot faster.
  • If you would be interested in a low-cost subscription-based service that would get rid of this annoying waiting period, please react to the related issue here. I will consider building it if there is enough demand to pay for the server costs.

Run Locally

Alternatively, you can run the model locally. This requires installing an accompanying python package. Install it using pip (or, preferably pipx):

pip install latex-ocr-server

You can check if it is installed by running

python -m latex_ocr_server --version

Configuration

Open Obsidian and navigate to the Community Plugins section and enable the plugin. Then head to the LatexOCR settings tab, enable "Use local model" and configure it.

settings

You will first need to set the python path that the plugin will use to run the model in the LatexOCR settings. You can then check if it's working using the button below it. Once this is done, press "(Re)start Server".

Note that the first time you do this, the model needs to be downloaded from huggingface, and is around ~1.4 GB. You can check the status of this download in the LatexOCR settings tab by pressing "Check Status".

The status bar at the bottom will indicate the status of the server.

Status Meaning
LatexOCR ✅ server online
LatexOCR ⚙️ server loading
LatexOCR 🌐 downloading model
LatexOCR ❌ server unreachable

If the server is online but you encounter an error getting a response from the server, ensure that the Cache dir filepath from the plugin settings is pointing to a valid folder and that the model has successfully been saved there.

GPU support

You can check if GPU support is working by running:

python -m latex_ocr_server info --gpu-available

If you want GPU support, follow the instructions at https://pytorch.org/get-started/locally/ to install pytorch with CUDA. Note you may need to uninstall torch first. torchvision and torchaudio is not required.

Attribution

Massive thanks to NormXU for training and releasing the model.

76%
HealthGood
ReviewCaution
About
Generate LaTeX equations from images and screenshots inside your vault. Paste LaTeX from the clipboard or convert vault images via a Generate Latex context command, using the HuggingFace Inference API or a local OCR server (local mode works reliably while the API has image-to-text issues).
OCRLaTeXImages
Details
Current version
0.8.0
Last updated
5 months ago
Created
2 years ago
Updates
25 releases
Downloads
12k
Compatible with
Obsidian 0.15.0+
License
GPL-3.0
Report bugRequest featureReport plugin
Sponsor
Buy Me a Coffee
Author
lucasvanmollucasvanmol
github.com/lucasvanmol
GitHublucasvanmol
  1. Community
  2. Plugins
  3. OCR
  4. Latex OCR

Related plugins

AI Image OCR

Extracts text from images using AI Vision models.

MathLive

Faster and more intuitive MathJax editing using MathLive.

Omnisearch

Intelligent search for your notes, PDFs, and OCR for images.

Text Extractor

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

PlantUML

Generate PlantUML diagrams.

Local images plus

A reincarnation of Local Images to download images in Markdown notes to local storage.

Pretty Properties

Makes note properties look more fun: adds side image, banners, list property colors and allows to hide specific properties.

Pixel Banner

Enhance your notes with customizable banner images.

Paste image rename

Rename image after pasting, support name pattern and auto renaming.

Note Companion AI

AI-powered note organization and chat. Requires subscription or self-hosting with your own API keys.