## Resources

1. React Katex
2. LaTex Wikibook
3. Overleaf - Mathematical Expressions

## Writing LaTex for the computer

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" />;

## Exampl

Basic integral: \int_0^\infty x^2 dx:

Math block

$\int_0^\infty x^2 dx$

Basic subscript + superscripts: a_1^2 + a_2^2 = a_3^2

Math block

$a_1^2 + a_2^2 = a_3^2$

Longer subscript + superscripts: x^{2 \alpha} - 1 = y_{ij} + y_{ij}

Math block

$x^{2 \alpha} - 1 = y_{ij} + y_{ij}$

Greek letters: \alpha \beta \gamma \rho \sigma \delta \epsilon

Math block

$\alpha \beta \gamma \rho \sigma \delta \epsilon$

Binary operators: \times \otimes \oplus \cup \cap

Math block

$\times \otimes \oplus \cup \cap$

Relational operators: \lt \gt \subset \supset \subseteq \supseteq

Math block

$\lt \gt \subset \supset \subseteq \supseteq$

Others: \int \oint \sum \prod

Math block

$\int \oint \sum \prod$

## Repository

https://github.com/okeeffed/developer-notes-nextjs/content/mathematics/mathematics-introduction