HomeNotesWhat a copied formula should paste as

What a copied formula should paste as

Copy text has two readers. The first is a person: a student pasting a formula into notes, a lecturer quoting it in an email. The second is software: a search box, a chat, the formula reader on this site. A good line serves both.

∫−∞∞𝑒−𝑥2d𝑥=𝜋\int_{-\infty}^{\infty} e^{-x^{2}} \, \mathrm{d} x = \sqrt{\pi}

Copied∫_(−∞)^∞ e^(−x²) dx = √π

∑𝑘=1𝑛𝑘=𝑛⁢(𝑛+1)2\sum_{k = 1}^{n} k = \frac{n(n + 1)}{2}

Copied∑_(k=1)^n k = n(n + 1)/2

𝐴=(𝑎𝑏𝑐𝑑)A = \left( \begin{array}{cc} a & b \\ c & d \end{array} \right)

CopiedA = (a, b; c, d)

The conventions are few. A square is a superscript digit. A root keeps its contents in brackets, so it is clear what sits under the sign. A fraction brackets its numerator when it is more than one term, because a + b/c means something else. A sum or an integral carries its limits after an underscore and a caret, the way people already type them. A matrix lists its rows, separated by semicolons.

Every character is plain Unicode, so the line survives being pasted almost anywhere. And it reads back: paste it into the formula reader and it is read as mathematics again, with the same spoken words as the original. Each time this site is built, that round trip is checked for every formula on the copy page.

More notes: all notes, or follow them with the Atom feed.