Bold text highlights individual words or entire passages of text, which can make your text more appealing and better. Combined with italics, you give your document a better design. In this tipps + tricks article, we reveal how it works very easily in LaTeX.
How to write bold in LaTeX
The command to generate bold font is \textbf{"text"}
. This font formatting command converts " text
" to a bold word. Instead of one word, you can of course insert several words within the curly brackets. We'll show you the whole thing using a few examples:
LaTeX:
Hier ist \textbf{heise} fett geschrieben
.
Issue :
Here is heise bold.
LaTeX:
\textbf{Hier wird ganz alles fett hervorgehoben.}
Output :
Here everything is highlighted in bold.
If you want to write an entire paragraph or several sentences in bold, we recommend working with the bfseries environment . To do this, introduce the environment with the command \begin{bfseries}
and close it accordingly with \end{bfseries}
. An example:
LaTeX : Edition: This sentence is completely bold - but this time as an environment.
\begin{bfseries}
Dieser Satz ist komplett fett geschrieben – diesmal aber als Umgebung.
\end{bfseries}
If you also want to write a word in bold italics, it works as follows:
LaTeX :
\textbf{\textit{tipps+tricks}}
Output:
tips + tricks