Repeatio uses LaTeX (KaTeX) to render mathematical functions.
Table of Content |
---|
1. General 1.1 Inline Functions 1.2 Multiline Functions 2. Fractions and Binomials 3. Power and Indices 4. Roots 5. Operators 6. Sums and Integrals 7. Brackets 8. Accents 9. Arrows 10. Greek letters 11. Environments 12. Misc 13. Sources and more Types |
Although not required it is generally advised to add a empty line after each LaTeX function.
LaTeX inline functions are written between single dollar signs $...$
.
Example:
Input | Result |
---|---|
Calculate $x$:
$x =\frac{\sqrt{20}}{3\times(5-10)^2}$
Round to 2 decimal places. |
Calculate Round to 2 decimal places. |
LaTeX multiline functions are written between double dollar signs $$...$$
.
For a new line in the function use two backslashes \\
.
Center a function with \begin{gather}
and \end{gather}
.
To align a function use \begin{align}
in combination with &=
and \end{align}
.
Type | Input | Result |
---|---|---|
Centered |
Calculate $x^2+3x+2 = 0$
$$
\begin{gather}
x_{1,2} = -\left(\frac{3}{2}\right) \pm \sqrt{ \left(\frac{3}{2}\right)^{2}-2}\nonumber \\
x_{1,2} = -1,5 \pm \sqrt{2,25 - 2} \nonumber \\
\vdots \nonumber \\
x_1 = -2 \nonumber \\
x_2 = -1 \nonumber
\end{gather}
$$
|
Calculate $$ \begin{gather} x_{1,2} = -\left(\frac{3}{2}\right) \pm \sqrt{ \left(\frac{3}{2}\right)^{2}-2} \nonumber \ x_{1,2} = -1,5 \pm \sqrt{2,25 - 2} \nonumber \ \vdots \nonumber \ x_1 = -2 \nonumber \ x_2 = -1 \nonumber \end{gather} $$ |
Aligned |
Calculate $x^2+3x+2 = 0$
$$
\begin{align}
x_{1,2} &= -\left(\frac{3}{2}\right) \pm \sqrt{ \left(\frac{3}{2}\right)^{2}-2} \\
x_{1,2} &= -1,5 \pm \sqrt{2,25 - 2} \\
\vdots \nonumber \\
x_1 &= -2 \\
x_2 &= -1 \nonumber
\end{align}
$$ |
Calculate $$ \begin{align} x_{1,2} &= -\left(\frac{3}{2}\right) \pm \sqrt{ \left(\frac{3}{2}\right)^{2}-2} \ x_{1,2} &= -1,5 \pm \sqrt{2,25 - 2} \ \vdots \nonumber \ x_1 &= -2 \ x_2 &= -1 \nonumber \end{align} $$ |
Note
If the numbers next to the function overlap with the content of the function add\nonumber
to the line.
Type | Input | Result |
---|---|---|
Fraction | $\frac{n}{k}$ |
|
Fraction (advanced) | $\frac{n!}{k!(n-k)!}$ |
|
Binomial coefficient | $\binom{n}{k}$ |
|
Fraction in Fraction | $\frac{\frac{x}{1}}{x - y}$ |
|
Fraction | $^x/_y$ |
Type | Input | Result |
---|---|---|
Superscript | $n^2$ |
|
Superscript (advanced) | $n^{2+k}$ |
|
Subscript | $k_n$ |
|
Subscript (advanced) | $k_{n+1}$ |
|
Sup-/Subscript | $k_n^2$ |
Type | Input | Result |
---|---|---|
Square root | $\sqrt{k}$ |
|
Square root with exponent | $\sqrt[n]{k}$ |
Type | Input | Result |
---|---|---|
Plus | $+$ |
|
Minus | $-$ |
|
Multiplied by | $\times$ |
|
Divided by | $\div$ |
|
Comma | $,$ |
|
Colon | $:$ |
|
Semicolon | $;$ |
|
Exclamation | $!$ |
|
Horizontal dots | $\dots$ |
|
Vertical dots | $\vdots$ |
|
Diagonal dots | $\ddots$ |
|
Sinus | $\sin$ |
|
Cosine | $\cos$ |
|
Tangent | $\tan$ |
|
Limit | $\lim$ |
|
Exponential function | $\exp$ |
|
Mod | $\bmod$ |
|
Infinity | $\infty$ |
|
Equivalent | $\equiv$ |
|
Not equal | $\ne$ |
|
Approximately | $\approx$ |
|
Less than | $\leq$ |
|
Less or equal than | $\leq$ |
|
Greater than | $\geq$ |
|
Greater or equal than | $\geq$ |
|
Not | $\neg$ |
Type | Input | Result |
---|---|---|
Summation | $\sum$ |
|
Summation (advanced) | $\sum\limits_{i=0}^n f(x)$ |
|
Integral | $int$ |
|
Integral (advanced) | $\int_0^\infty \mathrm{e}^{-x},\mathrm{d}x$ |
|
Integral (limit) | $\int\limits_a^b$ |
|
Integral (double) | $\iint$ |
|
Integral (triple) | $\iiint$ |
|
Product | $\prod$ |
|
Coproduct | $\coprod$ |
|
Bigoplus | $\bigoplus$ |
|
BigoTimes | $\bigotimes$ |
|
Bigodot | $\bigodot$ |
|
Plus-Minus | $\pm$ |
Type | Input | Result |
---|---|---|
Parenthesis | $(a)$ |
|
parenthesis (bigger) | $left(\frac{a^2}{2}\right) |
|
Bracket | $[a]$ |
|
Brace | $\{a\}$ |
{a} |
Angle bracket | $\langle f \rangle$ |
|
Floor | $\lfloor f \rfloor$ |
|
Ceiling | $\lceil f \rceil$ |
Input | Result |
---|---|
$a^{\prime}$ |
|
$a’$ |
|
$a’’$ |
|
$a’’’$ |
|
$\hat{a}$ |
|
$\bar{a}$ |
|
$\grave{a}$ |
|
$\acute{a}$ |
|
$\dot{a}$ |
|
$\ddot{a}$ |
|
$\not{a}$ |
|
$\mathring{a}$ |
|
$\check{a}$ |
|
$\vec{a}$ |
|
$\overrightarrow{AB}$ |
|
$\overleftarrow{AB}$ |
|
$\vec{F}$ |
|
$\overline{aaa}$ |
|
$\underline{a}$ |
Input | Result |
---|---|
$\to$ |
|
$\uparrow$ |
|
$\downarrow$ |
|
$\updownarrow$ |
|
$\Uparrow$ |
|
$\Downarrow$ |
Input | Result |
---|---|
$\alpha$ |
|
$A$ |
|
$\beta$ |
|
$B$ |
|
$\gamma$ |
|
$\Gamma$ |
|
$\delta$ |
|
$\Delta$ |
|
$\epsilon$ |
|
$\Epsilon$ |
|
$\zeta$ |
|
$\Zeta$ |
|
$\eta$ |
|
$\Eta$ |
|
$\theta$ |
|
$\Theta$ |
|
$\kappa$ |
|
$\Kappa$ |
|
$\lambda$ |
|
$\Lambda$ |
|
$\mu$ |
|
$\Mu$ |
|
$\nu$ |
|
$\Nu$ |
|
$\xi$ |
|
$\Xi$ |
|
$\pi$ |
|
$\Pi$ |
|
$\rho$ |
|
$\Rho$ |
|
$\sigma$ |
|
$\Sigma$ |
|
$\tau$ |
|
$\au$ |
|
$\phi$ |
|
$\Phi$ |
|
$\chi$ |
|
$\Chi$ |
|
$\psi$ |
|
$\Psi$ |
|
$\omega$ |
|
$\Omega$ |
|
$\varphi$ |
Type | Input | Result |
---|---|---|
Matrix |
$$
\begin{matrix}
a & b \\
c & d
\end{matrix}
$$ |
$$ \begin{matrix} a & b \ c & d \end{matrix} $$ |
Matrix (Parentheses) |
$$
\begin{pmatrix}
a & b \\
c & d
\end{pmatrix}
$$ |
$$ \begin{pmatrix} a & b \ c & d \end{pmatrix} $$ |
Matrix (Vertical) |
$$
\begin{vmatrix}
a & b \\
c & d
\end{vmatrix}
$$ |
$$ \begin{vmatrix} a & b \ c & d \end{vmatrix} $$ |
Matrix (double Vertical) |
$$
\begin{Vmatrix}
a & b \\
c & d
\end{Vmatrix}
$$ |
$$ \begin{Vmatrix} a & b \ c & d \end{Vmatrix} $$ |
Matrix (curly brackets) |
$$
\begin{Bmatrix}
a & b \\
c & d
\end{Bmatrix}
$$ |
$$ \begin{Bmatrix} a & b \ c & d \end{Bmatrix} $$ |
Advanced Matrix Equation |
$$
\begin{equation*}
A_{m,n} =
\begin{pmatrix}
a_{1,1} & a_{1,2} & \cdots & a_{1,n} \\
a_{2,1} & a_{2,2} & \cdots & a_{2,n} \\
\vdots & \vdots & \ddots & \vdots \\
a_{m,1} & a_{m,2} & \cdots & a_{m,n}
\end{pmatrix}
\end{equation*}
$$ |
$$ \begin{equation*} A_{m,n} = \begin{pmatrix} a_{1,1} & a_{1,2} & \cdots & a_{1,n} \ a_{2,1} & a_{2,2} & \cdots & a_{2,n} \ \vdots & \vdots & \ddots & \vdots \ a_{m,1} & a_{m,2} & \cdots & a_{m,n} \end{pmatrix} \end{equation*} $$ |
Input | Result |
---|---|
$\backslash$ |
|
$\nonumber$ |
|
$\color{grey}x$ |