ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* math snapping
@ 2014-10-15 11:30 Hans Hagen
  2014-10-16 11:23 ` Mikael P. Sundqvist
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2014-10-15 11:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: math snapping
  2014-10-15 11:30 math snapping Hans Hagen
@ 2014-10-16 11:23 ` Mikael P. Sundqvist
  2014-10-16 11:33   ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Mikael P. Sundqvist @ 2014-10-16 11:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: math snapping
  2014-10-16 11:23 ` Mikael P. Sundqvist
@ 2014-10-16 11:33   ` Hans Hagen
  2014-10-16 12:03     ` Mikael P. Sundqvist
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2014-10-16 11:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: math snapping
  2014-10-16 11:33   ` Hans Hagen
@ 2014-10-16 12:03     ` Mikael P. Sundqvist
  2014-10-16 15:13       ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Mikael P. Sundqvist @ 2014-10-16 12:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: math snapping
  2014-10-16 12:03     ` Mikael P. Sundqvist
@ 2014-10-16 15:13       ` Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2014-10-16 15:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 10/16/2014 2:03 PM, Mikael P. Sundqvist wrote:
> A related question: Is \startimath 1+1 \stopimath and $1+1$ the same?

yes

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-10-16 15:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-15 11:30 math snapping 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
2014-10-16 15:13       ` Hans Hagen

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).