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

When I combine \textsl \textbf and \hl from the soulutf8 package, the result is ugly. Some letters are degraded. By zooming or printing you can see that with the following code:




\textsl{\textbf{{application module morphisme}}}     % Correct

\textsl{\textbf{\hl{application module morphisme}}}  % Ugly!
%                    —  — —       —  —   —


I'm very disappointed with this. Could you help me please?

enter image description here

closer look:

enter image description here


share|improve this question
Welcome to tex.sx You can indent code blocks by four spaces (or use the {} button) and similarly use backticks for inline code. – David Carlisle Apr 4 '13 at 13:08

\hl colors the bounding box of the chars one syllable by one. These boxes are rectangles, and so the box of a following char can overlap the precedent char. You can avoid it by using \mbox:

\textsl{\textbf{\hl{\mbox{application} \mbox{module} \mbox{morphisme}}}}

-- at the cost that no hyphenation is possible.

You could also try to use tikz as in the answer here Cool Text Highlighting in LaTeX

share|improve this answer
It's better! But the 'e' of module are 'cutted' with this code. – gastopaul Apr 4 '13 at 13:24
That is the color of the space which overlaps, you could add a small amount of space (\,) after the e. – Ulrike Fischer Apr 4 '13 at 13:46

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.