Recent changes Random page
GAMING
Science
 
Gaming
Entertainment
Science Fiction
Biggest wikis
Hobbies
Music
See more...

Aide:Formules TeX

De Mathématiques.

Depuis janvier 2003, les formules mathématiques sur les Wiki peuvent être écrites avec le système TeX.

Cette syntaxe est beaucoup plus facile à écrire et à lire que l'HTML. Les formules sont présentées en HTML si possible, autrement une image PNG est produite par le serveur.

Les règles de base sont les suivantes :

  • les formules se mettent entre <math> ... </math> ;
  • les caractères + - = / ' | * < > ( ) peuvent être tapés directement ;
  • à l'intérieur d'une formule, on peut délimiter des groupes à l'aide d'accolades {}, pour grouper une expression en indice, par exemple. Pour obtenir une accolade dans le rendu, il faut donc taper \{ ou \}.

Si vous avez des difficultés à faire une formule, contactez Clembou

Vous pouvez éditer des formules

Sommaire

[modifier] Caractères spéciaux

Fonctionnalité Syntaxe À quoi ça ressemble
Accents

L'exemple ci-contre montre les différents accents sur la lettre o.

\hat o \acute o \ddot o \vec o \check o \grave o \breve o \widehat {abc} \tilde o \bar o \dot o math
Accents dans les mots mang\acute{e} math
Opérateurs binaires \star \times \circ \cdot \bullet \cap \cup \sqcup \vee \wedge \oplus \otimes \triangle \vdots \ddots math math math math math math math math math math math math math math math
\pm \mp \triangleleft \triangleright math
Opérateurs n-aires \sum \prod \coprod \int \oint \bigcup \bigcap \bigsqcup \bigvee \bigwedge \bigoplus \bigotimes \bigodot \biguplus math
Ellipses x + \cdots + y ou x + \ldots + y math ou math
Séparateurs ( ) [ ] \{ \} \lfloor \rfloor \lceil \rceil \langle \rangle / \backslash | \| \uparrow \Uparrow \downarrow \Downarrow \updownarrow \Updownarrow math
Fonctions std. (bien) \sin x + \ln y +\operatorname{sgn} z math
Fonctions std. (mal) sin x + ln y + sgn z math
Fonctions trigonométriques \sin \cos \tan \operatorname{cotan} \sec \operatorname{cosec} math
Fonctions trigonométriques inverses \operatorname{Arcsin} \operatorname{Arccos} \operatorname{Arctan} math
Fonctions trigonométriques hyperboliques \operatorname{sh} \operatorname{ch} \operatorname{th} \operatorname{coth} math
Fonctions d'analyse \lim \sup \inf \limsup \liminf \log \ln \lg \exp math
Fonctions d'algèbre linéaire \det \deg \dim \hom \ker math
Arithmétique modulaire s_k \equiv 0 \pmod{m} math
Dérivées \nabla \partial x \ dx \dot x \ddot y math
Ensembles \forall \exists \empty \varnothing \cap \cup math
Logique p\wedge \land \bar{q} \to p\lor \lnot q \rightarrow p\vee math
Racines \sqrt{2}\approx\pm 1,4 math
\sqrt[n]{x} math
Relations \sim \simeq \cong \le \ge \equiv \not\equiv \approx = \propto math
Relations négativées \not\sim \not\simeq \not\cong \not\le \not\ge \not\equiv \not\approx \ne \not\propto math
Relations d'ensembles \subset \subseteq \supset \supseteq \in \ni math
Relations négativées \not\subset \not\subseteq \not\supset \not\supseteq \not\in \not\ni math
Géometrie \triangle \angle 45^\circ math
Flèches \leftarrow \rightarrow \leftrightarrow

\longleftarrow \longrightarrow
\mapsto \longmapsto
\nearrow \searrow \swarrow \nwarrow

math

math math math

\Leftarrow \Rightarrow \Leftrightarrow

\Longleftarrow \Longrightarrow \Longleftrightarrow

math

math

Symboles divers \pm \mp \hbar \wr \dagger \ddagger \infty \vdash \top \bot \models \vdots \ddots \imath \ell \Re \Im \wp \mho math

math

[modifier] Indices, exposants

Fonctionnalité Syntaxe À quoi ça ressemble
en HTML en PNG
Exposant a^2 math math
Indice a_2 math math
Regroupement a^{2+2} math math
a_{i,j} math math
Combiner indice et exposant x_2^3 math math
Indice et exposant précédents {}_1^2\!X_3^4 math
Dérivée (bon) x' math math
Dérivée (mauvais en HTML) x^\prime math math
Dérivée (mauvais en PNG) x\prime math math
Dérivées temporelles \dot{x}, \ddot{x} math
Soulignés et surlignés \hat a \bar b \vec c \overline {g h i} \underline {j k l} math
Vecteurs et angles \vec U \overrightarrow{AB} \widehat {POQ} math
Somme \sum_{k=1}^N k^2 math
Produit \prod_{i=1}^N x_i math
Limite \lim_{n \to \infty}x_n math
Intégrale indéfinie ou définie \int \frac{1}{1+t^2}\, dt \int_{-N}^{N} e^x\, dx math
Intégrale curviligne \oint_{C} x^3\, dx + 4y^2\, dy math
Intégrale double \iint e^{-\frac{x^2+y^2}{2}\, dx dy math
Intersections \bigcap_1^{n} p math
Réunions \bigcup_1^{k} p math


[modifier] Fractions, matrices, plusieurs lignes

Fractions \frac{2}{4} ou {2 \over 4} math ou math
Coefficients binomiaux, combinaisons {n \choose k} ou C_n^k math ou math
Matrices \begin{pmatrix} x & y \\ z & v \end{pmatrix} math
\begin{bmatrix} 0 & \cdots & 0 \\ \vdots & \ddots & \vdots \\ 0 & \cdots & 0\end{bmatrix} math
\begin{Bmatrix} x & y \\ z & v \end{Bmatrix} math
\begin{vmatrix} x & y \\ z & v \end{vmatrix} math
\begin{Vmatrix} x & y \\ z & v \end{Vmatrix} math
\begin{matrix} x & y \\ z & v \end{matrix} math
Distinctions de cas f(n)=\left\{\begin{matrix} n/2, & \mbox{si }n\mbox{ est pair} \\ 3n+1, & \mbox{si }n\mbox{ est impair} \end{matrix}\right. math
Équations sur plusieurs lignes \begin{matrix}f(n+1)&=& (n+1)^2 \\ \ & =& n^2 + 2n + 1\end{matrix} math


[modifier] Jeux de caractères

Lettres grecques minuscules (sans omicron !) \alpha \beta \gamma \delta \epsilon \varepsilon \zeta \eta \theta \iota \kappa \lambda \mu \nu \xi o \pi \varpi \rho \sigma \varsigma \tau \upsilon \phi \varphi \chi \psi \omega math

math

Ensembles usuels x\in\mathbb{R}\sub\mathbb{C} math
gras (pour les vecteurs) \mathbf{x}\cdot\mathbf{y} = 0 math
Fraktur \mathfrak{a b c d e f g h i j k l m}

\mathfrak{n o p q r s t u v w x y z}
\mathfrak{A B C D E F G H I J K L M N}
\mathfrak{O P Q R S T U V W X Y Z}

math

math
math
math

Gras \mathbf{ABCDEFGHIJKLM}

\mathbf{NOPQRSTUVWXYZ}

math

math

Roman \mathrm{ABCDEFGHIJKLM}

\mathrm{NOPQRSTUVWXYZ}

math

math

normal ABCDEFGHIJKLM

NOPQRSTUVWXYZ

math

math

Script \mathcal{ABCDEFGHIJKLM}

\mathcal{NOPQRSTUVWXYZ}

math

math

Hébreu \aleph \beth \daleth \gimel math

[modifier] Délimiteurs dans les grandes équations

Mauvais ( \frac{1}{2} ) math
Mieux \left ( \frac{1}{2} \right ) math


\left et \right peuvent être utilisés avec divers délimiteurs :

Parenthèses \left( A \right) math
Crochets \left[ A \right] math
Accolades \left\{ A \right\} math
Chevrons \left\langle A \right\rangle math
Barres (de valeur absolue, par exemple) \left| A \right| math
Utilisez \left. et \right. pour ne faire apparaître qu'un seul des délimiteurs \left. {A \over B} \right\} \to X math

[modifier] Espacement

TeX gère automatiquement la plupart des problèmes d'espacement, mais vous pouvez souhaiter contrôler l'espacement manuellement dans certains cas.

double cadratin a \qquad b math
cadratin a \quad b math
grande espace a\ b math
espace moyenne a\;b math
espace fine a\,b math
pas d'espacement ab math
espacement négatif a\!b math

[modifier] Astuce

Pour forcer une formule à la pleine taille, il suffit d'ajouter une espace fine en fin de formule : \, (contre-oblique virgule )

<math>a(1+e^2/2)</math> donne math
<math>a(1+e^2/2)\,</math> donne math

Pour diminuer la taille des formules dans une ligne de texte on peut utiliser \textstyle ou \scriptstyle:

<math>A ({B\over c})</math> donne math
<math>\textstyle{A ({B\over C})}</math> donne math
<math>\scriptstyle{A ({B\over C})}</math> donne math

Si, à la place des parenthèses ( et ), vous utilisez \left( et \right) TeX ajustera la taille des parenthèses au contenu:

<math>A \left({B\over c}\right)</math> donne math