4

I'm trying to get a list of custom labels. Here is what I've tried:

\begin{enumerate}[Exercise (1)]

\item first

\item second

\end{enumerate}

This results in each item being labeled as: Exerc#se (#)

Where # is the number of the item in the list. How can I make the "i" in exercise not be pattern matched?

Using a \ doesn't work, it causes syntax error.

2 Answers2

7

For completeness, here's a possible way to solve this with enumitem (a little bit more complex)

\documentclass{article}

\usepackage{enumitem}


\begin{document}
\begin{enumerate}[font={\bfseries},label={Exercise (\arabic*)}]

\item first

\item second

\end{enumerate}
\end{document}

enter image description here

5

As documented in the package documentation, letters inside {} are never taken as counter templates so

 [{Exercise }(1)]

should hide Exercise

David Carlisle
  • 757,742