TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having trouble with the soul package and its \hl command. The soul package's manual says I should not nest soul commands, which I didn't. \textsc works inside \hl. However, the following throws an Argument of \name has an extra } error:



% this one works
Hello \hl{\textsc{Calvin}}!

% this one will throw an error, with both soul and soulutf8
Hello \hl{\name{Calvin}}!

Am I missing something in the way that \newcommand works? Is this a known problem with the soul package? Any other suggestions for highlighting text - which may be longer and thus needs to be wrapped?

Thanks for your reply.

share|improve this question

See the documentation of soul "Adding font commands" (page 15).

share|improve this answer

Your Answer


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.