Tx · LaTeX & TikZ

How to Use \blacktriangleright as an Itemize Label

Published By the 9to5Science editorial team

At a glance

  1. 1. Load the packages

    Include enumitem for list customization and amssymb for the black right-pointing triangle.

  2. 2. Set the label

    Use \setlist to change every itemize label, or add the label option to one list.

  3. 3. Put it in math mode

    Write the symbol as \blacktriangleright because it is a math-mode symbol.

To use a black right-pointing triangle as an itemize bullet, load amssymb for the symbol and enumitem for list customization. The key detail is that \blacktriangleright is a math-mode symbol, so write it inside dollar signs in the label setting.

Complete example

\documentclass{article}
\usepackage{amssymb}
\usepackage{enumitem}

\setlist[itemize]{label=$\blacktriangleright$}

\begin{document}

\begin{itemize}
  \item First item
  \item Second item
\end{itemize}

\end{document}

This compiles with standard LaTeX. amssymb provides \blacktriangleright, and enumitem provides \setlist. The setting applies to all itemize lists in the document.

Change only one list

If you want to use the triangle for just one list, give the list an option instead of changing the global settings:

\begin{itemize}[label=$\blacktriangleright$]
  \item First item
  \item Second item
\end{itemize}

The optional argument syntax is provided by enumitem. Other itemize environments keep their usual bullet unless you also set a global label.

Apply it to one nesting level

You can set a different label for a particular level of nested lists. For example, to use the triangle only at the first level, write:

\setlist[itemize,1]{label=$\blacktriangleright$}

The 1 identifies the first nesting level. You can set another label for a deeper level by changing the number, such as \setlist[itemize,2]{label=...}.

Common mistakes

  • Leaving out the dollar signs: \blacktriangleright is a math symbol, so the label should contain $\blacktriangleright$.
  • Forgetting amssymb: If LaTeX reports that \blacktriangleright is undefined, check that \usepackage{amssymb} appears in the preamble.
  • Using the local option without enumitem: The [label=...] option on itemize and the \setlist command require enumitem.

References

  1. The enumitem package

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.