Mathematical Expressions

MarkCharm Team

September 8, 2026

1 Mathematics in MarkCharm

MarkCharm supports LaTeX math notation for both inline and display expressions.

1.1 Inline Math

The quadratic formula is \(x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\), one of the most famous equations in algebra.

Einstein's mass-energy equivalence \(E = mc^2\) revolutionized physics.

The probability of event \(A\) given \(B\) is \(P(A|B) = \frac{P(B|A) \cdot P(A)}{P(B)}\).

1.2 Display Math

The Euler identity, often called the most beautiful equation:

\[e^{i\pi} + 1 = 0\]
(1)

Shannon's information entropy:

\[H(X) = -\sum_{i=1}^{n} p(x_i) \log_2 p(x_i)\]
(2)

The Gaussian integral:

\[\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}\]
(3)

1.3 Math Block

\[\nabla \times \mathbf{E} = -\frac{\partial \mathbf{B}}{\partial t} \]
(4)

Math expressions are rendered using the engine specified by the StylePack (MathJax, KaTeX, or latex2mathml).