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}
Result
The compiled example

Open in the editor

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}
Result
The compiled example

Open in the editor

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}
Result
The compiled example

Open in the editor

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}
Result
The compiled example

Open in the editor

Pitfalls

Compiled with pdfLaTeX from TeX Live 2023.

Related pages