Skip to content

This is a plugin for obsidian that will read your latest copied image from clipboard and generate math latex from it

License

Notifications You must be signed in to change notification settings

Mideks/obsidian-ocrlatex

 
 

Repository files navigation

About 🗞️

This extension takes your latest copied image from your clipboard and converts the math to latex and inserts it at your position in the editor. See GIF below for example of usage with a keybinding: A couple of things happen here

  1. I take a screenshot of the formula on the left
  2. I use a keybinding to trigger the OCRToLatex
  3. A loading indicator is inserted

Getting started 🚀

To get started first get an api token, see below. Then go to settings and insert it. After this you are ready to use the plugin. Try to snip a math formula to your clipboard and run the command Generate latex from last image to clipboard

Getting API Token 🔐

To use this plugin you need to create a developer account at https://simpletex.cn. Below I describe how to do this

  1. Go to https://simpletex.cn/api
  2. Click "Go to API Dashboard"
  3. Create an account
  4. After this go to User Access Token and click Create token
  5. Copy the token and paste into Obsidian settings
  6. Now you are ready to use the addon 🥳

Future improvements ✅

Attribution

Thanks to these libraries and services for making this plugin possible

About

This is a plugin for obsidian that will read your latest copied image from clipboard and generate math latex from it

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 67.3%
  • JavaScript 29.7%
  • CSS 3.0%