[NTG-context] Minor bug in Lua or ConTeXt

Hans Hagen j.hagen at freedom.nl
Wed Jan 18 10:48:12 CET 2023


On 1/18/2023 12:36 AM, Bruce Horrocks via ntg-context wrote:
> ConTeXt  ver: 2023.01.04
> 
> The following MWE won't compile because of the \dummycommand line even though it is a comment. Not sure whether it's a minor bug or an unavoidable aspect of allowing embedded Lua.
> 
> \startluacode
> -- \dummycommand
> \stopluacode
> \starttext
> Hello
> \stoptext

a bang-head-against-the-wall case:

\let\dummycommand\relax

\startluacode
-- \dummycommand
\stopluacode
\starttext
Hello
\stoptext

or:

\ifdefined\dummycommand \else \let\dummycommand\relax \fi

a document-on-the-wiki challenge for Pablo

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



More information about the ntg-context mailing list