ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Wrong spacing with inline math in latest mkiv
@ 2011-05-12  6:06 Otared Kavian
  2011-05-12 13:26 ` Aditya Mahajan
  0 siblings, 1 reply; 3+ messages in thread
From: Otared Kavian @ 2011-05-12  6:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-12 13:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-12  6:06 Wrong spacing with inline math in latest mkiv Otared Kavian
2011-05-12 13:26 ` Aditya Mahajan
2011-05-12 13:29   ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).