Auto Math

by Vladislav Sorokin
5
4
3
2
1
Score: 53/100

Description

The Auto Math plugin expands standard LaTeX triggers directly in the Obsidian editor so maths markup turns into ready-to-fill structures as you type. It is focused on fast, predictable snippet expansion for equations, integrals, limits, matrices and other common math environments, without popup menus or a separate shortcut system to learn. It is highly configurable: rules live in a JSON file, can be edited through settings, and reload live while the plugin is running. It works entirely offline and ships with a built-in default rule pack

Reviews

No reviews yet.

Stats

2
stars
1,168
downloads
0
forks
184
days
13
days
13
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
50
commits

Latest Version

13 days ago

Changelog

What's new

  • Experimental "Copy as Maxima" converter - with the new "Maxima converter (beta)" setting enabled, right-click a selection in math mode to convert it to Maxima syntax and preview it before copying. Covers fractions, roots, exponents/subscripts, integrals, sums, products, limits, trig/log functions, absolute value, common constants, and matrices. Off by default; complex or unusual LaTeX may not convert cleanly.

README file from

Github

📐 Auto Math for Obsidian

✍️ Write equations at the speed of thought — automatic LaTeX snippet expansion for Obsidian.

Auto Math automatically expands LaTeX-style math snippets while you type in Obsidian.
It's like a mini LaTeX auto-completion engine — lightweight, fast, and entirely local.


✨ Features

  • 🔹 Instant snippet expansion – type \frac, \sqrt, \sum, etc., and get ready-to-edit templates.

  • 🔹 Smart Limits – optional context‑aware behaviour for ∫ (disabled by default):

    • $…$ → compact form (\int_{}^{})
    • $$…$$ → display form with limits (\int\limits_{}^{})
  • 🔹 Multiline templates – environments like \align expand across multiple lines with proper formatting.

  • 🔹 Custom rule file – your additions and overrides live in .obsidian/plugins/auto-math/rules.json (user-editable), layered on top of the built-in pack — you only need to list what you've changed, not the whole pack.

  • 🔹 Live reload – changes in the rules file are applied immediately, no restart required.

  • 🔹 Built-in math pack – includes 48 essential LaTeX commands.

  • 🔹 Custom Rules Editor – edit triggers and expansions directly inside Obsidian settings.

  • 🔹 Toggle anytime – quickly enable or disable with the ribbon icon or command palette.


🆚 How Auto Math Differs from Other Plugins

There are several LaTeX-related plugins available for Obsidian. Here's how Auto Math compares:

Feature Auto Math Latex Suite Quick LaTeX Completr
Approach Instant trigger expansion Snippets + shortcuts Auto-completion menu General autocomplete
Triggers Standard LaTeX commands Custom shortcuts Mixed Various
Learning curve Minimal Steeper Moderate Moderate
Configuration Simple JSON file Complex config Settings UI Multiple sources
Focus Math snippets only Full LaTeX workflow LaTeX shortcuts All text types
Popup menus None Optional Yes Yes
Why choose Auto Math?
  1. No new shortcuts to learn — Triggers are standard LaTeX commands (\frac, \sqrt, \int). If you know LaTeX, you already know how to use Auto Math. Perfect for beginners learning LaTeX.

  2. Simplicity — Does one thing well: expand triggers instantly. No menus, no popups, no complex configuration.

  3. Predictability — Every trigger expands exactly the same way, every time. No magic, no surprises.

  4. Flexibility — All rules are stored in a simple JSON file. Edit it directly or use the built-in settings editor.

  5. Lightweight — Zero dependencies, minimal footprint, works entirely offline.

Best for: Users who want fast, predictable LaTeX snippet expansion without learning new shortcuts or dealing with complex configuration.

For detailed documentation, tutorials, and examples, visit the Auto Math Wiki.


🧮 Default Rule Pack

Auto Math v0.2.9 comes preloaded with 48 essential triggers:

Basic Commands
Trigger Expands to
\frac \frac{}{}
\dfrac \dfrac{}{}
\tfrac \tfrac{}{}
\cfrac \cfrac{}{}
\binom \binom{}{}
\dbinom \dbinom{}{}
\tbinom \tbinom{}{}
\text \text{}
\sqrt \sqrt{}
\root \sqrt[]{}
\pow {}^{}
\abs \left|{}\right|
\norm `\left\
\paren \left({}\right)
\brack \left[{}\right]
\brace \left\{{}\right\}
\vec \vec{}
\hat \hat{}
\bar \bar{}
\overline \overline{}
\underline \underline{}
\substack \substack{}
^^ ^{}
__ _{}
Sums, Integrals & Limits
Trigger Expands to
\sum \sum_{}^{}
\int \int_{}^{}
\lim_ \lim_{}
\limsup \limsup_{}
\liminf \liminf_{}
\max \max_{}
\min \min_{}
\inf_ \inf_{}
\sup \sup_{}
Logarithms
Trigger Expands to
\log \log_{}
LaTeX Environments
Trigger Expands to Use case
\align \begin{align}...\end{align} Aligned equations (with numbering)
\aligned \begin{aligned}...\end{aligned} Aligned equations (no numbering)
\gather \begin{gather}...\end{gather} Centred equations
\cases \begin{cases}...\end{cases} Piecewise functions
\array \begin{array}{}...\end{array} Custom arrays
\matrix \begin{matrix}...\end{matrix} Matrix (no brackets)
\pmatrix \begin{pmatrix}...\end{pmatrix} Matrix with ( )
\bmatrix \begin{bmatrix}...\end{bmatrix} Matrix with [ ]
\vmatrix \begin{vmatrix}...\end{vmatrix} Matrix with | | (determinant)
\Vmatrix \begin{Vmatrix}...\end{Vmatrix} Matrix with ‖ ‖ (double bars)
\smallmatrix \begin{smallmatrix}...\end{smallmatrix} Compact matrix for inline math
\split \begin{split}...\end{split} Split equations
\multline \begin{multline}...\end{multline} Long equation, first/last line aligned to margins
\alignat \begin{alignat}{}...\end{alignat} Aligned equations with explicit column count

⚙️ Installation

Manual
  1. Download the latest release from the Releases page.

  2. Extract the folder auto-math into your vault under:

    .obsidian/plugins/auto-math/
    
  3. Enable Auto Math in Settings → Community Plugins → Installed plugins.

  4. That's it — start typing \frac, \sqrt, \sum and watch them expand automatically!


🧰 Configuration

Open Settings → Auto Math to customise:

  • Enabled – toggle Auto Math on/off.

  • Rules file path – defaults to .obsidian/plugins/auto-math/rules.json.

  • Smart Limits – context‑aware expansions for ∫ (disabled by default, enable in settings if needed).

  • Reload / Create / Open – reload or open your external rules file.

  • Debug logs – show extra information in the developer console.

  • Custom Rules Editor – "Your rules" lists only your own additions/overrides on top of the built-in pack (badged as Custom or Modified built-in). Give a rule the same trigger as a built-in to override it.

  • Save rules to file – writes your overlay (not the whole pack) to the JSON file immediately.

  • Copy your rules as JSON – copies just your overlay to the clipboard, for backup or moving to another vault.

  • Reset to default math pack – clears all customisations, back to a clean install.


📐 Multiline Maths Mode

Auto Math now supports Smart Limits in multiline $$...$$ blocks.

Example:

$$
\int x dx  ← expands to \int\limits_{}^{}
$$

The plugin automatically scans neighbouring lines (up to 50 by default) to detect display maths context.

Technical note: The scan depth can be adjusted by modifying maxScanLines in the plugin settings file (default: 50 lines). This is stored in .obsidian/plugins/auto-math/data.json.


LaTeX Environments

Auto Math includes snippets for common LaTeX environments. These automatically expand into multiline blocks with proper formatting.

Example Usage

Input:

$$
\align
$$

Expands to:

$$
\begin{align}
| ← cursor here
\end{align}
$$

Then you can write your equations with \\ for line breaks:

$$
\begin{align}
x + y &= 5 \\
x &= 5 - y
\end{align}
$$

Result: $$ \begin{align} x + y &= 5 \ x &= 5 - y \end{align} $$


💡 Customisation Example

rules.json is an overlay on top of the built-in pack, not a full replacement — list only what you want to add or change, and every built-in trigger you didn't mention stays active as-is (including any added in a later update).

[
  { "trigger": "\\ceil", "expand": "\\left\\lceil{}\\right\\rceil" },
  { "trigger": "\\floor", "expand": "\\left\\lfloor{}\\right\\rfloor" },
  { "trigger": "\\bmatrix", "expand": "\\begin{bmatrix}\n & \\\\\n\\end{bmatrix}" }
]

The \bmatrix entry above overrides the built-in template (same trigger, different expansion). Adding a new trigger like \ceil just extends the pack.

Then click Reload rules now — your changes are active instantly.


🪶 Notes

  • The plugin works fully offline and doesn't require any external dependencies.

  • Uses plain JSON and Obsidian's own vault API.

  • Safe to edit while running — changes are detected automatically.


Documentation

For more details, tips, and extended explanations, check the project Wiki: https://github.com/loglux/auto-math-for-obsidian/wiki


🧑‍💻 Credits

Released under the MIT licence.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Style Settings
5 years ago by mgmeyers
A dynamic user interface for adjusting theme, plugin, and snippet CSS variables within Obsidian
Latex Suite
4 years ago by artisticat1
Make typesetting LaTeX as fast as handwriting through snippets, text expansion, and editor enhancements
Hover Editor
4 years ago by NothingIsLost
Transform the Page Preview hover into a working editor instance
Callout Manager
4 years ago by eth-p
An Obsidian.md plugin that makes creating and configuring callouts easy.
Quick LaTeX
5 years ago by joeyuping
Vimrc Support
6 years ago by esm
A plugin for the Obsidian.md note-taking software
Local GPT
3 years ago by Pavel Frankov
Local Ollama and OpenAI-like GPT's assistance for maximum privacy and offline access
CSS Editor
3 years ago by Zachatoo
Edit CSS snippets in Obsidian.
Completr
5 years ago by tth05
Auto-completion plugin for the obsidian editor.
TikZJax
4 years ago by artisticat1
Render LaTeX and TikZ diagrams in your notes
Extended MathJax
6 years ago by Xavier Denis & Ng Wei En
Bible Reference
2 months ago by tim-hub
Take Bible Study notes easily in the popular note-taking app Obsidian, with automatic verse and reference suggestions.
draw.io
3 months ago by somesanity
A plugin for Obsidian that integrates the draw.io editor into Obsidian.
Text Snippets
6 years ago by Ariana Khitrova
Snippets plugin for obsidian
Math+
4 months ago by ocapraro
This is an Obsidian plugin for taking math notes using Excalidraw.
MySnippets
5 years ago by Chetachi
MySnippets is a plugin that adds a status bar menu allowing the user to quickly manage their snippets within the comfort of their workspace 🖌.
Excalidraw Extras
3 months ago by zsviczian
Companion Obsidian.md plugin hosting extra add-on optional features for the main Excalidraw-Obsidian plugin
MathLive
3 years ago by Dan Zilberman
The must-have plugin for math in Obsidian
Latex Environments
6 years ago by Zach Raines
Quickly insert and change latex environments within math blocks in Obsidian.
Pieces for Developers
3 years ago by Pieces For Developers
Pieces' powerful extension for Obsidian-MD that allows users to access their code snippets directly within the Obsidian workspace
Journalit
2 months ago by Cursive
Obsidian trading journal with broker sync, trade imports, analytics, prop firm tracking, reviews and rule-based trading workflows.
Sync Embeds
4 months ago by uthvah
Transform static embeds into live synced blocks in Obsidian.
Pseudocode
3 years ago by Yaotian Liu
An obsidian plugin that helps to render a LaTeX-style pseudocode inside a code block.
MP Publisher
3 months ago by joeytoday
自定义主题预览,并发布到公众号草稿箱。
Typst Mate
7 months ago by azyarashi
Render math expressions with Typst instead of MathJax in Obsidian.
Latex OCR
3 years ago by Lucas Van Mol
Generate LaTeX equations from images in your clipboard or vault
Copy as LaTeX
5 years ago by mo-seph
Quick plugin to be able to copy/paste from Obsidian/Markdown into a Latex document
Slash snippets
a year ago by echo-saurav
Insert snippet of text with slash command
Snippetor
5 years ago by ebullient
An assist for creating CSS snippets for Obsidian
Export To TeX
6 years ago by Zach Raines
export obsidian markdown files in a format that can be pasted into a TeX file
Calctex
3 years ago by Mike
An Obsidian plugin for automatic calculation of LaTeX formulas.
No more flickering inline math
3 years ago by Ryota Ushio
No longer disturbed by flickering inline math in Obsidian.
Obsidian asciimath
4 years ago by widcardw
Asciimath support for Obsidian (based on asciimath-parser)
Snippet Commands
5 years ago by death_au
Registers custom css snippets as commands (which you can bind hotkeys to)
Scrolling
a year ago by omeyenburg
Obsidian plugin to keep your cursor centered, disable code wrapping, remember position in a file, and more.
LaTeX Math
a year ago by Zarstensen
Integrated CAS (via. Sympy) plugin for Obsidian, with a LaTeX focused workflow.
Snippets Manager
2 years ago by Venkatraman Dhamodaran
Snippets Manager (Text Expander) For Obsidian
Simple Tab Indent
a year ago by Thiago Frias
Snippets
6 years ago by Pelao
Image2LaTEX
3 years ago by Hugo Persson
This is a plugin for obsidian that will read your latest copied image from clipboard and generate math latex from it
Jelly Snippets
3 years ago by Spencer Gouw
A simple text snippets plugin for Obsidian.md. BACKUP SNIPPETS BEFORE UPDATING.
LaTeX Algorithms
4 years ago by SamZhang02
A simple plugin for writing Algorithms and pseudocodes in Obsidian.md
Cliplet
a year ago by namikaze-40p
An Obsidian plugin that serves as a clipboard and snippet manager — your own, separate from the OS clipboard.
SwiftLaTeX Render
3 years ago by gboyd068
Group Snippets
4 years ago by Mara-Li
Create folder of snippets to activate them in one click !
Latex Matrices
3 years ago by Daniele Susino
An obsidian plugin to create latex matrices.
LaTeX to unicode converter
3 years ago by fjdu
Convert LaTeX commands into unicode sequences
Wypst
3 years ago by 0xpapercut
High quality rendering of Typst in Obsidian, powered by wypst.
Latex Exporter
2 years ago by Matthew S. Scott
MathLive in Editor Mode
2 years ago by MizarZh
MathLive input in editor mode.
Math Indicator Changer
2 years ago by Ori Replication
Transfer LaTeX from GPT
2 years ago by Xixia
LaTeX-OCR
3 years ago by Jack Barker
Emoji Picker
2 years ago by Ali Faraji
An up-to-date Emoji Picker for obisian.md, using emoji-mart.
Quran Helper
2 years ago by Ammar Alakkad
Obsidian plugin to find and insert any Quran Ayah (verse) in your notes
LaTeX Panel Helper
9 months ago by Luster
A powerful and convenient LaTeX symbol panel for Obsidian to enhance your mathematical and scientific note-taking efficiency.
Fix Tab Size
4 months ago by mnaoumov
Obsidian plugin that fixes tab size according to the settings.
MathType
a year ago by slateblua
Math typing plugin for Obsidian
Plot Vectors and Graphs
2 years ago by Nicole Tan YiTong
Obsidian Plugin to generate graphs given the function.
AI LaTeX Generator
2 years ago by Aayush Shah
An Obsidian plugin that generates latex code from natural language inputs.
Format Automatically with Prettier
a year ago by Dylan Armstrong
Format with Prettier using built-in settings for Obsidian
Snippetsaurus
2 years ago by Christian Humbert
LaTeX autocomplete
10 months ago by Yanis Gerst
Offline Whisper Transcription
2 months ago by David Manthey
Inline Code Copy
2 years ago by Hongchen Lin
Just Simple Excalidraw
a month ago by David Hurt
A local-first Excalidraw editor for native .excalidraw files in Obsidian, preserving the original's brilliant simplicity.
Inline TikZ
a month ago by Lachlan Harris
Render seamless Tikz, CircuiTikz & other PGFPlots LaTeX diagrams directly in your notes.
Quick Matrix
10 months ago by Charlie Flowe
Plugin for Obsidian.md that allows for faster interactions with matrices in LaTeX
Markdown Cleaner
4 months ago by gao-qian-long
Obsidian格式化markdown插件