From: Hans Hagen <j.hagen@xs4all.nl>
To: ntg-context@ntg.nl
Subject: Re: two nested \mathbin command changes spacing
Date: Thu, 17 May 2018 23:47:52 +0200 [thread overview]
Message-ID: <f96c951b-dfd5-8f22-9ded-8ce3228bb425@xs4all.nl> (raw)
In-Reply-To: <7g0o2p67yspt.dlg@nililand.de>
On 4/30/2018 6:50 PM, Ulrike Fischer wrote:
> In the following document the second a is much nearer placed to the
> V:
>
> \starttext
> $V \mathbin{a} W \qquad V \mathbin{\mathbin{a}} W $
> \stoptext
>
> (in the second case an italic kern seems to be missing)
>
> Can one avoid this side effect of nested \math-command? When
> building symbols it is not always easy to avoid such nestings.
this is again a side effect of bad glyph boundingboxes
anyway, the tex engine collapses nested ord nodes so i generalized that
in the upcoming engine
\mathflattenmode \numexpr
0 % off
+ 1 % ord
+ 2 % bin
+ 4 % rel
+ 8 % punct
+ 16 % inner
\relax
so you can get rid of nested same-class (actually this is only done when
no super or subscript) .. as a side effect you get a sequence of math
char nodes and that will then listen to the other italics enforcing flag
(for fonts with weird character boundingboxes)
i didn't test side effects but at least we can influence it (the default
is of course 1 which is what tex naturally does)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2018-05-17 21:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-30 16:50 Ulrike Fischer
2018-05-01 8:12 ` Hans Hagen
2018-05-01 10:01 ` Ulrike Fischer
2018-05-17 21:47 ` Hans Hagen [this message]
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=f96c951b-dfd5-8f22-9ded-8ce3228bb425@xs4all.nl \
--to=j.hagen@xs4all.nl \
--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).