# Formule $\LaTeX$
:::warning
### Mode en ligne :
On cherche les solutions de l'équation (E) : $x^2 + 3x - 7 = 0$
### Mode bloc (display) :
On trouve : $$x = \frac{-3 \pm \sqrt{37}}{2}$$
:::
:::info
## Symboles courants
| syntaxe | affichage |
|:--------------------- |:-----------------------:|
| \times | $\times$ |
| \approx, \neq | $\approx, \neq$ |
| \leqslant,\geqslant | $\leqslant,\geqslant$ |
| \sqrt{x} | $\sqrt{x}$ |
| \in, \notin | $\in, \notin$ |
| \subset, \not \subset | $\subset, \not \subset$ |
| \emptyset | $\emptyset$ |
| \cap, \cup | $\cap$, $\cup$ |
| \forall, \exists | $\forall$, $\exists$ |
| \infty | $\infty$ |
| \Bbb{N}, \Bbb{R} | $\Bbb{N, R}$ |
| \scr{B}, \scr{N} | $\scr{B}$, $\scr{N}$ |
| \alpha, \beta | $\alpha$, $\beta$ |
| \pi, \Pi | $\pi$, $\Pi$ |
| \sigma, \Sigma | $\sigma$, $\Sigma$ |
| \phi, \varphi | $\phi$, $\varphi$ |
| \perp | $\perp$ |
| \dots, \cdots | $\dots, \cdots$ |
:::
:::info
## Indices, exposants
| syntaxe | affichage |
|:----------- |:-------------:|
| u_n | $u_n $ |
| u_{n+1} | $u_{n+1}$ |
| 2^3 | $2^3$ |
| 2^{n+1} | $2^{n+1}$ |
| {2^3}^4 | ${2^3}^4$ |
| \sqrt[3]{8} | $\sqrt[3]{8}$ |
:::
:::info
## Fractions
|syntaxe|affichage|
| :-- | :--: |
|\dfrac{a+1}{b+1} |$\dfrac{a+1}{b+1}$ |
|\dfrac{\frac{a}{b}+1}{\frac{c}{d}+1} |$\dfrac{\frac{a}{b}+1}{\frac{c}{d}+1}$ |
:::
:::info
## Flèches
| syntaxe | affichage |
|:-------------------- |:----------------------:|
| \Leftrightarrow | $\Leftrightarrow$ |
| \leftrightarrows | $\leftrightarrows$ |
| \Longleftrightarrow | $\Longleftrightarrow$ |
| \iff | $\iff$ |
| \Rightarrow | $\Rightarrow$ |
| \rightarrow | $\rightarrow$ |
| \to | $\to$ |
| \Longrightarrow | $\Longrightarrow$ |
| \implies | $\implies$ |
| \Leftarrow | $\Leftarrow$ |
| \leftarrow | $\leftarrow$ |
| \mapsto | $\mapsto$ |
| \longmapsto | $\longmapsto$ |
| \uparrow, \downarrow | $\uparrow, \downarrow$ |
| \nearrow,\searrow | $\nearrow,\searrow$ |
:::
:::info
## Vecteur, angle, etc.
| syntaxe | affichage |
|:----------------------------- |:--------------------------------:|
| \overrightarrow{AB} | $\overrightarrow{AB}$ |
| \vec{u} | $\vec{u}$ |
| (O,\vec{\imath},\vec{\jmath}) | $(O, \vec{\imath},\vec{\jmath})$ |
| \widehat{ABC} | $\widehat{ABC}$ |
| \hat{a} | $\hat{a}$ |
| \overline{A} | $\overline{A}$ |
:::
:::info
## Coordonnées, coefficient binomial
| syntaxe | affichage |
|:----------- |:-------------:|
| \binom n k | $\binom n k$ |
| \dbinom n k | $\dbinom n k$ |
:::
:::info
## Sommes, intégrales, limites
Les deux modes d'affichage (*en ligne* : entre deux symboles `$` et *display* : entre deux paires de `$$`) donnent, pour les éléments de ce paragraphe, des résultats très différents.
On pourra aussi utiliser le mode `\displaystyle` pour un affichage en ligne imitant la présentation centrée du mode `display`. On l'obtient entre deux symboles `$` en ajoutant la commande `\displaystyle`.
|syntaxe|affichage|
| :-- | :--: |
|\sum _{k=1}^{n}k|$$\sum _{k=1}^{n}k$$ |
|\int _{1}^{n}f(x) \ \mathrm{d} x|$$\int _{1}^{n}f(x)\,\mathrm{d}x$$ |
| \lim_{n \to +\infty}x_n=\ell|$$ \lim_{n \to +\infty}x_n=\ell$$|
|\lim\limits_{x \to -\infty} f(x)| $\lim\limits_{x \to -\infty} f(x)$|
|\lim\limits_{\substack{x \to 0 \\ x<0}} \dfrac{1}{x}|$\lim\limits_{\substack{x \to 0 \\ x<0}} \dfrac{1}{x}$|
:::
:::info
## Délimiteurs
|syntaxe|affichage|
| :-- | :--: |
|\cos\left(\dfrac{\pi}{6}\right)|$$\cos\left(\dfrac{\pi}{6}\right)$$ |
|\left\vert x-3 \right \vert |$\left\vert x-3 \right \vert$|
|\left `\`\| u-v \right `\`\||$\left\| u-v \right \|$|
|\left( \dfrac{1}{2} +2(x + 1) \right)|$\left( \dfrac{1}{2} +2(x + 1) \right)$ |
:::