ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: Hans Hagen <j.hagen@xs4all.nl>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	"Mikael P. Sundqvist" <mickep@gmail.com>
Subject: Re: Strange behavior in math mode: < and minus sign give leftarrow
Date: Wed, 10 Apr 2019 08:19:51 -0400 (EDT)	[thread overview]
Message-ID: <nycvar.YAK.7.76.44.1904100818110.20792@nqv-guvaxcnq> (raw)
In-Reply-To: <016e36eb-7930-2dc6-4236-2e83a6576142@xs4all.nl>

[-- Attachment #1: Type: text/plain, Size: 1346 bytes --]

On Wed, 10 Apr 2019, Hans Hagen wrote:

> On 4/10/2019 9:40 AM, Mikael P. Sundqvist wrote:
>> On Wed, Apr 10, 2019 at 9:21 AM Otared Kavian <otared@gmail.com> wrote:
>>> 
>>> Hi Hans,
>>> 
>>> While testing old documents with lmtx, I noticed that with recent versions 
>>> of mkiv, as well as LuaMetaTeX, there is a strange behavior in math mode: 
>>> when the characters < and - follow each other one gets \leftarrow… This is 
>>> embarrassing when one writes inequalities for negative numbers.
>>> So one has to separate them in order to obtain with curly braces. Can this 
>>> be fixed or is it intended ?
>>> 
>>> \starttext
>>> $\alpha < -1$
>>> 
>>> $\alpha \leftarrow 1$
>>> 
>>> $\alpha < {-1}$
>>> 
>>> $\alpha {<} - 1$
>>> \stoptext
>>> 
>>> Best regards: OK
>> 
>> Hi!
>> 
>> I asked about this before, and it is a feature.
>> 
>> It can be switched off with
>> 
>> \setupmathematics[
>> collapsing=1,
>> ]
>> 
>> Hope it helps!
> Indeed. Aditya is in charge of decisions about these defaults so if you want 
> it differently you need to convince him. (I'm not sure how many users depend 
> on it.)

We can turn it off by default. But it might be better to have a more 
versbose interface:

   \setupmathematics[collapsing=yes|no]

with the default value being collapsing=no.

Aditya

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

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

  parent reply	other threads:[~2019-04-10 12:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-10  7:21 Otared Kavian
2019-04-10  7:40 ` Mikael P. Sundqvist
2019-04-10  7:53   ` Hans Hagen
2019-04-10  8:09     ` Otared Kavian
2019-04-10 14:41       ` Alan Braslau
2019-04-10 12:19     ` Aditya Mahajan [this message]
2019-04-10 21:01       ` Hans Hagen
2019-04-10  7:57   ` 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=nycvar.YAK.7.76.44.1904100818110.20792@nqv-guvaxcnq \
    --to=adityam@umich.edu \
    --cc=j.hagen@xs4all.nl \
    --cc=mickep@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).