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.


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


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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