Re: [NTG-context] Using goto in lua

2018-06-22 Thread Christoph Reller
On Fri, 22 Jun 2018 13:57:05 +0200 Wolfgang Schuster
 wrote:
>
> Hans gave a solution to this a while ago:
> https://mailman.ntg.nl/pipermail/ntg-context/2018/090833.html
>
> Wolfgang

Thank you Wolfgang for pointing me to this solution!

Cheers,
Christoph
___
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] Using goto in lua

2018-06-22 Thread Wolfgang Schuster
Hans gave a solution to this a while ago: 
https://mailman.ntg.nl/pipermail/ntg-context/2018/090833.html


Wolfgang

Christoph Reller 
22. Juni 2018 um 13:52
Hi,

As mentioned in cld-mkiv.pdf, the entire ConTeXt interface can be 
called from lua: This is great!


Unfortunately the ConTeXt command \goto is a little problematic 
because goto is a lua keyword. Therefore, the following leads to a lua 
error:


context.goto("text", { "label" })

I guess the only way to call goto from lua is

context(false, "\\goto{text}[label]")

Am I correct?

Cheers,

Christoph

___
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] Using goto in lua

2018-06-22 Thread Christoph Reller
Hi,

As mentioned in cld-mkiv.pdf, the entire ConTeXt interface can be called
from lua: This is great!

Unfortunately the ConTeXt command \goto is a little problematic because
goto is a lua keyword. Therefore, the following leads to a lua error:

context.goto("text", { "label" })

I guess the only way to call goto from lua is

context(false, "\\goto{text}[label]")

Am I correct?

Cheers,

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