11

Is there a way to obtain coloured numbering in an enumerate list?

\begin{enumerate}
\item First
\item Second
\item Third
\end{enumerate}

I'd like the 1, 2, 3 to be in blue. I thought this should be simple, but could find nothing on this. I also tried with

\usepackage{enumitem}

and

\begin{enumerate}[label={\color{blue}}]

but this simply generated a list with no numbering.

lockstep
  • 250,273
scitexter
  • 819

2 Answers2

16
\documentclass{article}
\usepackage{enumitem,xcolor}
\begin{document}

\begin{enumerate}[label=\color{blue}\theenumi]
 %  \begin{enumerate}[\color{blue} 1]% Alternative
\item First
\item Second
\item Third
\end{enumerate}

\end{document}
5

Here are two ways:

\documentclass{article}
\usepackage{xcolor}
\usepackage[inline,shortlabels]{enumitem}
\begin{document}
\begin{enumerate}[\begingroup\color{blue} 1)\endgroup]
     \item First
     \item Second
     \item Third
\end{enumerate}
\begin{enumerate}[label=\textcolor{blue}{\arabic*}]
    \item  number one item
    \item  number two item
    \item  number three item
 \end{enumerate}
 \end{document}

This question Change the color of numberings in inline itemization is also helpful, even though it refers to an inline list.

Peter Grill
  • 223,288
  • – this only worked for me if I dropped the `inline' element. – scitexter Sep 10 '11 at 19:35
  • The [inline] package option only provides additional * environments that are inline lists. The above example only used the non-star elements so there should not be anything different. – Peter Grill Sep 10 '11 at 20:06