# A bad result with the soulutf8 package

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:

\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{color}
\usepackage{soulutf8}

\begin{document}

\large

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

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

\end{document}


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

closer look:

oops.

-
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}}}}

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