ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Pass a lua table to metapost
@ 2014-12-07 19:25 DesdeChaves
  2014-12-08  9:21 ` Hans Hagen
  0 siblings, 1 reply; 15+ messages in thread
From: DesdeChaves @ 2014-12-07 19:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 425 bytes --]

I would like to pass the lua table keys and values to metapost. In the keys
i have information about the paths names and in the values i have
information about the label that should be draw in the center of each path
(unitsquare).

In my code (see attach) the table in question is
"weekdays_number_and_name".

I know that is possible to pass a array from metapost to lua. Is the
reverse possible?


thanks in advance


Jorge

[-- Attachment #1.2: Type: text/html, Size: 673 bytes --]

[-- Attachment #2: calendario3.tex --]
[-- Type: application/x-tex, Size: 1634 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Pass a lua table to metapost
  2014-12-07 19:25 Pass a lua table to metapost DesdeChaves
@ 2014-12-08  9:21 ` Hans Hagen
  2014-12-08 11:27   ` DesdeChaves
  2014-12-08 12:45   ` MP/Lua binding (was: Pass a lua table to metapost) Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 2 replies; 15+ messages in thread
From: Hans Hagen @ 2014-12-08  9:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 12/7/2014 8:25 PM, DesdeChaves wrote:
>
> I would like to pass the lua table keys and values to metapost. In the
> keys i have information about the paths names and in the values i have
> information about the label that should be draw in the center of each
> path (unitsquare).
>
> In my code (see attach) the table in question is
> "weekdays_number_and_name".
>
> I know that is possible to pass a array from metapost to lua. Is the
> reverse possible?

it's possible to ask values from within mp:

\starttext

\startluacode
document.variables = {
     labels = {
         "one",
         "two",
         "three",
     }
}
\stopluacode

\startMPpage
     numeric dx, dy;
     dx = 4.4cm;
     dy = 0.53cm;
     path b[];
     for i=1 upto lua("mp.print(\#document.variables.labels)") :
         b[i] = unitsquare xscaled dx yscaled dy shifted (0, (i-1)*dy);
         draw b[i];
         label(lua("mp.quoted(document.variables.labels[" & decimal i & 
"])"), center b[i]);
     endfor
\stopMPpage

\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] 15+ messages in thread

* Re: Pass a lua table to metapost
  2014-12-08  9:21 ` Hans Hagen
@ 2014-12-08 11:27   ` DesdeChaves
  2014-12-08 12:19     ` Hans Hagen
  2014-12-08 12:45   ` MP/Lua binding (was: Pass a lua table to metapost) Procházka Lukáš Ing. - Pontex s. r. o.
  1 sibling, 1 reply; 15+ messages in thread
From: DesdeChaves @ 2014-12-08 11:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 3294 bytes --]

Thanks, but I'm not able to run this code in my system.

I'm working in ConTeXt  ver: 2014.12.06 14:20 MKIV beta  fmt: 2014.12.8
 int: english/english

and the error message is:


>> runscript
! Isolated expression.
<to be read again>
                   (
mlib_luas_luacall->begingroup.runscript(

""for.s=(TEXT2):if.string.s:&s.elsei...

lua->..._s,(TEXT3))else:mlib_luas_luacall((TEXT3))
                                                  fi.endgroup
<*> ...lua("mp.print(#document.variables.labels)")
                                                   : b[i] = unitsquare
xscal...

! Extra tokens will be flushed.
<to be read again>
                   (
mlib_luas_luacall->begingroup.runscript(

""for.s=(TEXT2):if.string.s:&s.elsei...

lua->..._s,(TEXT3))else:mlib_luas_luacall((TEXT3))
                                                  fi.endgroup
<*> ...lua("mp.print(#document.variables.labels)")
                                                   : b[i] = unitsquare
xscal...

>> vacuous
! Improper final value has been replaced by 0.
<to be read again>
                   :
<*> ...a("mp.print(#document.variables.labels)") :
                                                   b[i] = unitsquare
xscaled...


2014-12-08 9:21 GMT+00:00 Hans Hagen <pragma@wxs.nl>:

> On 12/7/2014 8:25 PM, DesdeChaves wrote:
>
>>
>> I would like to pass the lua table keys and values to metapost. In the
>> keys i have information about the paths names and in the values i have
>> information about the label that should be draw in the center of each
>> path (unitsquare).
>>
>> In my code (see attach) the table in question is
>> "weekdays_number_and_name".
>>
>> I know that is possible to pass a array from metapost to lua. Is the
>> reverse possible?
>>
>
> it's possible to ask values from within mp:
>
> \starttext
>
> \startluacode
> document.variables = {
>     labels = {
>         "one",
>         "two",
>         "three",
>     }
> }
> \stopluacode
>
> \startMPpage
>     numeric dx, dy;
>     dx = 4.4cm;
>     dy = 0.53cm;
>     path b[];
>     for i=1 upto lua("mp.print(\#document.variables.labels)") :
>         b[i] = unitsquare xscaled dx yscaled dy shifted (0, (i-1)*dy);
>         draw b[i];
>         label(lua("mp.quoted(document.variables.labels[" & decimal i &
> "])"), center b[i]);
>     endfor
> \stopMPpage
>
> \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
> ____________________________________________________________
> _______________________




-- 
Atentamente

DesdeChaves

[-- Attachment #1.2: Type: text/html, Size: 5563 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Pass a lua table to metapost
  2014-12-08 11:27   ` DesdeChaves
@ 2014-12-08 12:19     ` Hans Hagen
  2014-12-08 15:34       ` DesdeChaves
  0 siblings, 1 reply; 15+ messages in thread
From: Hans Hagen @ 2014-12-08 12:19 UTC (permalink / raw)
  To: ntg-context

On 12/8/2014 12:27 PM, DesdeChaves wrote:
> Thanks, but I'm not able to run this code in my system..
>
> I'm working in ConTeXt  ver: 2014.12.06 14:20 MKIV beta  fmt: 2014.12.8
>   int: english/english
>
> and the error message is:
>
>
>  >> runscript
> ! Isolated expression.

so your luatex is too old

-----------------------------------------------------------------
                                           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] 15+ messages in thread

* Re: MP/Lua binding (was: Pass a lua table to metapost)
  2014-12-08  9:21 ` Hans Hagen
  2014-12-08 11:27   ` DesdeChaves
@ 2014-12-08 12:45   ` Procházka Lukáš Ing. - Pontex s. r. o.
  2014-12-08 13:32     ` MP/Lua binding Hans Hagen
  1 sibling, 1 reply; 15+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2014-12-08 12:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello Hans,

> it's possible to ask values from within mp:
>
> \starttext
>
> \startluacode
> document.variables = {
>      labels = {
>          "one",
>          "two",
>          "three",
>      }
> }
> \stopluacode
>
> \startMPpage
>      numeric dx, dy;
>      dx = 4.4cm;
>      dy = 0.53cm;
>      path b[];
>      for i=1 upto lua("mp.print(\#document.variables.labels)") :
>          b[i] = unitsquare xscaled dx yscaled dy shifted (0, (i-1)*dy);
>          draw b[i];
>          label(lua("mp.quoted(document.variables.labels[" & decimal i &
> "])"), center b[i]);
>      endfor
> \stopMPpage
>
> \stoptext

is there a doc where to study MP/Lua binding ("mp" members; examples) - like the manual "ConTeXt Lua Documents"?

Here we can see Lua "mp.print()" and "mp.quoted()" usage...

Best regards,

Lukas


-- 
Ing. Lukáš Procházka | mailto:LPr@pontex.cz
Pontex s. r. o.      | mailto:pontex@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___________________________________________________________________________________
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] 15+ messages in thread

* Re: MP/Lua binding
  2014-12-08 12:45   ` MP/Lua binding (was: Pass a lua table to metapost) Procházka Lukáš Ing. - Pontex s. r. o.
@ 2014-12-08 13:32     ` Hans Hagen
  2014-12-08 14:36       ` Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 1 reply; 15+ messages in thread
From: Hans Hagen @ 2014-12-08 13:32 UTC (permalink / raw)
  To: ntg-context

On 12/8/2014 1:45 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
> Hello Hans,
>
>> it's possible to ask values from within mp:
>>
>> \starttext
>>
>> \startluacode
>> document.variables = {
>>      labels = {
>>          "one",
>>          "two",
>>          "three",
>>      }
>> }
>> \stopluacode
>>
>> \startMPpage
>>      numeric dx, dy;
>>      dx = 4.4cm;
>>      dy = 0.53cm;
>>      path b[];
>>      for i=1 upto lua("mp.print(\#document.variables.labels)") :
>>          b[i] = unitsquare xscaled dx yscaled dy shifted (0, (i-1)*dy);
>>          draw b[i];
>>          label(lua("mp.quoted(document.variables.labels[" & decimal i &
>> "])"), center b[i]);
>>      endfor
>> \stopMPpage
>>
>> \stoptext
>
> is there a doc where to study MP/Lua binding ("mp" members; examples) -
> like the manual "ConTeXt Lua Documents"?
>
> Here we can see Lua "mp.print()" and "mp.quoted()" usage...

article in bachotek proceedings and upcoming ctx group proceedings ... i 
might consider a manual indeed

Hans

-----------------------------------------------------------------
                                           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] 15+ messages in thread

* Re: MP/Lua binding
  2014-12-08 13:32     ` MP/Lua binding Hans Hagen
@ 2014-12-08 14:36       ` Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 0 replies; 15+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2014-12-08 14:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, 08 Dec 2014 14:32:16 +0100, Hans Hagen <pragma@wxs.nl> wrote:

> article in bachotek proceedings and upcoming ctx group proceedings ... i
> might consider a manual indeed
>
> Hans

Personally, any printable/buyable manual on this topic would be appreciated...

Lukas


-- 
Ing. Lukáš Procházka | mailto:LPr@pontex.cz
Pontex s. r. o.      | mailto:pontex@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___________________________________________________________________________________
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] 15+ messages in thread

* Re: Pass a lua table to metapost
  2014-12-08 12:19     ` Hans Hagen
@ 2014-12-08 15:34       ` DesdeChaves
  2014-12-08 15:43         ` Hans Hagen
  2014-12-08 15:48         ` Mojca Miklavec
  0 siblings, 2 replies; 15+ messages in thread
From: DesdeChaves @ 2014-12-08 15:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1788 bytes --]

I use the last context minimals. In my system a have a new luatex binary
(v. 0.78.2) but I don't know how install it in minimals. If i just
 copy/paste the new binary to the folder  .../tex/texmf-osx-64/bin I found
a eeror message  ""This went wrong:
.../Context/tex/texmf-context/tex/context/base/spac-ver.lua:933: attempt to
index field 'properties' (a nil value)""

Why context minimals don't coming with the last luatex?

Thanks for your support

2014-12-08 12:19 GMT+00:00 Hans Hagen <pragma@wxs.nl>:

> On 12/8/2014 12:27 PM, DesdeChaves wrote:
>
>> Thanks, but I'm not able to run this code in my system..
>>
>> I'm working in ConTeXt  ver: 2014.12.06 14:20 MKIV beta  fmt: 2014.12.8
>>   int: english/english
>>
>> and the error message is:
>>
>>
>>  >> runscript
>> ! Isolated expression.
>>
>
> so your luatex is too old
>
>
> -----------------------------------------------------------------
>                                           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
> ____________________________________________________________
> _______________________
>



-- 
Atentamente

DesdeChaves

[-- Attachment #1.2: Type: text/html, Size: 3198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Pass a lua table to metapost
  2014-12-08 15:34       ` DesdeChaves
@ 2014-12-08 15:43         ` Hans Hagen
  2014-12-08 15:48         ` Mojca Miklavec
  1 sibling, 0 replies; 15+ messages in thread
From: Hans Hagen @ 2014-12-08 15:43 UTC (permalink / raw)
  To: ntg-context

On 12/8/2014 4:34 PM, DesdeChaves wrote:
> I use the last context minimals. In my system a have a new luatex binary
> (v. 0.78.2) but I don't know how install it in minimals. If i just
>   copy/paste the new binary to the folder  .../tex/texmf-osx-64/bin I
> found a eeror message  ""This went wrong:
> .../Context/tex/texmf-context/tex/context/base/spac-ver.lua:933: attempt
> to index field 'properties' (a nil value)""
>
> Why context minimals don't coming with the last luatex?

it's the reverse: the latest luatex comes with the latest minimals

normally one runs "first-setup" to update

Hans


-----------------------------------------------------------------
                                           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] 15+ messages in thread

* Re: Pass a lua table to metapost
  2014-12-08 15:34       ` DesdeChaves
  2014-12-08 15:43         ` Hans Hagen
@ 2014-12-08 15:48         ` Mojca Miklavec
  2014-12-08 16:03           ` DesdeChaves
  2014-12-09 12:16           ` Hans Hagen
  1 sibling, 2 replies; 15+ messages in thread
From: Mojca Miklavec @ 2014-12-08 15:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Dec 8, 2014 at 4:34 PM, DesdeChaves wrote:
> I use the last context minimals. In my system a have a new luatex binary (v.
> 0.78.2) but I don't know how install it in minimals. If i just  copy/paste
> the new binary to the folder  .../tex/texmf-osx-64/bin I found a eeror
> message  ""This went wrong:
> .../Context/tex/texmf-context/tex/context/base/spac-ver.lua:933: attempt to
> index field 'properties' (a nil value)""
>
> Why context minimals don't coming with the last luatex?

Hans, what version of LuaTeX is needed?

Jorge, which version of luatex do you have in minimals / what OS are
you using? It's not 100% clear to me whether you have 0.78.2 in
minimals or somewhere else. If 0.78.2 comes from minimals, you must be
using PowerPC or armel and we need to ask the maintainer of these
binaries for a rebuild.

If LuaTeX 0.79.2 is needed, we just need to send an email to everyone
(or rather: we should do that anyway). Maybe I just forgot to send a
notice to the builders to make new builds when LuaTeX 0.79.2 came out.

Mojca
___________________________________________________________________________________
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] 15+ messages in thread

* Re: Pass a lua table to metapost
  2014-12-08 15:48         ` Mojca Miklavec
@ 2014-12-08 16:03           ` DesdeChaves
  2014-12-08 16:05             ` DesdeChaves
  2014-12-09 12:16           ` Hans Hagen
  1 sibling, 1 reply; 15+ messages in thread
From: DesdeChaves @ 2014-12-08 16:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1848 bytes --]

Sorry for the noise. My LuaTeX version is 0.79.1. I'm using MacOSX

This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972)

2014-12-08 15:48 GMT+00:00 Mojca Miklavec <mojca.miklavec.lists@gmail.com>:

> On Mon, Dec 8, 2014 at 4:34 PM, DesdeChaves wrote:
> > I use the last context minimals. In my system a have a new luatex binary
> (v.
> > 0.78.2) but I don't know how install it in minimals. If i just
> copy/paste
> > the new binary to the folder  .../tex/texmf-osx-64/bin I found a eeror
> > message  ""This went wrong:
> > .../Context/tex/texmf-context/tex/context/base/spac-ver.lua:933: attempt
> to
> > index field 'properties' (a nil value)""
> >
> > Why context minimals don't coming with the last luatex?
>
> Hans, what version of LuaTeX is needed?
>
> Jorge, which version of luatex do you have in minimals / what OS are
> you using? It's not 100% clear to me whether you have 0.78.2 in
> minimals or somewhere else. If 0.78.2 comes from minimals, you must be
> using PowerPC or armel and we need to ask the maintainer of these
> binaries for a rebuild.
>
> If LuaTeX 0.79.2 is needed, we just need to send an email to everyone
> (or rather: we should do that anyway). Maybe I just forgot to send a
> notice to the builders to make new builds when LuaTeX 0.79.2 came out.
>
> Mojca
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>



-- 
Atentamente

DesdeChaves

[-- Attachment #1.2: Type: text/html, Size: 2892 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Pass a lua table to metapost
  2014-12-08 16:03           ` DesdeChaves
@ 2014-12-08 16:05             ` DesdeChaves
  2014-12-08 18:24               ` DesdeChaves
  0 siblings, 1 reply; 15+ messages in thread
From: DesdeChaves @ 2014-12-08 16:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2021 bytes --]

MacOSX intel

2014-12-08 16:03 GMT+00:00 DesdeChaves <desdechaves@gmail.com>:

> Sorry for the noise. My LuaTeX version is 0.79.1. I'm using MacOSX
>
> This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972)
>
> 2014-12-08 15:48 GMT+00:00 Mojca Miklavec <mojca.miklavec.lists@gmail.com>
> :
>
>> On Mon, Dec 8, 2014 at 4:34 PM, DesdeChaves wrote:
>> > I use the last context minimals. In my system a have a new luatex
>> binary (v.
>> > 0.78.2) but I don't know how install it in minimals. If i just
>> copy/paste
>> > the new binary to the folder  .../tex/texmf-osx-64/bin I found a eeror
>> > message  ""This went wrong:
>> > .../Context/tex/texmf-context/tex/context/base/spac-ver.lua:933:
>> attempt to
>> > index field 'properties' (a nil value)""
>> >
>> > Why context minimals don't coming with the last luatex?
>>
>> Hans, what version of LuaTeX is needed?
>>
>> Jorge, which version of luatex do you have in minimals / what OS are
>> you using? It's not 100% clear to me whether you have 0.78.2 in
>> minimals or somewhere else. If 0.78.2 comes from minimals, you must be
>> using PowerPC or armel and we need to ask the maintainer of these
>> binaries for a rebuild.
>>
>> If LuaTeX 0.79.2 is needed, we just need to send an email to everyone
>> (or rather: we should do that anyway). Maybe I just forgot to send a
>> notice to the builders to make new builds when LuaTeX 0.79.2 came out.
>>
>> Mojca
>>
>> ___________________________________________________________________________________
>> 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
>>
>> ___________________________________________________________________________________
>>
>
>
>
> --
> Atentamente
>
> DesdeChaves
>



-- 
Atentamente

DesdeChaves

[-- Attachment #1.2: Type: text/html, Size: 3404 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Pass a lua table to metapost
  2014-12-08 16:05             ` DesdeChaves
@ 2014-12-08 18:24               ` DesdeChaves
  2014-12-08 18:39                 ` Herbert Voss
  0 siblings, 1 reply; 15+ messages in thread
From: DesdeChaves @ 2014-12-08 18:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2315 bytes --]

After the update to new ConTeXT minimals -- luatex beta-0.79.2 (rev 5084)
-- the code runs perfectly.

Thanks to all.

Jorge

2014-12-08 16:05 GMT+00:00 DesdeChaves <desdechaves@gmail.com>:

> MacOSX intel
>
> 2014-12-08 16:03 GMT+00:00 DesdeChaves <desdechaves@gmail.com>:
>
>> Sorry for the noise. My LuaTeX version is 0.79.1. I'm using MacOSX
>>
>> This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972)
>>
>> 2014-12-08 15:48 GMT+00:00 Mojca Miklavec <mojca.miklavec.lists@gmail.com
>> >:
>>
>>> On Mon, Dec 8, 2014 at 4:34 PM, DesdeChaves wrote:
>>> > I use the last context minimals. In my system a have a new luatex
>>> binary (v.
>>> > 0.78.2) but I don't know how install it in minimals. If i just
>>> copy/paste
>>> > the new binary to the folder  .../tex/texmf-osx-64/bin I found a eeror
>>> > message  ""This went wrong:
>>> > .../Context/tex/texmf-context/tex/context/base/spac-ver.lua:933:
>>> attempt to
>>> > index field 'properties' (a nil value)""
>>> >
>>> > Why context minimals don't coming with the last luatex?
>>>
>>> Hans, what version of LuaTeX is needed?
>>>
>>> Jorge, which version of luatex do you have in minimals / what OS are
>>> you using? It's not 100% clear to me whether you have 0.78.2 in
>>> minimals or somewhere else. If 0.78.2 comes from minimals, you must be
>>> using PowerPC or armel and we need to ask the maintainer of these
>>> binaries for a rebuild.
>>>
>>> If LuaTeX 0.79.2 is needed, we just need to send an email to everyone
>>> (or rather: we should do that anyway). Maybe I just forgot to send a
>>> notice to the builders to make new builds when LuaTeX 0.79.2 came out.
>>>
>>> Mojca
>>>
>>> ___________________________________________________________________________________
>>> 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
>>>
>>> ___________________________________________________________________________________
>>>
>>
>>
>>
>> --
>> Atentamente
>>
>> DesdeChaves
>>
>
>
>
> --
> Atentamente
>
> DesdeChaves
>



-- 
Atentamente

DesdeChaves

[-- Attachment #1.2: Type: text/html, Size: 4104 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Pass a lua table to metapost
  2014-12-08 18:24               ` DesdeChaves
@ 2014-12-08 18:39                 ` Herbert Voss
  0 siblings, 0 replies; 15+ messages in thread
From: Herbert Voss @ 2014-12-08 18:39 UTC (permalink / raw)
  To: ntg-context

Am 08.12.2014 um 19:24 schrieb DesdeChaves:
> After the update to new ConTeXT minimals -- luatex beta-0.79.2 (rev
> 5084) -- the code runs perfectly.

hm, after updating (Linux) I have still 79.1:

voss@shania:~/Links/opt/context/tex/texmf-linux-64/bin> ./luatex -v
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972)

Herbert


___________________________________________________________________________________
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] 15+ messages in thread

* Re: Pass a lua table to metapost
  2014-12-08 15:48         ` Mojca Miklavec
  2014-12-08 16:03           ` DesdeChaves
@ 2014-12-09 12:16           ` Hans Hagen
  1 sibling, 0 replies; 15+ messages in thread
From: Hans Hagen @ 2014-12-09 12:16 UTC (permalink / raw)
  To: ntg-context

On 12/8/2014 4:48 PM, Mojca Miklavec wrote:
> On Mon, Dec 8, 2014 at 4:34 PM, DesdeChaves wrote:
>> I use the last context minimals. In my system a have a new luatex binary (v.
>> 0.78.2) but I don't know how install it in minimals. If i just  copy/paste
>> the new binary to the folder  .../tex/texmf-osx-64/bin I found a eeror
>> message  ""This went wrong:
>> .../Context/tex/texmf-context/tex/context/base/spac-ver.lua:933: attempt to
>> index field 'properties' (a nil value)""
>>
>> Why context minimals don't coming with the last luatex?
>
> Hans, what version of LuaTeX is needed?

we have 0.79.2 now but 0.79.1 is also ok i think

> Jorge, which version of luatex do you have in minimals / what OS are
> you using? It's not 100% clear to me whether you have 0.78.2 in
> minimals or somewhere else. If 0.78.2 comes from minimals, you must be
> using PowerPC or armel and we need to ask the maintainer of these
> binaries for a rebuild.
>
> If LuaTeX 0.79.2 is needed, we just need to send an email to everyone
> (or rather: we should do that anyway). Maybe I just forgot to send a
> notice to the builders to make new builds when LuaTeX 0.79.2 came out.

indeed, 0.79.2 is the latest greatest

Hans

-----------------------------------------------------------------
                                           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] 15+ messages in thread

end of thread, other threads:[~2014-12-09 12:16 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-07 19:25 Pass a lua table to metapost DesdeChaves
2014-12-08  9:21 ` Hans Hagen
2014-12-08 11:27   ` DesdeChaves
2014-12-08 12:19     ` Hans Hagen
2014-12-08 15:34       ` DesdeChaves
2014-12-08 15:43         ` Hans Hagen
2014-12-08 15:48         ` Mojca Miklavec
2014-12-08 16:03           ` DesdeChaves
2014-12-08 16:05             ` DesdeChaves
2014-12-08 18:24               ` DesdeChaves
2014-12-08 18:39                 ` Herbert Voss
2014-12-09 12:16           ` Hans Hagen
2014-12-08 12:45   ` MP/Lua binding (was: Pass a lua table to metapost) Procházka Lukáš Ing. - Pontex s. r. o.
2014-12-08 13:32     ` MP/Lua binding Hans Hagen
2014-12-08 14:36       ` Procházka Lukáš Ing. - Pontex s. r. o.

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