LaTeX bietet mehrere Befehle zur Textformatierung: fett, kursiv, unterstrichen und deren Kombinationen. Diese Anleitung behandelt auch Fettschrift im Mathematikmodus.
Textformatierung
Die drei wichtigsten Befehle sind \textbf (fett), \textit (kursiv) und \emph (Hervorhebung, die automatisch zwischen kursiv und aufrecht wechselt).
LaTeX
Texte \textbf{en gras} et \textit{en italique}.
\textbf{\textit{Gras et italique combinés.}}
Texte \underline{souligné}.
Avec \emph{emph}, le texte est en italique.
\textit{Mais dans un contexte déjà italique, \emph{emph} revient en romain.}
Fett im Mathematikmodus
Im Mathematikmodus funktioniert \textbf nicht. Verwenden Sie \mathbf für aufrechte Buchstaben oder \boldsymbol für Symbole und griechische Buchstaben.
LaTeX
% mathbf : lettres droites (pas italiques)
$ \mathbf{A} \cdot \mathbf{x} = \mathbf{b} $
% boldsymbol : conserve l'italique et les symboles grecs
$ \boldsymbol{\alpha} + \boldsymbol{\beta} = \boldsymbol{\gamma} $
Referenztabelle
| Befehl | Wirkung | Modus |
|---|---|---|
\textbf{...} | Gras | Texte |
\textit{...} | Italique | Texte |
\emph{...} | Emphase | Texte |
\underline{...} | Souligné | Texte + Maths |
\mathbf{...} | Gras droit | Maths |
\boldsymbol{...} | Gras italique | Maths |