Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
 \begin{inparaenum}[1)]
    \item  number one item
    \item  number two item
    \item  number three item
 \end{inparaenum}

Is it possible to change the color of the number, When I use \textcolor{red}{1)} it is showing red color but it stopped itemizing. So instead of 1,2 3 I just got 1,1,1, for all the items.

share|improve this question

2 Answers 2

up vote 4 down vote accepted

This works for me:

\begin{inparaenum}[\color{red} 1)]
    \item  number one item
    \item  number two item
    \item  number three item
 \end{inparaenum}
share|improve this answer

You could also use the enumitem package which can now do this as well. In the latest release, the [inline] package options defines three inline lists: enumerate*, itemize*, and description*

\documentclass{article}
\usepackage{xcolor}
\usepackage[inline,shortlabels]{enumitem}
\begin{document}
\begin{enumerate*}[\begingroup\color{red} 1)\endgroup]
    \item  number one item
    \item  number two item
    \item  number three item
 \end{enumerate*}
\end{document}

I used the [shortlabels] package option above to simplify the comparison, but enumitem really offers a lot more flexibility. Related questions:

  1. What are the differences between using paralist vs. enumitem
  2. Suggestions for transitioning from paralist to enumitem package
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.