This question already has an answer here:

How could I hightlight an item from an enumerated list just like this is from the following picture?

enter image description here

\item 12 
\item 143 
\item 154 

A minimal working code be this one above.

marked as duplicate by jub0bs, Mensch, Marco Daniel, Thorsten, mafp Apr 7 '13 at 18:37

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


If the lists are as simple that the one you have shown a rather easy solution is to define your own \item commands. One for highlighting and one for no highlighting.

 \leavevmode\makebox[2em]{\theenumi} #1%
 \vskip4\p@ \@plus2\p@ \@minus\p@
 \leavevmode\makebox[2em]{\hl\theenumi}\hl{ #1}%
 \vskip4\p@ \@plus2\p@ \@minus\p@

\hItem A\par
\Item B\par
\Item C\par

Feel free as an exercise to improve, by adding \leftkskip, \rightskip or hangindent to suit. Add complexity as needed (see for sample source2e 228).

I have used the soul package for highlighting.

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