Using React Katex, we can document the math.
Denote the math symbols by importing and using BlockMath
from react-katex
.
import 'katex/dist/katex.min.css'; import { BlockMath } from 'react-katex'; // within the markdown file <BlockMath math="\int_0^\infty x^2 dx" />;
Basic integral: \int_0^\infty x^2 dx
:
Math block
Basic subscript + superscripts: a_1^2 + a_2^2 = a_3^2
Math block
Longer subscript + superscripts: x^{2 \alpha} - 1 = y_{ij} + y_{ij}
Math block
Greek letters: \alpha \beta \gamma \rho \sigma \delta \epsilon
Math block
Binary operators: \times \otimes \oplus \cup \cap
Math block
Relational operators: \lt \gt \subset \supset \subseteq \supseteq
Math block
Others: \int \oint \sum \prod
Math block