dingzy5354 downloadsNumber display equations only when they are linked, and show those links as equation numbers in reading view, live preview, and PDF export.
Number display equations in Obsidian only when you link to them, and show the links as the numbers, like LaTeX's \eqref.
[[note#^label]]). No new syntax, and your notes are never modified.From the community directory (recommended)
You can also open the plugin's page: community.obsidian.md/plugins/equation-refs.
Manually
main.js, manifest.json and styles.css from the latest release.<vault>/.obsidian/plugins/.equation-refs there and put the three files in it.Beta versions: install BRAT and add dingzy53/obsidian-equation-refs.
Update or remove: select Check for updates or Uninstall in Settings → Community plugins.
Give a display equation a block ID, then link to it:
$$
\nabla \cdot \mathbf{E} = \frac{\rho}{\varepsilon_0}
$$
^gauss
By [[#^gauss]], … → By (1), …
See [[Maxwell#^gauss]] for details. → See Maxwell (1) for details.
See [[Maxwell#^gauss|Gauss's law]]. → aliased links are left unchanged
You don't have to type the ID yourself. Type [[Maxwell#^, and Obsidian's link suggestions list the note's blocks and create the ^id for you.
In Live Preview, a reference shows its number until you move the cursor into it. Then it shows the raw link so you can edit it. Click a reference to open it, and Ctrl/Cmd-hover to preview it.
![[…]]) don't count, because they aren't references.\tag{x} is respected. References show (x), and the equation doesn't use up a number.\notag or \nonumber keeps an equation unnumbered even if it is linked.| Setting | Default | Placeholders |
|---|---|---|
| Same-note reference format | ({n}) |
{n} is the number |
| Other-note reference format | {note} ({n}) |
{n} is the number, {note} is the note name |
Example: set the other-note format to {note}, eq. ({n}) to get Maxwell, eq. (1).
Override these CSS variables in a snippet:
body {
--eqref-number-font: var(--font-text);
--eqref-number-color: var(--text-normal);
--eqref-number-size: var(--font-text-size);
--eqref-number-gutter: 3em; /* space kept free on both sides of a numbered equation */
}
Numbered equations have the class eqref-numbered, and the number is in their data-eq-number attribute. Formatted links have the class eqref-link.
$$ blocks are numbered. Equations inside callouts, block quotes or lists aren't.$$ block gets one number. There's no per-line numbering in align; use \tag{} by hand if you need it.Equation Citator, Latex Equation References, Auto Equation Numbering and Equation Ordinal use LaTeX-style \label/\ref syntax or write numbers into your files. Equation Refs instead uses Obsidian's native block links, numbers only the equations you link to, and never edits your notes.
npm install
npm run dev # rebuild main.js on change
npm run build # type-check and production build
npm run lint # eslint with eslint-plugin-obsidianmd (the rules the community review uses)
npm test # unit tests for src/core
test-vault/ has example notes. Open it as a vault and link the build output into test-vault/.obsidian/plugins/equation-refs/. See PLAN.md for the design.
Inspired by LaTeX-like Theorem & Equation Referencer (formerly Math Booster) by Ryota Ushio, released under the MIT License. Equation Refs reimplements only its equation-numbering and referencing idea, from scratch. Thank you for the original work.
MIT © 2026 Ding Zheng Yuan