Components Math Formulas
Math Formulas Retype supports rendering math formulas written according to the LaTeX grammar. Internally, Retype is powered by K A T E β X and supports all syntax of the library.
Math equations can be rendered inline by wrapping the equation in $
characters, or as separate blocks by fencing the equation in $$
characters.
Inline syntax An inline math equation is wrapped in $
characters.
Inline formula
$\displaystyle \left ( \sum _{k=1}^n a_k b_k \right )^2 \leq \left ( \sum _{k=1}^n a_k^2 \right ) \left ( \sum _{k=1}^n b_k^2 \right )$
This formula ( k = 1 β n β a k β b k β ) 2 β€ ( k = 1 β n β a k 2 β ) ( k = 1 β n β b k 2 β ) is inlined with text.
Block syntax A block math equation is wrapped with $$
characters. Block equations are center aligned when rendered to the finished page.
The $$ multiline formula block
$$
\displaystyle {1 + \frac {q^2}{(1-q)}+\frac {q^6}{(1-q)(1-q^2)}+\cdots }= \prod _{j=0}^{\infty }\frac {1}{(1-q^{5j+2})(1-q^{5j+3})}, \quad \quad \text {for }\lvert q\rvert <1.
$$
1 + ( 1 β q ) q 2 β + ( 1 β q ) ( 1 β q 2 ) q 6 β + β― = j = 0 β β β ( 1 β q 5 j + 2 ) ( 1 β q 5 j + 3 ) 1 β , for β£ q β£ < 1.
LaTeX code highlighting Math formula blocks can benefit from syntax highlighting by adding the latex
language specifier to code blocks.
Demo
Source
\bigg \{ \; \mathbb { F} [ x] \text { -modules } V\; \bigg \}
\longleftrightarrow
\bigg \{ \substack { \text { $\mathbb {F}$ -vector spaces $V$ with a}
\\ \text { linear map $T : V \rightarrow V$ } } \bigg \}
```latex
\bigg\{ \;\mathbb{F}[x]\text{-modules } V\; \bigg\}
\longleftrightarrow
\bigg\{ \substack{\text{$\mathbb{F}$-vector spaces $V$ with a}
\\ \text{linear map $T : V \rightarrow V$}} \bigg\}
```