Re: [NTG-context] Extensible arrows in ConTeXT

2017-07-29 Thread Mathias Schickel

> Am 27.07.2017 um 18:33 schrieb Hans Hagen :
> 
> On 7/27/2017 6:02 PM, Mathias Schickel wrote:
> 
>> I am not a lua programmer and I have no idea what that code does. So maybe 
>> Hans can tell me if I changed the code as he intended.
> i uploaded a beta

I can confirm that everything is working as intended! Thank you very much, 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
___

Re: [NTG-context] Extensible arrows in ConTeXT

2017-07-27 Thread Hans Hagen

On 7/27/2017 6:02 PM, Mathias Schickel wrote:


I am not a lua programmer and I have no idea what that code does. So maybe Hans 
can tell me if I changed the code as he intended.

i uploaded a beta

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

Re: [NTG-context] Extensible arrows in ConTeXT

2017-07-27 Thread Mathias Schickel

> Am 26.07.2017 um 17:36 schrieb Pablo Rodriguez :
> 
> On 07/26/2017 01:31 PM, Mathias Schickel wrote:
>> [...]
>> Hi Pablo,
>> 
>> thank you for advice! Unfortunately I still get the error
>> [...]
>> I see two possible reasons for that:
>> 
>> Either the command „context --make --all“ is not the right one
>> (besides: How can I check if ConTeXt has remade the format?), or the
>> code is not correctly changed. Maybe you can answer that, Hans.
> 
> Hi Matthias,
> 
> The log displays the date of the format in its third line:
> 
> system  > ConTeXt  ver: 2017.07.17 00:20 MKIV beta  fmt:
> 2017.7.26  int: english/english
> 
> A minimal sample:
> 
>\definefontfamily[mainfont][rm][MinionPro]
>\definefontfamily[mainfont][mm][Minion Math]
>\setupbodyfont[mainfont]
>\starttext
>$A \xrightarrow{}{} B$
>\stoptext
> 
> This should work fine in your computer with \setupbodyfont[pagella] or
> no \setupbodyfont. The previous sample works fine in my computer,
> because I don’t have Minion Math installed.
> 
> The problem here is that we don’t have access to your fonts. Guessing
> may be hard, so could you provide another font (freely available to
> anyone) that shows the issue?

The problem is that I have not yet found another font that showed the problem. 
Using LuaLaTeX and fontspec \xrightarrow does work as intended. 
Besides I know that Hans has a version of Minion Math. Maybe he can try 
himself. Else we could ask Johannes Küster (the designer of Minion Math) if he 
could provide you files for testing.

Possibly the true problem is that I have not been able to properly remake the 
format. I have executed context --make --all on the terminal but I am getting 
MKIV beta  fmt:
2017.7.25.

Does that mean that the change in the file is not realised by ConTeXT? Or does 
that only tell me when I have downloaded the beta itself?

> 
>> From line 506 on the code of math-act.lua now is
>> [...]
>> Is that correct now?
> 
> I don’t know. But you may check it yourself and then report back.

I am not a lua programmer and I have no idea what that code does. So maybe Hans 
can tell me if I changed the code as he intended.

> 
> Pablo

Mathias

> -- 
> http://www.ousia.tk
> ___
> 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
> ___

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

Re: [NTG-context] Extensible arrows in ConTeXT

2017-07-26 Thread Pablo Rodriguez
On 07/26/2017 01:31 PM, Mathias Schickel wrote:
> [...]
> Hi Pablo,
> 
> thank you for advice! Unfortunately I still get the error
> [...]
> I see two possible reasons for that:
> 
> Either the command „context --make --all“ is not the right one
>  (besides: How can I check if ConTeXt has remade the format?), or the
> code is not correctly changed. Maybe you can answer that, Hans.

Hi Matthias,

The log displays the date of the format in its third line:

system  > ConTeXt  ver: 2017.07.17 00:20 MKIV beta  fmt:
2017.7.26  int: english/english

A minimal sample:

\definefontfamily[mainfont][rm][MinionPro]
\definefontfamily[mainfont][mm][Minion Math]
\setupbodyfont[mainfont]
\starttext
$A \xrightarrow{}{} B$
\stoptext

This should work fine in your computer with \setupbodyfont[pagella] or
no \setupbodyfont. The previous sample works fine in my computer,
because I don’t have Minion Math installed.

The problem here is that we don’t have access to your fonts. Guessing
may be hard, so could you provide another font (freely available to
anyone) that shows the issue?

> From line 506 on the code of math-act.lua now is
> [...]
> Is that correct now?

I don’t know. But you may check it yourself and then report back.

Pablo
-- 
http://www.ousia.tk
___
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
___

Re: [NTG-context] Extensible arrows in ConTeXT

2017-07-26 Thread Mathias Schickel

> Am 26.07.2017 um 08:07 schrieb Pablo Rodriguez :
> 
> On 07/26/2017 07:20 AM, Mathias Schickel wrote:
>>> Am 26.07.2017 um 00:47 schrieb Hans Hagen:
>>> [...]>> you can patch this in that file and remake the format
>>> 
>>>   elseif kind == e_right then
>>>   local charlist = data[3].horiz_variants
>>>   if charlist then
>>>   local right = charlist[#charlist]
>>>   roffset = abs((right["start"] or 0) - (right["end"] or 0))
>>>   end
>> 
>> Hi Hans,
>> 
>> thank you for your quick answer! I am not sure How I can remake that
>> format. Can you tell me the command for that?
> 
> Hi Matthias,
> 
> as far as I can remember, the command is (I have used it in the past,
> but my memory is weak):
> 
>  context --make --all
> 

Hi Pablo,

thank you for advice! Unfortunately I still get the error

ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:514: attempt to get 
length of local 'charlist' (a nil value)
stack traceback:
...ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:514: in 
function 'horizontalcode'
...ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:541: in 
function <...ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:540>
(...tail calls…)


I see two possible reasons for that:

Either the command „context --make --all“ is not the right one  (besides: How 
can I check if ConTeXt has remade the format?), or the code is not correctly 
changed. Maybe you can answer that, Hans.

From line 506 on the code of math-act.lua now is

if kind == e_left then
local charlist = data[3].horiz_variants
if charlist then
-- this is the line of the first error 
as the error code suggests
local left = charlist[1]
loffset = abs((left["start"] or 0) - (left["end"] or 0))
end
elseif kind == e_right then
local charlist = data[3].horiz_variants
if charlist then
local right = charlist[#charlist]
roffset = abs((right["start"] or 0) - (right["end"] or 0))
end
 elseif kind == e_horizontal then
local charlist = data[3].horiz_variants
if charlist then
local left = charlist[1]
local right = charlist[#charlist]
loffset = abs((left ["start"] or 0) - (left ["end"] or 0))
roffset = abs((right["start"] or 0) - (right["end"] or 0))
end
end
return kind, loffset, roffset

Is that correct now?

In every case the error code mentioned another line of the same file:

math-act.lua:541: in function 
<...ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:540>
(...tail calls…)

>> And can you maybe patch that in the distribution, too? (Else I fear
>> that I have to remake that format every time I will update the
>> distribution from contextgarden.)
> As far as I can tell, Hans will fix ConTeXt (he has done in the past).
> But he has provided the patch, so that you may  work until the next beta
> update.

Okay, that is very good!

> 
> Cheers,
> 
> Pablo


Best
Mathias


> -- 
> http://www.ousia.tk
> ___
> 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
> ___

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

Re: [NTG-context] Extensible arrows in ConTeXT

2017-07-26 Thread Pablo Rodriguez
On 07/26/2017 07:20 AM, Mathias Schickel wrote:
>> Am 26.07.2017 um 00:47 schrieb Hans Hagen:
>> [...]>> you can patch this in that file and remake the format
>>
>>elseif kind == e_right then
>>local charlist = data[3].horiz_variants
>>if charlist then
>>local right = charlist[#charlist]
>>roffset = abs((right["start"] or 0) - (right["end"] or 0))
>>end
> 
> Hi Hans,
> 
> thank you for your quick answer! I am not sure How I can remake that
> format. Can you tell me the command for that?

Hi Matthias,

as far as I can remember, the command is (I have used it in the past,
but my memory is weak):

  context --make --all

> And can you maybe patch that in the distribution, too? (Else I fear
> that I have to remake that format every time I will update the
> distribution from contextgarden.)
As far as I can tell, Hans will fix ConTeXt (he has done in the past).
But he has provided the patch, so that you may  work until the next beta
update.

Cheers,

Pablo
-- 
http://www.ousia.tk
___
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
___

Re: [NTG-context] Extensible arrows in ConTeXT

2017-07-25 Thread Mathias Schickel

> Am 26.07.2017 um 00:47 schrieb Hans Hagen :
> 
> On 7/26/2017 12:01 AM, Mathias Schickel wrote:
>>> Am 22.07.2017 um 22:34 schrieb Alan Braslau >> >:
>>> 
>>> On Fri, 21 Jul 2017 12:31:33 +0200
>>> Mathias Schickel >> > wrote:
>>> 
> $\xrightarrow{}{}$
 
 This throws errors. Any idea why?
 
> $\xrightoverleftarrow{}{33°C}$
 
 This does work. Sadly it is not the arrow I want to have.
>>> 
>>> MWE:
>>> 
>>> \starttext
>>> $A \xrightarrow{}{} B$
>>> \stoptext
>>> 
>>> No problem here.
>> It seems to be a problem with the font I use.  Hans, do you have any idea 
>> why that does not work if I am using Minion Math? I am getting the following 
>> error:
>> attempt to get length of local 'charlist' (a nil value)
>> stack traceback:
>> ...ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:514: in function 
>> 'horizontalcode'
>> ...ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:541: in function 
>> <...ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:540>
>> (...tail calls...)
> you can patch this in that file and remake the format
> 
>elseif kind == e_right then
>local charlist = data[3].horiz_variants
>if charlist then
>local right = charlist[#charlist]
>roffset = abs((right["start"] or 0) - (right["end"] or 0))
>end

Hi Hans,

thank you for your quick answer! I am not sure How I can remake that format. 
Can you tell me the command for that? And can you maybe patch that in the 
distribution, too? (Else I fear that I have to remake that format every time I 
will update the distribution from contextgarden.)

Best
Mathias


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

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

Re: [NTG-context] Extensible arrows in ConTeXT

2017-07-25 Thread Hans Hagen

On 7/26/2017 12:01 AM, Mathias Schickel wrote:


Am 22.07.2017 um 22:34 schrieb Alan Braslau >:


On Fri, 21 Jul 2017 12:31:33 +0200
Mathias Schickel > wrote:



$\xrightarrow{}{}$


This throws errors. Any idea why?


$\xrightoverleftarrow{}{33°C}$


This does work. Sadly it is not the arrow I want to have.


MWE:

\starttext
$A \xrightarrow{}{} B$
\stoptext

No problem here.


It seems to be a problem with the font I use.  Hans, do you have any 
idea why that does not work if I am using Minion Math? I am getting the 
following error:


attempt to get length of local 'charlist' (a nil value)
stack traceback:
...ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:514: in 
function 'horizontalcode'
...ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:541: in 
function <...ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:540>

(...tail calls...)

you can patch this in that file and remake the format

elseif kind == e_right then
local charlist = data[3].horiz_variants
if charlist then
local right = charlist[#charlist]
roffset = abs((right["start"] or 0) - (right["end"] or 0))
end



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

Re: [NTG-context] Extensible arrows in ConTeXT

2017-07-25 Thread Mathias Schickel

> Am 22.07.2017 um 22:34 schrieb Alan Braslau :
> 
> On Fri, 21 Jul 2017 12:31:33 +0200
> Mathias Schickel  wrote:
> 
>>> $\xrightarrow{}{}$
>> 
>> This throws errors. Any idea why?
>> 
>>> $\xrightoverleftarrow{}{33°C}$
>> 
>> This does work. Sadly it is not the arrow I want to have.
> 
> MWE:
> 
> \starttext
> $A \xrightarrow{}{} B$
> \stoptext
> 
> No problem here.

It seems to be a problem with the font I use.  Hans, do you have any idea why 
that does not work if I am using Minion Math? I am getting the following error:

attempt to get length of local 'charlist' (a nil value)
stack traceback:
...ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:514: in 
function 'horizontalcode'
...ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:541: in 
function <...ext/tex/texmf-context/tex/context/base/mkiv/math-act.lua:540>
(...tail calls...)

Mathias

> 
> Alan

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

Re: [NTG-context] Extensible arrows in ConTeXT

2017-07-22 Thread Alan Braslau
On Fri, 21 Jul 2017 12:31:33 +0200
Mathias Schickel  wrote:

> > $\xrightarrow{}{}$
> 
> This throws errors. Any idea why?
> 
> > $\xrightoverleftarrow{}{33°C}$
> 
> This does work. Sadly it is not the arrow I want to have.

MWE:

\starttext
$A \xrightarrow{}{} B$
\stoptext

No problem here.

Alan
___
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
___

Re: [NTG-context] Extensible arrows in ConTeXT

2017-07-21 Thread Mathias Schickel
> $\xrightarrow{}{}$

This throws errors. Any idea why?

> $\xrightoverleftarrow{}{33°C}$

This does work. Sadly it is not the arrow I want to have.

Mathias




> Am 14.07.2017 um 21:25 schrieb Alan Braslau :
> 
> On Fri, 14 Jul 2017 11:33:14 +0200
> Mathias Schickel  wrote:
> 
>> Dear list,
>> 
>> I want to typeset an extensible arrow as described in this document:
>> http://dl.contextgarden.net/myway/matharrows.pdf
>>  Sadly I get errors
>> if I use \xrightarrow (even this simple command does not work).
>> 
>> Do extensible arrows still exists in ConTeXT and how can I use them?
>> 
>> Best
>> Mathias
> 
> $\xrightarrow{}{}$
> $\xrightoverleftarrow{}{33°C}$
> etc.
> 
> Alan

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

Re: [NTG-context] Extensible arrows in ConTeXT

2017-07-14 Thread Alan Braslau
On Fri, 14 Jul 2017 11:33:14 +0200
Mathias Schickel  wrote:

> Dear list,
> 
> I want to typeset an extensible arrow as described in this document:
> http://dl.contextgarden.net/myway/matharrows.pdf
>  Sadly I get errors
> if I use \xrightarrow (even this simple command does not work).
> 
> Do extensible arrows still exists in ConTeXT and how can I use them?
> 
> Best
> Mathias

$\xrightarrow{}{}$
$\xrightoverleftarrow{}{33°C}$
etc.

Alan
___
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
___

Re: [NTG-context] Extensible arrows in ConTeXT

2017-07-14 Thread Mathias Schickel

> Am 14.07.2017 um 11:33 schrieb Mathias Schickel :
> 
> Dear list,
> 
> I want to typeset an extensible arrow as described in this document: 
> http://dl.contextgarden.net/myway/matharrows.pdf 
>  
> Sadly I get errors if I use \xrightarrow (even this simple command does not 
> work).
> 
> Do extensible arrows still exists in ConTeXT and how can I use them?
> 

Does no-one know if ConTeXt has extensible arrows? It would be great if at 
least someone could tell where I can get information about topics like that. 
Does a written compendium of all mathematical symbols in ConTeXt exist?


> Best
> Mathias
> ___
> 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
> ___

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

[NTG-context] Extensible arrows in ConTeXT

2017-07-14 Thread Mathias Schickel
Dear list,

I want to typeset an extensible arrow as described in this document: 
http://dl.contextgarden.net/myway/matharrows.pdf 
 
Sadly I get errors if I use \xrightarrow (even this simple command does not 
work).

Do extensible arrows still exists in ConTeXT and how can I use them?

Best
Mathias___
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
___