Ken Graham19 downloadsAttach color-coded labels and leader lines to LaTeX equations.
Label individual terms in a LaTeX equation in Obsidian. Each label matches its highlighted term and connects to it with a leader line. Equations render in Reading view and Live Preview.

annotated-equations.zip from the latest release.annotated-equations folder into your vault's .obsidian/plugins/ folder.Paste this block into a note to reproduce the screenshot.
```annotated-equation
E = \annotate[above,blue]{\frac{1}{2}mv^2}{Kinetic energy}
+ \annotate[below,teal]{mgh}{Gravitational potential energy}
```
Leave out the options to place a label below its term in your theme's accent color. Supply just above to move the label above its term.
```annotated-equation
F = \annotate{m}{Mass}\,\annotate[above]{a}{Acceleration}
```
Use aligned for multiple lines. Wrap a label in single dollar signs to typeset it as math.
```annotated-equation
\begin{aligned}
s(t) &= \annotate[above,purple]{\tfrac12 at^2}{Displacement} \\
v(t) &= \annotate[below,teal]{at}{$\mathrm{m\,s^{-1}}$}
\end{aligned}
```
Use \annotate[position,color]{LaTeX term}{label} inside an annotated-equation fence. Write the rest of the equation as you would inside an Obsidian math block. The fence replaces the $$ delimiters.
above or below for the position and accent, blue, teal, green, orange, red, or purple for the color.below and accent.\annotate commands before pasting.Scroll wide equations horizontally to see every label.
Run npm ci and npm run build. Copy main.js, manifest.json, and styles.css into your vault's .obsidian/plugins/annotated-equations/ folder. Run npm test to check annotation parsing and label placement.
Inspired by synercys/annotated_latex_equations.