ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Mikael P. Sundqvist" <mickep@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: math snapping
Date: Thu, 16 Oct 2014 14:03:10 +0200	[thread overview]
Message-ID: <CAHy-LL8N-qpFg7gbm96T+BXyzRme-kQ=C6RN_HjUP4Fboh_Cqg@mail.gmail.com> (raw)
In-Reply-To: <543FAD24.70102@wxs.nl>

On Thu, Oct 16, 2014 at 1:33 PM, Hans Hagen <pragma@wxs.nl> wrote:
> On 10/16/2014 1:23 PM, Mikael P. Sundqvist wrote:
>>
>> On Wed, Oct 15, 2014 at 1:30 PM, Hans Hagen <pragma@wxs.nl> wrote:
>>>
>>> Hi,
>>>
>>> new experimental feature in next beta
>>>
>>> \enabletrackers[math.openedup]
>>>
>>> \starttext
>>>
>>>      \dorecurse{10}{\dorecurse{#1}{whatever }}
>>>
>>>      \startitemize[packed]
>>>          \startitem whatever \openedupimath{\frac{1}{2}} whatever
>>>          \startitem whatever \openedupimath{\frac{1}{2}} whatever
>>>          \startitem whatever \openedupimath{\frac{1}{2}} whatever
>>>      \stopitemize
>>>      \startitemize[packed,columns]
>>>          \startitem whatever \openedupimath{\frac{1}{2}} whatever
>>>          \startitem whatever \openedupimath{\frac{1}{2}} whatever
>>>          \startitem whatever \openedupimath{\frac{1}{2}} whatever
>>>          \startitem whatever \openedupimath{\frac{1}{2}} whatever
>>>          \startitem whatever \openedupimath{\frac{1}{2}} whatever
>>>          \startitem whatever \openedupimath{\frac{1}{2}} whatever
>>>      \stopitemize
>>>
>>>      \dorecurse{5}{\dorecurse{#1}{whatever }\openedupimath{\frac{1}{2}} }
>>>
>>>      \startitemize[packed,columns]
>>>          \startitem whatever \openedupimath{1+2} whatever
>>>          \startitem whatever \openedupimath{1+2} whatever
>>>          \startitem whatever \openedupimath{\frac{1}{2}} whatever
>>>          \startitem whatever \openedupimath{1+2} whatever
>>>          \startitem whatever \openedupimath{1+2} whatever
>>>      \stopitemize
>>>
>>>      \dorecurse{5}{\dorecurse{#1}{whatever }\openedupimath{1+2} }
>>>
>>>      \startitemize[packed]
>>>          \startitem whatever \openedupimath{\frac{1}{2}} whatever
>>>          \startitem whatever \openedupimath{\frac{1}{2}} whatever
>>>          \startitem whatever \openedupimath{\frac{1}{2}} whatever
>>>      \stopitemize
>>>
>>>      \dorecurse{10}{whatever }
>>>      \dorecurse {5}{\dorecurse{#1}{whatever }\openedupimath{\frac{1}{2}}
>>> }
>>>      \dorecurse{10}{whatever }
>>>
>>> \stoptext
>>>
>>> --
>>>
>>> -----------------------------------------------------------------
>>>                                            Hans Hagen | PRAGMA ADE
>>>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>>>      tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>>>                                               | 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://tex.aanhet.net
>>> archive  : http://foundry.supelec.fr/projects/contextrev/
>>> wiki     : http://contextgarden.net
>>>
>>> ___________________________________________________________________________________
>>
>>
>> I feel a bit stupid, now. What is this supposed to do? I get red and
>> blue "markers" that have different thickness. What do they say/do?
>>
>> Maybe if I don't understand, I will have no reason to (ask), but I got
>> curious...
>
>
> just compare it with imath and you will see that lines touch .. so it adds
> some space above and below if needed
>
>> /Mikael
>>
>> ___________________________________________________________________________________
>> 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
>>
>> ___________________________________________________________________________________
>>
>
>
> --
>
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>                                              | 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

OK, nice. So, if I understand it right, it fixes the spacing like in:

     \startitemize[packed]
        \startitem whatever \openedupimath{\frac{1}{2}} whatever
        \startitem whatever $\frac{1}{2}$ whatever
        \startitem whatever $\frac{1}{2}$ whatever
        \startitem whatever \openedupimath{\frac{1}{2}} whatever
        \startitem whatever \openedupimath{\frac{1}{2}} whatever
    \stopitemize

between the rows where $ is used.

A related question: Is \startimath 1+1 \stopimath and $1+1$ the same?

I really like ConTeXt and want to use it (mainly for math since I work
in a maths department), so I want to understand the different
possibilities available.

/Mikael
___________________________________________________________________________________
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:[~2014-10-16 12:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-15 11:30 Hans Hagen
2014-10-16 11:23 ` Mikael P. Sundqvist
2014-10-16 11:33   ` Hans Hagen
2014-10-16 12:03     ` Mikael P. Sundqvist [this message]
2014-10-16 15:13       ` 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='CAHy-LL8N-qpFg7gbm96T+BXyzRme-kQ=C6RN_HjUP4Fboh_Cqg@mail.gmail.com' \
    --to=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).