ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Wrong spacing with inline math in latest mkiv
Date: Thu, 12 May 2011 08:06:37 +0200	[thread overview]
Message-ID: <32EAFAD6-1E69-4244-89A3-EEAFD4CC7132@gmail.com> (raw)

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
___________________________________________________________________________________


             reply	other threads:[~2011-05-12  6:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-12  6:06 Otared Kavian [this message]
2011-05-12 13:26 ` Aditya Mahajan
2011-05-12 13:29   ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=32EAFAD6-1E69-4244-89A3-EEAFD4CC7132@gmail.com \
    --to=otared@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).