Color "item #"

David Carlisle d.p.carlisle at gmail.com
Tue Dec 21 22:39:12 CET 2021


\documentclass{article}
\usepackage{enumitem,xcolor}

\begin{document}

\begin{enumerate}[label=\textcolor{blue}{(\arabic*) }]
\item aaa
\item bbb
\item ccc
\end{enumerate}
\end{document}

David


On Tue, 21 Dec 2021 at 20:56, Jerry Seibert <jerry at seibercom.net> wrote:

> I am using the "enumitem" package to create lists used in reports I
> generate. My supervisor wants me to have the item number or letter in a
> different color from the item's text. For instance, in the following
> example, the "(1)" would be in blue and the text in black.
>
>         (1) This is item one.
>
> I cannot find a way to accomplish this easily. Is there something I am
> missing here or is it just not feasible? My supervisor is insisting on
> it because he can do exactly that in MS Word.
>
> --
> Thanks!
>
> Jerry
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20211221/dbab7f3d/attachment.html>


More information about the texhax mailing list.