Math Environments (bare \begin — no $$ needed)

Bare LaTeX Math Environments

As of the 2026-06-20 renderer pass you can write LaTeX display-math
environments directly — no $$ … $$ wrapper required. This matches Mathpix
Markdown’s authoring convention, so equations pasted from a textbook or the MinerU
PDF pipeline render as-is.

Ide Pokok

  • A bare \begin{align}…\end{align} now renders as display math (KaTeX, displayMode).

  • Supported bare: equation, align, alignat, gather, gathered, aligned, multline, split, cases, array, the matrix family, CD — plus * variants.

  • \label{} on a bare environment still feeds the \eqref numbering scheme.

  • $$…$$ and inline $…$ work exactly as before.

Bare align — no $$

You write this:

\begin{align}
\nabla \cdot \mathbf{E} &= \frac{\rho}{\varepsilon_0} \\
\nabla \cdot \mathbf{B} &= 0
\end{align}

…and it renders as:

\begin{align} \nabla \cdot \mathbf{E} &= \frac{\rho}{\varepsilon_0} \\ \nabla \cdot \mathbf{B} &= 0 \\ \nabla \times \mathbf{E} &= -\frac{\partial \mathbf{B}}{\partial t} \\ \nabla \times \mathbf{B} &= \mu_0 \mathbf{J} + \mu_0 \varepsilon_0 \frac{\partial \mathbf{E}}{\partial t} \end{align}

gather — multiple centered equations (no alignment column)

Unlike align, gather centers each equation independently without an & alignment point:

\begin{gather} E_k = \tfrac{1}{2}mv^2 \\ E_p = -\frac{GMm}{r} \\ E_{total} = E_k + E_p = -\frac{GMm}{2a} \end{gather}

multline — a single long equation that wraps

\begin{equation}\begin{gathered} P(sukses) = \binom{n}{0}p^0(1-p)^n + \binom{n}{1}p^1(1-p)^{n-1} \\ + \binom{n}{2}p^2(1-p)^{n-2} + \cdots + \binom{n}{n}p^n(1-p)^0 \end{gathered}\end{equation}

split inside equation — one number, multi-line derivation

\begin{equation} \begin{split} \oint_C \mathbf{B} \cdot d\boldsymbol{\ell} &= \mu_0 I_{enc} \\ &= \mu_0 \iint_S \mathbf{J} \cdot d\mathbf{A} \end{split} \end{equation}

Hukum Ampère umum, Pers. ??, berlaku di dalam medium maupun vakum.

cases, bmatrix, array — all bare

A piecewise definition with cases:

\begin{cases} 1 & if x > 0 \\ 0 & if x = 0 \\ -1 & if x < 0 \end{cases}

A rotation matrix with bmatrix:

\begin{bmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{bmatrix}

A column-spec array:

\begin{array}{c|cc} & x & y \\ \hline a & 1 & 2 \\ b & 3 & 4 \end{array}

Numbered equation + \eqref

A bare equation carrying a \label participates in the same cross-reference
system as $$-wrapped equations:

\begin{equation} E = mc^2 \end{equation}

Mass–energy equivalence, Pers. ??, follows from special relativity.

Decoration operators — \vec, \hat, \mathbf, \mathcal, \mathrm

Gradient medan gravitasi dalam koordinat bola:

\mathbf{g} = -\nabla\Phi = -\frac{GM}{r^2}\hat{r}

Operator nabla dalam koordinat bola (komponen \hat{r}, \hat{\theta}, \hat{\phi}):

\nabla f = \hat{r}\frac{\partial f}{\partial r} + \hat{\theta}\frac{1}{r}\frac{\partial f}{\partial\theta} + \hat{\phi}\frac{1}{r\sin\theta}\frac{\partial f}{\partial\phi}

Persamaan Schrödinger dalam notasi Dirac:

\hat{\mathcal{H}}\,|\Psi\rangle = i\hbar\,\frac{\partial}{\partial t}|\Psi\rangle

Nested fractions & multi-level operators

Faktor Lorentz (fraksi bersarang):

\gamma = \frac{1}{\sqrt{1 - \dfrac{v^2}{c^2}}}

Distribusi Planck:

B_\nu(T) = \frac{2h\nu^3}{c^2} \cdot \frac{1}{e^{h\nu/k_BT} - 1}

Luminositas total dari integrasi solid angle dan frekuensi:

L = \int_0^{4\pi} \int_0^{\infty} I_\nu(\hat{n})\, d\nu\, d\Omega

Big operators: \sum, \prod, \lim

\sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}, \qquad \prod_{p\;\text{prima}} \frac{1}{1 - p^{-s}} = \zeta(s)

\lim_{r \to \infty} \Phi(r) = 0, \qquad \lim_{T \to 0^+} B_\nu(T) = 0

The classic $$ form still works

Inline math like \gamma = (1 - v^2/c^2)^{-1/2} renders mid-sentence, and the
traditional wrapped form is unchanged:

\begin{align} p &= \gamma m v \\ E &= \gamma m c^2 \end{align}

Relativistic momentum is Pers. ??.

Not supported (by design): \begin{flalign} and \begin{eqnarray} are left
as literal text because KaTeX cannot render them — a visible breakage beats a
silent red error. Use align instead.


Physical Quantities & Text Shorthands (siunitx subset, 2026-07-04)

A subset of the siunitx package is understood in prose — no math-mode escaping needed
for values with units.

\SI{value}{unit} — formatted quantity

  • Kecepatan cahaya: 3×10⁸ m s⁻¹
  • Massa Bumi: 5.97×10²⁴ kg
  • Percepatan gravitasi: 9.8 m s⁻²
  • Energi foton sinar-X: 10 keV
  • Kerapatan inti neutron: 4×10¹⁷ kg m⁻³

Recognized prefixes: \nano \micro \milli \centi \kilo \mega \giga \tera.
Recognized units include \meter \second \kilogram \kelvin \joule \watt
\newton \pascal \hertz \electronvolt \parsec \lightyear
\astronomicalunit \year \day \hour. Combine with \per for a denominator
and \squared / \cubed for powers.

\num{value} — scientific notation without units

  • Bilangan Avogadro: 6.022×10²³
  • Konstanta Boltzmann: 1.381×10⁻²³

\ang{value} — angles, with optional DMS

  • Deklinasi Polaris: 89°15′51″
  • Sudut kemiringan sumbu Bumi: 23.4°

Inline formatting shorthands

Isotop 14C meluruh menjadi 14N melalui peluruhan
beta. Notasi kerapatan acuan \rho0 sering muncul dalam model bintang.

Catatan Jarak antar objek ditulis dengan tanda hubung tak-putus, misalnya
“jari-jari R_\odot“, supaya angka dan satuannya tidak terpisah baris. Titik-titik
elipsis 1, 2, \ldots, n dipakai untuk barisan yang berlanjut.

\begin{center} — centering arbitrary content

L_\odot = 3.828 \times 10^{26}\ \text{W}