Skip to content

Equations & math

A note with latex-env: equation (or align, gather, multline, alignat) wraps its single $$…$$ block in the matching math environment, numbered and referencable as "Equation N". Multi-line alignments use & and \\ as usual.

Open PDF

Source notes

---
title: "Feature: Equations"
author: MrIwan
notitlepage: true
toc: false
---

# Equations

Source note `Navier-Stokes.md` carries `latex-env: equation` and one `$$…$$` block.

![[eq-navier-stokes]]

Reference it: as in [[eq-navier-stokes]], momentum couples the pressure gradient to friction. Custom text works too, see [[eq-navier-stokes|the conservation law]].

![[eq-euler-identity]]

From [[eq-euler-identity]] the link between the constants follows.

![[eq-navier-stokes]]

Embed the same note again. The reference points to the first embed, see [[eq-navier-stokes]].

A wikilink to a non-embedded note passes through as plain text: [[Equation-Does-Not-Exist]].
---
latex-env: equation
caption: "Navier–Stokes equations for incompressible Newtonian fluids"
---

$$
\begin{aligned}
\rho \left( \frac{\partial \vec{u}}{\partial t} + (\vec{u} \cdot \nabla)\vec{u} \right) &= -\nabla p + \mu \nabla^2 \vec{u} + \vec{f} \\
\nabla \cdot \vec{u} &= 0
\end{aligned}
$$
---
latex-env: equation
caption: "Euler's identity"
---

$$
e^{i\pi} + 1 = 0
$$