1

Similar problems with soul package can be found here and here. But since my problem is simpler than those (even related with spacing) I guess that it could have a simpler solution.

The problem occurs using underlined text \ul{} containing spacing corrections .\.

Here is the MWE

\documentclass{report}
\usepackage{soulutf8}    

\begin{document}
Regular text. 

\ul{Underlined text.} 

Regular text. 

\ul{Underlined text with abbreviated word, for example L. Euler}. 

Regular text. 

\ul{Underlined text with abbreviated word and spacing corrections using \texttt{dot backslash}, for example L.\ Euler}

\end{document}

The result is

enter image description here

11
  • (not tested) i think that if you can separate the dot from the backslash in the input in such a way that latex still recognizes that the last period is punctuation, you'll get the proper spacing without losing the following word. try inserting braces there: .{}\ Jun 6, 2014 at 13:48
  • @barbarabeeton, it still does not work.
    – Sigur
    Jun 6, 2014 at 13:50
  • 1
    After an uppercase letter, TeX does not think that the abbreviation dot is a period ater a sentence with prolonged space. L. Euler is sufficient here. Jun 6, 2014 at 14:48
  • 1
    @Sigur: It's equivalent, except that ~ inserts a non-breaking space (or tie), keeping L. together with Euler.
    – Werner
    Jun 6, 2014 at 14:53
  • 1
    @Sigur: No, the letter before the dot is lowercase. Jun 6, 2014 at 15:00

0

You must log in to answer this question.

Browse other questions tagged .