TeX Math
SevenMark uses dollar delimiters for TeX math.
Inline Math
Inline math uses a single dollar delimiter and cannot cross a line break.
sevenmark
The famous equation $E = mc^2$ was discovered by Einstein.
The quadratic formula is $x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$.Block Math
Display math uses double dollar delimiters. Newlines are preserved inside the math value.
sevenmark
$$
E = mc^2
$$
$$
\sum_{i=1}^{n} i = \frac{n(n+1)}{2}
$$Common Notation
sevenmark
Addition: $a + b$
Subtraction: $a - b$
Multiplication: $a \times b$ or $a \cdot b$
Division: $\frac{a}{b}$
Superscript: $x^2$ or $x^{10}$
Subscript: $x_i$ or $x_{ij}$
Combined: $x_i^2$
Greek letters: $\alpha, \beta, \gamma, \delta, \theta, \pi, \sigma$In Tables and Lists
sevenmark
{{{#table
[[[[Field]] [[Formula]]]]
[[[[Energy]] [[$E = mc^2$]]]]
[[[[Force]] [[$F = ma$]]]]
}}}Namumark Compatibility
SevenMark also accepts Namumark TeX forms and maps them to the same TeX AST:
sevenmark
[math(x^2 + y^2)]
<math>
x^2 + y^2
</math>[math(...)] is inline unless the math value contains a line break. The formatter normalizes TeX output to $...$ or $$...$$.
Notes
- The old
{{{#tex ...}}}form is no longer TeX syntax. - Use
$...$for inline math and$$...$$for display math. - TeX content is raw text; SevenMark markup inside math is not parsed.