# Colorization and kerning problem with inline lists

The problem is as follows: I need to set an inline list with colored lowercase letters surrounded by black brackets. This is not so hard to achieve, but the problem is that kerning is lost in the process.

If I add two colorization commands: one before the letter and one before the right bracket, then the second command (which restores black color) messes the kerning. Same happens with paralist and enumitem 3 alpha (take a look at "f"; with other fonts the letter and the bracket actually overlap):

\documentclass{book}

\usepackage{paralist}
\usepackage{xcolor}

\setdefaultenum{(a)}{(i)}{A.}{A.}

\begin{document}

\begin{inparaenum}
\item first,
\item second,
\item third,
\item fourth,
\item fifth
\item sixth
\end{inparaenum}

\begin{inparaenum}[(\color{red}a\color{black})]
\item first,
\item second,
\item third,
\item fourth,
\item fifth
\item sixth
\end{inparaenum}

\end{document}


Suggestions?

-

\begin{inparaenum}[(\textcolor{red}\bgroup a\/\egroup)]

Your code is equivalent to \textcolor{red}{\bgroup} a\/\egroup and will expand to \protect \leavevmode {\color {red}\bgroup}a\/\egroup which actually works as expected. I this on purpose? Because a simple {\color{red} a\/} (or maybe {\color{red} a}\/) would do the same. –  Martin Scharrer May 20 '11 at 14:18
@Martin: the a must not be inside explicit braces to be incremented at each item, so it would rather be \bgroup\color{red}a\/\egroup. –  Philippe Goutet May 20 '11 at 14:39