Using goto in lua
![](https://secure.gravatar.com/avatar/13bc5842f0b785acdb8f02c38b78439d.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
Hans gave a solution to this a while ago: https://mailman.ntg.nl/pipermail/ntg-context/2018/090833.html Wolfgang
Christoph Reller mailto:christoph.reller@gmail.com 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 ___________________________________________________________________________________
participants (2)
-
Christoph Reller
-
Wolfgang Schuster