Testwiki:Atelier TeX/Exemples

De testwiki
Version datée du 5 octobre 2020 à 10:53 par imported>Hilarion~frwiki (grecques : <br /> au lieu de <br\>)
(diff) ← Version précédente | Version actuelle (diff) | Version suivante → (diff)
Aller à la navigation Aller à la recherche

Voici quelques exemples de ce qui est possible avec LaTeX :

Divers

Typographie

Par défaut, l'écriture est en italique.

Normal ABCDEFGHIJKLM

NOPQRSTUVWXYZ

ABCDEFGHIJKLM

NOPQRSTUVWXYZ

Blackboard gras \mathbb{A B C D E F G H I J K L M}
\mathbb{N O P Q R S T U V W X Y Z}
𝔸𝔹𝔻𝔼𝔽𝔾𝕀𝕁𝕂𝕃𝕄
𝕆𝕊𝕋𝕌𝕍𝕎𝕏𝕐
\N \Z \Q \R \C     
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}
\mathfrak{N O P Q R S T U V W X Y Z}

𝔞𝔟𝔠𝔡𝔢𝔣𝔤𝔥𝔦𝔧𝔨𝔩𝔪

𝔫𝔬𝔭𝔮𝔯𝔰𝔱𝔲𝔳𝔴𝔵𝔶𝔷
𝔄𝔅𝔇𝔈𝔉𝔊𝔍𝔎𝔏𝔐
𝔑𝔒𝔓𝔔𝔖𝔗𝔘𝔙𝔚𝔛𝔜

Gras \mathbf{ABCDEFGHIJKLM}

\mathbf{NOPQRSTUVWXYZ}

𝐀𝐁𝐂𝐃𝐄𝐅𝐆𝐇𝐈𝐉𝐊𝐋𝐌

𝐍𝐎𝐏𝐐𝐑𝐒𝐓𝐔𝐕𝐖𝐗𝐘𝐙

Roman \mathrm{ABCDEFGHIJKLM}

\mathrm{NOPQRSTUVWXYZ}

ABCDEFGHIJKLM

NOPQRSTUVWXYZ

Script \mathcal{ABCDEFGHIJKLM}

\mathcal{NOPQRSTUVWXYZ}

𝒜𝒞𝒟𝒢𝒥𝒦

𝒩𝒪𝒫𝒬𝒮𝒯𝒰𝒱𝒲𝒳𝒴𝒵

Caractères spéciaux

Lettres grecques minuscules (sans omicron !) \alpha \beta \gamma \digamma \delta \epsilon \varepsilon \zeta \eta \theta \vartheta \iota \kappa \varkappa \lambda \mu \nu \xi o \pi \varpi \rho \varrho \sigma \varsigma \tau \upsilon \phi \varphi \chi \psi \omega αβγϝδϵεζηθϑικϰλμν

ξoπϖρϱσςτυϕφχψω

Lettres grecques majuscules (sans Omicron !) \Alpha \Beta \Gamma \Delta \Epsilon \Zeta \Eta \Theta \Iota \Kappa \Lambda \Mu \Nu \Xi O \Pi \Rho \Sigma \Tau \Upsilon \Phi \Chi \Psi \Omega ABΓΔEZHΘIKΛM

NΞOΠPΣTΥΦXΨΩ

Hébreu \aleph \beth \daleth \gimel
Diacritiques et accents
\acute{a} \grave{a} \hat{a} \tilde{a} \breve{a} \check{a} \bar{a} \ddot{a} \dot{a} a´a`a^a~a˘aˇa¯a¨a˙

Couleurs

Pour plus de détails, voir Atelier TeX/Exemples/Couleurs (liste des 68 couleurs disponibles).

Il peut être utile de mettre certaines parties en couleurs :

  • x=\frac{-b\pm\sqrt{\color{Red}b^2-4ac}}{2a}
    x=b±b24ac2a
Attention
Les couleurs doivent être utilisées seulement en cas de nécessité. Elles doivent respecter les conventions de style et être choisies de telle façon que les daltoniens puissent les distinguer.

Mathématiques

ax2+bx+c=0

<math>ax^2 + bx + c = 0</math>

x=b±b24ac2a

<math>x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}</math>

Délimiteurs : Parenthèses et autres

Parenthèses \left( \frac{a}{b} \right) (ab) Crochets \left[ \frac{a}{b} \right] [ab]
Accolades \left\{ \frac{a}{b} \right\} {ab} Chevrons \left\langle \frac{a}{b} \right\rangle ab
Barres
(de valeur absolue, par exemple)
\left| \frac{a}{b} \right| |ab| Flèches \left \Uparrow \frac{a}{b} \right \Downarrow ab
Taille des délimiteurs \big( \Big( \bigg( \Bigg( ... \Bigg] \bigg] \Big] \big] ((((]]]]
Attention à mettre \left( et pas juste (, idem pour \right) et )
Mauvais (12) <math>( \frac{1}{2} )</math> Mieux (12) <math>\left( \frac{1}{2} \right)</math>
Utilisez un point . pour faire disparaître le délimiteur
\left. fait disparaître le délimiteur gauche
\left. {A \over B} \right\} \to X AB}X

Snew=Sold+(5T)22

<math>S_\text{new} = S_\text{old} + \frac{ \left( 5-T \right) ^2} {2}</math>

axasf(y)dyds=axf(y)(xy)dy

<math>\int_a^x \int_a^s f(y)\,\mathrm dy\, \mathrm ds = \int_a^x f(y)(x-y)\,\mathrm dy</math>

Somme

m=1n=1m2n3m(m3n+n3m)

<math>\sum_{m=1}^\infty\sum_{n=1}^\infty\frac{m^2\,n} {3^m\left(m\,3^n+n\,3^m\right)}</math>

u+p(x)u+q(x)u=f(x),x>a

<math>u'' + p(x)u' + q(x)u=f(x),\quad x>a</math>

|z¯|=|z|,|(z¯)n|=|z|n,arg(zn)=narg(z)

<math>|\bar{z}| = |z|, |(\bar{z})^n| = |z|^n, \arg(z^n) = n \arg(z)\,</math>

limzz0f(z)=f(z0)

<math>\lim_{z\rightarrow z_0} f(z)=f(z_0)\,</math>

Équation intégrale

ϕn(κ)=14π2κ20sin(κR)κRR[R2Dn(R)R]dR

<math>\phi_n(\kappa) = \frac{1}{4\pi^2\kappa^2} \int_0^\infty \frac{\sin(\kappa R)}{\kappa R} \frac{\partial}{\partial R}\left[R^2\frac{\partial D_n(R)}{\partial R}\right]\, \mathrm dR</math>

Chimie

Par défaut en TeX, le texte est en écriture italique : ZnO. En chimie, il faut donc toujours utiliser \mathrm{texte en romaine} ou simplement \rm pour avoir le texte en écriture romaine (ou écriture droite) : ZnO.

Formules simples

  • ZnO : <math> \mathrm{ZnO}\,</math>,
  • CH3OH : <math> \mathrm{CH_3OH}\,</math>
  • Le tiret bas : _ permet d'écrire en indice.
  • Fe2(SO4)3 : <math> \mathrm{Fe_2(SO_4)_3}\,</math>
  • F : <math>\mathrm{F^-}\,</math>
  • L'accent circonflexe ^ permet d'écrire une puissance.
  • AlF4 : <math>\mathrm{AlF_4^-}\,</math>
  • Al3+ : <math>\mathrm{Al^{3+}}\,</math>
  • Si la chaine de caractères en puissance comporte plusieurs caractères, elle doit être mise entre des accolades {XXX}.
  •  614C : <math>{}^{14}_{\ 6}\mathrm C\,</math>
  • On peut combiner indice et exposant ou placer un exposant ou un indice sur du vide à l'aide de {}.

Formule développée plane

À l'aide d'un tableau (array), on peut dessiner certaines formules développées de molécule. Exemple de l'éthane :

<math>
  \begin{array}{lcl}
&\rm H &\rm H\\
&| &|\\
\rm H-\!\!\!\! &\rm C-\!\!\!\! &\rm C - H\\
&| &|\\
&\rm H &\rm H\\
  \end{array}
</math>

HH||HCCH||HH

Réactions

Flèches

  • Flèches simples :
    • ajustage automatique au texte inscrit :
    exempledetextelongsouscritexemple de texte suscrit : <math>\xrightarrow[exemple de texte long souscrit]{\rm exemple\ de\ texte\ suscrit}</math>
    • la longueur peut être ajustée en utilisant un ou plusieurs \qquad :
     : <math>\begin{matrix} & \\\mathrm{\overrightarrow{\qquad}} \\\end{matrix}</math>
     : <math>\begin{matrix} & \\\mathrm{\overrightarrow{\qquad\qquad}} \\\end{matrix}</math>
     : <math>\begin{matrix} & \\\mathrm{\overrightarrow{\qquad\qquad\qquad}} \\\end{matrix}</math>
  • Flèche double :
  •  : <math>\rightleftarrows</math>

Harpons

  • Harpons :
     : <math>\rightharpoonup \rightharpoondown \leftharpoonup \leftharpoondown</math>
  • Harpon double :
     : <math>\rightleftharpoons</math>

Exemples de réactions

AgClAg++Cl

  • \mathrm{AgCl \qquad \overrightarrow{\leftarrow} \qquad Ag^+ + Cl^-}

2Al02Al3++3e 

  • <math>\begin{matrix} & \\ \mathrm{2Al^0} & \overrightarrow{\qquad} & \mathrm{2Al^{3+} + 3e^-}\ \\\end{matrix}</math>

T > 90 CZnS+Fe2(SO4)3ZnSO4+2FeSO4+S (solide) 

  • <math>\begin{matrix} & {}_{\rm{T\ >\ 90\ ^\circ C }} & \\ \mathrm{ZnS + Fe_2(SO_4)_3} & \overrightarrow{\qquad\qquad\qquad} & \mathrm{ZnSO_4 + 2FeSO_4 + S\ (solide)}\ \\\end{matrix}</math>

ZnS+3/2O2ZnO+SO2Δ H=445 kJ/mol de ZnS entre 800 et 1 000 C

  • <math>\begin{matrix} & \\ \mathrm{ZnS + 3/2 O_2} & \overrightarrow{\qquad} & \mathrm{ZnO + SO_2} & {\rm \Delta\ H} = - 445\ {\rm kJ/mol\ de\ ZnS\ entre\ 800\ et\ 1\ 000\ ^\circ C} \\\end{matrix}</math>

XαYβ(solide)αXβ+(aqueux)+βYα(aqueux)

  • <math>\mathrm{X_{\alpha} Y_{\beta} (solide)} {\qquad}\overrightarrow{\rm{\leftarrow }}{\qquad} \alpha \mathrm{X^{\beta+} (aqueux)+\beta Y^{\alpha-} (aqueux)} </math>

air (source de diazote)+dihydroge`ne+eauammoniac+dioxyde de carbone

  • <math>\begin{matrix} & {\rm air\ (source\ de\ diazote)} + {\rm dihydrog\grave{e}ne} + {\rm eau} & \overrightarrow{\qquad\qquad} & {\rm ammoniac} + {\rm dioxyde\ de\ carbone} \end{matrix}</math>

Voir aussi

Modèle:Autres projets