Annotated Equations

approvedunreviewed

by Ken Graham

Attach color-coded labels and leader lines to LaTeX equations.

↓ 19 downloadsUpdated 4d agoMIT

Annotated 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.

An equation in Obsidian with a blue label above the kinetic energy term and a teal label below the gravitational potential energy term

Install manually

  1. Use Obsidian 1.15.0 or later.
  2. Download and unzip annotated-equations.zip from the latest release.
  3. Move the extracted annotated-equations folder into your vault's .obsidian/plugins/ folder.
  4. Restart Obsidian and enable Annotated Equations under Settings → Community plugins.

Examples

Label two terms

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}
```

Use the default color

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}
```

Label an aligned equation with text and math

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}
```

Annotation syntax

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.

  • Use above or below for the position and accent, blue, teal, green, orange, red, or purple for the color.
  • Omit the options to use below and accent.
  • Labels accept plain text or a single math expression enclosed in dollar signs.
  • Translate existing TikZ annotations into \annotate commands before pasting.

Scroll wide equations horizontally to see every label.

Build from source

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.

License

MIT

Inspired by synercys/annotated_latex_equations.

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.