The code

\textit{Given a collection \(M\) of \(\mathbb{S}\)-terrible $n$-beautiful gizmos ...}
\end{document}enter code here

produces too much space in \(M\) of and too little space in of \(\mathbb{S}\):

enter image description here I believe the latter issue can be dealt with by saying of\/ \(\mathbb{S}\). What's the standard way to deal with the former one?

  • 1
    latex has made some things (more) automatic in the transition between italic and uptight, but this doesn't carry over to math. it's a limitation of the underlying engine. try this with (plain) tex: \it Given a collection $M$ of $\rm S$-terrible $n$-beautiful gizmos \dots \bye. Dec 9, 2016 at 19:48
  • There are some aesthetic considerations that may need manual application when using italic correction. See How does italic correction work?
    – Werner
    Dec 9, 2016 at 20:01
  • 1
    @LeonMeier -- sadly, i don't know of any package that provides the desired facility. (that's not to say that none exist.) it's not an easy problem. Dec 11, 2016 at 13:08

1 Answer 1


I have changed your source with this below:

\usepackage{amsfonts, mathtools}
\textit{Given a collection $M$ \!of $\mathbb{S}$--terrible $n$--beautiful gizmos \ldots}

I have add only \!. What do you think? Now work correctly.

enter image description here

  • The mathtools package is an extension package to amsmath. I have add only to have not problem during the compliation with Papeeria. On this PC I have not MikTeX.
    – Sebastiano
    Dec 9, 2016 at 21:12
  • 3
    May I suggest, instead, \textit{Given a collection $M\!$ of $\,\mathbb{S}$\nobreakdash-terrible $n$\nobreakdash-beautiful gizmos \ldots}?
    – GuM
    Dec 9, 2016 at 23:36
  • 4
    @GustavoMezzetti -- i agree with the positioning of the negative space within the math. but wouldn't an italic correction, \/ after the f be more in keeping with the latex style? Dec 11, 2016 at 13:06
  • @barbarabeeton: good point!
    – GuM
    Dec 16, 2016 at 22:30

You must log in to answer this question.