8

When using the libertine package with newtxmath, the spacing after an italic "f" looks too small if a math character follows. Is there solution for this, apart from fixing all such occurrences manually?

\documentclass{article}

\usepackage{amsthm}

\usepackage{libertine}
\usepackage[libertine]{newtxmath}

\newtheorem{theorem}{Theorem}

\begin{document}

\begin{theorem}
The spacing of $G$ and the preceding of is off.
Similarly for ``of $\mathsf{i}$''.
\end{theorem}

\end{document}
1
  • I also noted a problem with "of T" independent of mathmode. "of" and "T" seem to be too close. Commented Oct 5, 2015 at 18:57

1 Answer 1

4

You can fix it with the mathtools package, but you need to use \(...\) and not $...$ (which is good anyway). The necessity for the italic correction is self-evident when Libertine is used, it's less so with other fonts.

Compare the two versions: the second one looks right.

\documentclass{article}
\usepackage{mathtools}
\usepackage{amsthm}

\usepackage{libertine}
\usepackage[libertine]{newtxmath}

\newtheorem{theorem}{Theorem}
\mathtoolsset{mathic=true}

\begin{document}

\begin{theorem}
The spacing of $G$ and the preceding of is off.
Similarly for ``of $\mathsf{i}$''.
\end{theorem}

\begin{theorem}
The spacing of \(G\) and the preceding of is off.
Similarly for ``of \(\mathsf{i}\)''.
\end{theorem}

\end{document}

Note: never use minimal, which is just for testing packages, not output.

enter image description here

3

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .