Easy LaTeX

approved

by mingw

Autocomplete LaTeX commands with Chinese/English/Janpanese/Korean support in math contexts, supporting AI too. - This plugin has not been manually reviewed by Obsidian staff.

1 stars261 downloadsUpdated 1mo agoMIT

English | 中文

Obsidian Easy LaTeX

An Obsidian plugin that provides intelligent LaTeX auto-completion in math contexts, with multilingual keyword support (Chinese, Japanese, Korean, English) and AI-powered formula generation.

Features

LaTeX Command Completion

Type \ inside math contexts ($...$, $$...$$, or LaTeX code blocks) to get a searchable suggestion list of 200+ LaTeX commands. Filter by prefix or description.

Multilingual Keyword Completion

Type math terms in your language directly in math contexts — no backslash needed. The plugin matches them to relevant LaTeX commands.

  • Chinese: 积分\int, 矩阵\begin, 约等于\approx (prefix matching supported)
  • Japanese: せきぶん\int, ぎょうれつ\begin, ぶんすう\frac
  • Korean: 적분\int, 행렬\begin, 분수\frac
  • English: type \keyword in math mode (e.g., \frac\frac{}{})

Custom Keyword Mappings

Define your own keyword-to-LaTeX mappings in Settings → Easy LaTeX → Custom Keyword Mappings.

  • Latin keywords: type \keyword in math mode to trigger. E.g., map div\frac{$1}{$2}, then typing \div suggests \frac{}{} with cursor positioned inside the first {}.
  • CJK keywords (Chinese/Japanese/Korean): type the keyword directly. E.g., map 分数\frac{$1}{$2}, then typing 分数 replaces it with \frac{}{}.
  • Snippets support $1, $2 tabstop placeholders for cursor positioning.

Example: Map div\frac{$1}{$2}. Now typing \div in a math zone shows your custom \frac{}{} suggestion alongside the built-in \div (÷).

FieldDescriptionExample
KeywordThe trigger textdiv, 分数, ぶんすう, 분수, bracket
LaTeX SnippetThe LaTeX to insert (include \ prefix)\frac{$1}{$2}, \left($1\right)

AI Formula Generation

Press Tab on selected text inside a math zone, and the AI will convert your natural language description into LaTeX code. Works with any OpenAI-compatible API.

Installation

Obsidian Community Plugin Store

  1. Open Obsidian Settings → Community Plugins
  2. Click Browse and search for "Easy LaTeX"
  3. Click Install, then Enable

Manual

  1. Download main.js, styles.css, and manifest.json from the latest release
  2. Create a folder easy-latex inside your vault's .obsidian/plugins/ directory
  3. Copy the three files into that folder
  4. Enable the plugin in Obsidian Settings → Community Plugins

AI Configuration

Go to Settings → Easy LaTeX to configure:

SettingDescriptionDefault
API URLOpenAI-compatible API endpointhttps://api.openai.com/v1/chat/completions
API KeyYour API key
ModelModel name (e.g., gpt-4o-mini, deepseek-chat)gpt-4o-mini
System PromptSystem prompt sent to the AIBuilt-in LaTeX converter prompt

The AI feature is optional — the completion list works without any API configuration.

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.