App-Dev World

I'm a new iOS app developer. I'm going to record my programming learning process here, mainly in Swift language. Hope we can help each other:)

View on GitHub
18 May 2025

Use MathJax to Write LaTex Expressions

by Neoren

Original code

original code of the blog is here

Basic syntax

Inline equations

Einstein mass-energy equation: $E=mc^2$

Equation block

Einstein mass-energy equation:
\(E=mc^2\)

Common math symbols

Superscript/subscript

$x^2$

$x^{2y}$

$x_2$

$x_{2y}$

Fraction

$\frac{x}{y}$

$\frac{x+1}{x-1}$

Square root

$\sqrt{x}$

$\sqrt[3]{x}$

Sum & Integration

$\sum_{i=1}^{n} x_i$

$\int_{0}^{1} f(x)dx$

Greek letters

$\alpha, \beta, \gamma, \pi, \theta$

Matrix

\[\begin{bmatrix} a & b \\ c & d \end{bmatrix}\] \[\begin{pmatrix} a & b \\ c & d \end{pmatrix}\] tags: