Auto Math

by Vladislav Sorokin
5
4
3
2
1
Score: 35/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

stars
215
downloads
0
forks
47
days
NaN
days
NaN
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

Invalid date

Changelog

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 – all expansions are stored in .obsidian/plugins/auto-math/rules.json (user-editable).

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

  • 🔹 Built-in math pack – includes 38 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.5 comes preloaded with 38 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\
\vec \vec{}
\hat \hat{}
\bar \bar{}
\overline \overline{}
\underline \underline{}
^^ ^{}
__ _{}
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 [ ]
\split \begin{split}...\end{split} Split equations

⚙️ 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 – view, add, delete, filter, sort, and edit your rules interactively.

  • Save rules to file – writes changes to the JSON file immediately.

  • Reset to default math pack – restores the built-in default rule set.


📐 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

If you'd like to add your own expansions, open auto-math.rules.json and add entries like:

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

Then click Reload rules now — your new triggers will be 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.
AI LaTeX Generator
2 years ago by Aayush Shah
An Obsidian plugin that generates latex code from natural language inputs.
Auto-\displaystyle Inline Math
2 years ago by Ryota Ushio
An Obsidian.md plugin to automatically make all inline maths \displaystyle.
Calctex
3 years ago by Mike
An Obsidian plugin for automatic calculation of LaTeX formulas.
Callout Manager
3 years ago by eth-p
An Obsidian.md plugin that makes creating and configuring callouts easy.
Cliplet
6 months ago by namikaze-40p
An Obsidian plugin that serves as a clipboard and snippet manager — your own, separate from the OS clipboard.
Completr
4 years ago by tth05
Auto-completion plugin for the obsidian editor.
Copy as LaTeX
4 years ago by mo-seph
Quick plugin to be able to copy/paste from Obsidian/Markdown into a Latex document
CSS Editor
3 years ago by Zachatoo
Edit CSS snippets in Obsidian.
Emoji Picker
a year ago by Ali Faraji
An up-to-date Emoji Picker for obisian.md, using emoji-mart.
Export To TeX
5 years ago by Zach Raines
export obsidian markdown files in a format that can be pasted into a TeX file
Extended MathJax
5 years ago by Xavier Denis & Ng Wei En
Format Automatically with Prettier
a year ago by Dylan Armstrong
Format with Prettier using built-in settings for Obsidian
Group Snippets
4 years ago by Mara-Li
Create folder of snippets to activate them in one click !
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
Inline Code Copy
a year ago by Hongchen Lin
Jelly Snippets
3 years ago by Spencer Gouw
A simple text snippets plugin for Obsidian.md. BACKUP SNIPPETS BEFORE UPDATING.
LaTeX Algorithms
3 years ago by SamZhang02
A simple plugin for writing Algorithms and pseudocodes in Obsidian.md
LaTeX autocomplete
6 months ago by Yanis Gerst
Latex Environments
5 years ago by Zach Raines
Quickly insert and change latex environments within math blocks in Obsidian.
Latex Exporter
a year ago by Matthew S. Scott
LaTeX Math
a year ago by Zarstensen
Integrated CAS (via. Sympy) plugin for Obsidian, with a LaTeX focused workflow.
Latex Matrices
3 years ago by Daniele Susino
An obsidian plugin to create latex matrices.
Latex OCR
2 years ago by Lucas Van Mol
Generate LaTeX equations from images in your clipboard or vault
LaTeX Panel Helper
5 months ago by Luster
A powerful and convenient LaTeX symbol panel for Obsidian to enhance your mathematical and scientific note-taking efficiency.
Latex Suite
4 years ago by artisticat1
Make typesetting LaTeX as fast as handwriting through snippets, text expansion, and editor enhancements
LaTeX to unicode converter
3 years ago by fjdu
Convert LaTeX commands into unicode sequences
LaTeX-OCR
2 years ago by Jack Barker
Local GPT
2 years ago by Pavel Frankov
Local Ollama and OpenAI-like GPT's assistance for maximum privacy and offline access
Math Booster
3 years ago by Ryota Ushio
A powerful indexing & referencing system for theorems & equations in your Obsidian vault.
Math Indicator Changer
2 years ago by Ori Replication
MathLive
3 years ago by Dan Zilberman
The must-have plugin for math in Obsidian
MathLive in Editor Mode
2 years ago by MizarZh
MathLive input in editor mode.
MathType
a year ago by slateblua
Type math faster
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 🖌.
No more flickering inline math
3 years ago by Ryota Ushio
No longer disturbed by flickering inline math in Obsidian.
Obsidian asciimath
3 years ago by widcardw
Asciimath support for Obsidian (based on asciimath-parser)
Obsidian matrix
4 years ago by Jonas Mohr
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
Plot Vectors and Graphs
2 years ago by Nicole Tan YiTong
Obsidian Plugin to generate graphs given the function.
Pseudocode
3 years ago by Yaotian Liu
An obsidian plugin that helps to render a LaTeX-style pseudocode inside a code block.
Quick LaTeX
5 years ago by joeyuping
Quick Matrix
5 months ago by Charlie Flowe
Plugin for Obsidian.md that allows for faster interactions with matrices in LaTeX
Quran Helper
2 years ago by Ammar Alakkad
Obsidian plugin to find and insert any Quran Ayah (verse) in your notes
Scrolling
10 months ago by omeyenburg
Obsidian plugin to keep your cursor centered, disable code wrapping, remember position in a file, and more.
Simple Tab Indent
a year ago by Thiago Frias
Slash snippets
10 months ago by echo-saurav
Insert snippet of text with slash command
Snippet Commands
5 years ago by death_au
Registers custom css snippets as commands (which you can bind hotkeys to)
Snippetor
4 years ago by ebullient
An assist for creating CSS snippets for Obsidian
Snippets
5 years ago by Pelao
Snippets Manager
2 years ago by Venkatraman Dhamodaran
Snippets Manager (Text Expander) For Obsidian
Snippetsaurus
a year ago by Christian Humbert
SwiftLaTeX Render
2 years ago by gboyd068
Text Snippets
5 years ago by Ariana Khitrova
Snippets plugin for obsidian
TikZJax
4 years ago by artisticat1
Render LaTeX and TikZ diagrams in your notes
Transfer LaTeX from GPT
a year ago by Xixia
Typst Mate
3 months ago by azyarashi
Render math expressions with Typst instead of MathJax in Obsidian.
Vimrc Support
6 years ago by esm
A plugin for the Obsidian.md note-taking software
Wypst
2 years ago by 0xpapercut
High quality rendering of Typst in Obsidian, powered by wypst.