Wrong spacing with inline math in latest mkiv
Hi Hans and Taco, It seems that with the latest mkiv (version 2011.05.11 10:18, and LuaTeX version beta-0.70.0-2011050613 (rev 4250) ), there is a slight error for the spacing of the bounds in the integrals when using inline maths, at least for some fonts. For your information the example is below, and the resulting PDFs are available here: http://dl.dropbox.com/u/4316076/inline-math-spacing-libertine.pdf http://dl.dropbox.com/u/4316076/inline-math-spacing-LM.pdf http://dl.dropbox.com/u/4316076/inline-math-spacing-palatino.pdf http://dl.dropbox.com/u/4316076/inline-math-spacing-termes.pdf http://dl.dropbox.com/u/4316076/inline-math-spacing-xits.pdf Best regards: OK %% begin bug-inline-math.tex %\setupbodyfont[xits] % gives the correct spacing \setupbodyfont[palatino] % gives the wrong spacing %\setupbodyfont[libertine,12pt] % gives a slightly wrong spacing %\setupbodyfont[termes] % gives the wrong spacing % Latin Modern gives also a slightly wrong spacing too \starttext By the way, $\int_{0}^{2\pi} \sin(x)dx = 0$, while $\sum_{n=1}^\infty n^{-1} = +\infty$ and \startformula \int_{0}^{2\pi} \sin^2(x)dx = \pi,\qquad \sum_{n=1}^\infty {1\over n^2 } = {\pi^2\over 6}. \stopformula \stoptext %% end bug-inline-math.tex
On Thu, 12 May 2011, Otared Kavian wrote:
Hi Hans and Taco,
It seems that with the latest mkiv (version 2011.05.11 10:18, and LuaTeX version beta-0.70.0-2011050613 (rev 4250) ), there is a slight error for the spacing of the bounds in the integrals when using inline maths, at least for some fonts. For your information the example is below, and the resulting PDFs are available here:
http://dl.dropbox.com/u/4316076/inline-math-spacing-libertine.pdf http://dl.dropbox.com/u/4316076/inline-math-spacing-LM.pdf http://dl.dropbox.com/u/4316076/inline-math-spacing-palatino.pdf http://dl.dropbox.com/u/4316076/inline-math-spacing-termes.pdf http://dl.dropbox.com/u/4316076/inline-math-spacing-xits.pdf
Best regards: OK %% begin bug-inline-math.tex %\setupbodyfont[xits] % gives the correct spacing \setupbodyfont[palatino] % gives the wrong spacing %\setupbodyfont[libertine,12pt] % gives a slightly wrong spacing %\setupbodyfont[termes] % gives the wrong spacing
% Latin Modern gives also a slightly wrong spacing too
Since the wrong spacing is with the virtual fonts, this could be related to the recent change in the italic correction. Aditya
On 12-5-2011 3:26, Aditya Mahajan wrote:
Since the wrong spacing is with the virtual fonts, this could be related to the recent change in the italic correction.
indeed, but Taco needs to explain why this affects inline math Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Aditya Mahajan
-
Hans Hagen
-
Otared Kavian