| title | Markdown Syntax Showcase | |||
|---|---|---|---|---|
| description | A comprehensive example of Markdown syntax supported by mdast. | |||
| author | Mayank Chaudhari | |||
| date | 2025-03-03 | |||
| categories |
|
|||
| tags |
|
Displaying mathematical expressions.
Inline equation:
Block equation:
Inline math expressions can be enclosed within single dollar signs: \\( and \\):
Display math expressions are enclosed within double dollar signs, which renders them on their own line:
You can also use \\[ and \\]:
Here are some common mathematical symbols:
- Greek letters:
$\alpha$ ,$\beta$ ,$\gamma$ ,$\Gamma$ ,$\Delta$ ,$\pi$ ,$\Pi$ ,$\Sigma$ ,$\omega$ ,$\Omega$ - Superscripts and subscripts:
$x^2$ ,$y_i$ ,$a^{b+c}$ ,$e^{-i\omega t}$ - Fractions:
$\frac{1}{2}$ ,$\frac{x+y}{z}$ - Square roots:
$\sqrt{x}$ ,$\sqrt[3]{y}$ - Summations and products:
$\sum_{i=1}^n i$ ,$\prod_{j=1}^m j$ - Integrals:
$\int_a^b f(x) dx$ ,$\oint_C \vec{F} \cdot d\vec{r}$ - Limits:
$\lim_{x \to \infty} \frac{1}{x}$ - Vectors:
$\vec{v}$ ,$\mathbf{v}$ - Matrices: $\begin{pmatrix} a & b \ c & d \end{pmatrix}$
- Partial derivatives:
$\frac{\partial f}{\partial x}$ - Infinity:
$\infty$ - Logical symbols:
$\forall$ ,$\exists$ ,$\in$ ,$\notin$ ,$\subseteq$ ,$\supseteq$ ,$\land$ ,$\lor$ ,$\neg$ - Trigonometric functions:
$\sin(x)$ ,$\cos(y)$ ,$\tan(z)$ - Exponential and logarithmic functions:
$e^x$ ,$\ln(y)$ ,$\log_{10}(z)$
Matrices can be created using the pmatrix, bmatrix, vmatrix, and Vmatrix environments:
You can align equations using the align environment:
You can also use aligned for aligning parts of an equation:
Case statements can be created using the cases environment:
You can include text within math expressions using the \text{} command:
You can color math expressions using the \textcolor{color}{math} command:
You can define custom macros:
\newcommand{\norm}[1]{\left\lVert#1\right\rVert}