This editor supports LaTeX for rendering mathematical equations and expressions. Here's how you can use it:
-
Inline Math:
- Wrap your expression with single
$symbols. - Example:
$E = mc^2$→ Renders as: ($E = mc^2$ )
- Wrap your expression with single
-
Block Math:
- Wrap your expression with double
$$symbols. - Example:
Renders as: $$ \int_a^b f(x) , dx $$
$$ \int_a^b f(x) \, dx $$
- Wrap your expression with double
-
Math Functions:
- Use standard LaTeX functions like
\frac,\sqrt,\sum, etc. - Examples:
-
$\frac{a}{b}$→ ($\frac{a}{b}$ ) -
$\sqrt{x}$→ ($\sqrt{x}$ )
-
- Use standard LaTeX functions like
-
Greek Letters and Symbols:
- Use commands like
\alpha,\beta, etc., for Greek letters. - Example:
$\alpha + \beta = \gamma$→ ($\alpha + \beta = \gamma$ )
- Use commands like
-
Subscripts and Superscripts:
- Use
_{}for subscripts and^{}for superscripts. - Examples:
-
$x_i$→ ($x_i$ ) -
$x^2$→ ($x^2$ )
-
- Use
-
Combined Examples:
-
$\sum_{i=1}^n i^2 = \frac{n(n+1)(2n+1)}{6}$Renders as:$\sum_{i=1}^n i^2 = \frac{n(n+1)(2n+1)}{6}$
-
Feel free to write your own mathematical expressions, and they will be rendered beautifully in the preview!