Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[lining]{libertine}
\usepackage[libertine, cmintegrals]{newtxmath}

\begin{document}

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

\end{document}

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?

share|improve this question
    
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 '13 at 8:51
    
Check your log. I can't duplicate your output. –  user22108 Jan 25 '13 at 19:26
    
@user22108 Added MWE. It's very simplistic and exhibits the same spacing as my original screenshot. –  jtbandes Jan 25 '13 at 19:28
    
In my test, I added \huge; so it seems the small size is relevant. –  user22108 Jan 25 '13 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.

share|improve this answer
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 at 11:39
1  
@Mico Yes, I'd noticed things looked different :-) –  Joseph Wright Aug 3 at 11:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.