-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Documentation for Auto Math plugin — automatic LaTeX snippet expansion in Obsidian.
Auto Math is designed to simplify LaTeX input without replacing standard LaTeX syntax with custom keywords or shortcuts you need to learn separately.
The plugin expands familiar LaTeX commands like \frac, \sqrt, and \sum into ready-to-edit templates, preserving the standard LaTeX workflow you already know. There are only two deliberate shortcuts: ^^ for superscripts (^{}) and __ for subscripts (_{}), added for convenience when typing quickly.
I don't aim to include every possible LaTeX command — instead, rules are added thoughtfully as needed. As a mathematics student, I'm developing this plugin alongside my studies, and it significantly helps with writing assessments. If you have suggestions or questions, please open an issue on GitHub.
Core Pages:
- Getting Started — installation and first commands
-
Fractions — when to use
\frac,\dfrac,\tfrac,\cfrac - Smart Limits — context-aware integrals and sums
- Default Rules List - default rules list
- Custom Rules — add your own commands
Auto Math automatically expands LaTeX commands as you type.
Example:
Type: $\frac [space]
Get: $\frac{}{}
Cursor automatically positioned inside first {}.
Smart Limits
\int and \sum adapt to context:
-
$\int [space]→\int_{}^{}(inline) -
$$\int [space]→\int\limits_{}^{}(display)
See Smart Limits for details.
Custom Rules
Add your own commands via JSON file or built-in editor.
See Custom Rules for details.
Live Reload
Changes to rules file apply instantly, no restart needed.
Writing equations by hand:
$\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$You type every character, position cursor manually, easy to make mistakes.
With Auto Math:
- Type
$\frac [space]→ cursor in numerator - Type
-b \pm \sqrt [space]→ cursor in sqrt - Fill in, move to denominator
- Done
3-5× faster with fewer errors.
Auto Math includes 30+ commands:
Operators: \frac, \sqrt, \sum, \int, \lim
Formatting: \text, \vec, \hat, \bar
Environments: \align, \matrix, \cases
Full list in Getting Started.
Auto Math provides 4 fraction types. Why?
\frac — adapts to context
Inline: $\frac{a}{b}$
Display: $$\frac{a}{b}$$Renders as:
Inline:
Display:
\dfrac — always large
Emphasize in text: $\dfrac{\pi d^2}{4}$Renders as:
Emphasize in text:
\tfrac — always small
In exponents: $e^{\tfrac{i\pi}{2}}$Renders as:
In exponents:
\cfrac — continued fractions
$$\phi = 1 + \cfrac{1}{1 + \cfrac{1}{1 + \ddots}}$$Renders as:
Each has a specific purpose. See Fractions for when to use which.
- [GitHub Issues](https://github.com/loglux/auto-math-for-obsidian/issues) — report bugs
- ⭐ [Star on GitHub](https://github.com/loglux/auto-math-for-obsidian)
- 📝 Improve documentation
- 🐛 Report bugs
- 💡 Suggest features
Last updated: 30 November 2025