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.


1 Answer 1


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 .