ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: math spacing
Date: Sun, 13 Mar 2011 21:26:31 +0100	[thread overview]
Message-ID: <AANLkTinYRt2qBugHgZBtqy+VPkXuCUgCH-Yy5AOn8V7D@mail.gmail.com> (raw)
In-Reply-To: <F608C9DF-E3CE-4513-8582-2E8BB7906282@uva.nl>

On Sun, Mar 13, 2011 at 13:16, Hans van der Meer wrote:
>
> It might be that I am missing something here. But I don not understand why in the math expression below the spacing behind the letters is different. With this behaviour it seems impossible to name a variable PYR and have it typeset as such.
>
> Hans van der Meer
>
>
> \starttext
> $\tfd Q,Y,N,P,Y,Z \quad PYR$
> \stoptext

I don't know enough about the zillions of math parameters in fonts,
but you will notice exactly the same behaviour in plain TeX.

If you need to have a variable PYR, you should probably do
    \def\PYR{PY\kern-2ptR}
    $\PYR$
(modify kerning at your own will; you might also want to use em
instead of pt units, or you could use \! if you don't need to be too
accurate)

The extensive original spacing is most probably related to the fact
that in mathematics you usually mean multiplication when you write one
letter after the other. In other cases (for example when you have a
function like "sin", "cos", "lim", ...) the spacing will look better.

Still, the fact that there is such a huge difference between PY and YR
looks more like a tiny font bug to me (but it is already present in
CM, so LM is unlikely to change it, at least until they switch to
OpenType Math).

Mojca
___________________________________________________________________________________
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
___________________________________________________________________________________


  parent reply	other threads:[~2011-03-13 20:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-13 12:16 Hans van der Meer
2011-03-13 12:35 ` Wolfgang Schuster
2011-03-13 20:26 ` Mojca Miklavec [this message]
2011-03-14 11:14 ` Otared Kavian
2011-03-14 11:39   ` Wolfgang Schuster
2011-03-14 16:03     ` Otared Kavian

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=AANLkTinYRt2qBugHgZBtqy+VPkXuCUgCH-Yy5AOn8V7D@mail.gmail.com \
    --to=mojca.miklavec.lists@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).