Description lists in LaTeX (description)
The description environment makes a list of terms with explanations. Each entry is \item[term] explanation, and the term is printed in bold.
Preamble
The snippets on this page need these lines before \begin{document}:
\usepackage{enumitem}Terms with explanations
The term goes in square brackets after \item. The explanation follows on the same line, and its further lines are indented. The environment is part of LaTeX.
\begin{description}
\item[CPU] The processor, which executes the instructions of a program.
\item[RAM] The working memory, which loses its content without power.
\end{description}Explanation on a new line
With the enumitem package, style=nextline starts the explanation on the line below the term.
\begin{description}[style=nextline]
\item[Central processing unit] Executes the instructions of a program.
\item[Random-access memory] Loses its content without power.
\end{description}Explanations in one column
labelwidth=2.5cm reserves 2.5 cm for the terms, and leftmargin=! computes the left margin from it. Every explanation then starts at the same position, and so do its further lines.
\begin{description}[labelwidth=2.5cm, leftmargin=!]
\item[CPU] The processor, which executes the instructions of a program
one after the other and coordinates the other components.
\item[Memory] Loses its content without power.
\end{description}Change the font of the terms
The key font sets the font of the terms. \normalfont switches the bold off before another style is chosen.
\begin{description}[font=\normalfont\itshape]
\item[CPU] The processor.
\item[RAM] The working memory.
\end{description}Pitfalls
- A term that contains a square bracket has to stand in braces, so LaTeX finds the right end:
\item[{[draft]}]. - Text between
\begin{description}and the first\itemstops with Something's wrong--perhaps a missing \item. - For a list of terms that is sorted and linked from the text, see Glossary and list of acronyms in LaTeX.
Compiled with pdfLaTeX from TeX Live 2023.