I'm using the following setup for the Libertine font:

\usepackage[libertine, cmintegrals]{newtxmath}


Test: $75 + 250\log_2 n = 75 + \frac{250}{\log_{10} 2} \log_{10} n$


But the spacing for inline math seems to be a little strange:

Compare the spacing of = and the numbers in the denominator to the output with mathpazo or mathdesign/Utopia:

In my opinion the Libertine results look more uneven and poorly spaced. Is this just how the font looks, or is there something I can do to make this look better?

  • I agree that libertine looks suboptimal here (or is newtxmath to blame?). The "10" in the logarithms looks particularly bad, maybe the numbers are drawn from the wrong place (tabular figures).
    – mafp
    Jan 25, 2013 at 8:51
  • Check your log. I can't duplicate your output.
    – user22108
    Jan 25, 2013 at 19:26
  • @user22108 Added MWE. It's very simplistic and exhibits the same spacing as my original screenshot.
    – jtbandes
    Jan 25, 2013 at 19:28
  • In my test, I added \huge; so it seems the small size is relevant.
    – user22108
    Jan 25, 2013 at 19:34

1 Answer 1


The answer here I'm afraid is that this is 'how it is': spacing for fonts is a property of the font. You could feedback to the maintainers of the various fonts to see if the spacing can be changed, but beyond that there is not much to do other than choose some other combination.

  • 1
    The good news -- speaking specifically about the choice \usepackage[libertine, cmintegrals]{newtxmath} -- is that in the ca 18 months since the query was posted some corrections have occurred. If one runs the OP's MWE now, the output looks much better. This, of course, doesn't impinge on the validity of your observation that when it comes to fonts, "this is how it is" applies.
    – Mico
    Aug 3, 2014 at 11:39
  • 1
    @Mico Yes, I'd noticed things looked different :-)
    – Joseph Wright
    Aug 3, 2014 at 11:40

You must log in to answer this question.

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