I can highlight a bit of text (i.e., make the background yellow) using the soul package like this:

\hl{a bit of text}

I figured I could also use italics like this:

\hl{\emph{a bit of text}}

... but it doesn't seem to work --- the text is still "normal". What am I missing?

  • 1
    I get italic text for the second example. Can you make a minimal working example (MWE)? (Non working, in your case.)
    – egreg
    May 14, 2013 at 15:53
  • @egreg: Sorry, it was an embarrassing mistake, which I've easily detected when I trying to build the minimal example. Thank you. May 14, 2013 at 16:05
  • No need to be embarrassed! ;-) Preparing a MWE often points out a mistake that can go unobserved in a bigger document.
    – egreg
    May 14, 2013 at 16:08


Browse other questions tagged .