Hello,

I encountered a weird error.

The following code prints correctly to the console:

----
\starttext
  \startluacode
    print("\n@T")
  \stopluacode

  Abc
\stoptext
----

Gives correct:

"
...
fonts           > virtual math > unable to resolve name mapsfromchar
fonts           > fallback modern rm 12pt is loaded

@T
backend         > xmp > using file 
'c:/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
...
"

But the following code fails (?!):

----
\starttext
  \startluacode
    print("\nT")
  \stopluacode

  Abc
\stoptext
----

With:

"
...
fonts           > fallback modern rm 12pt is loaded
! Undefined control sequence.

system          > tex > error on line 4 in file 
D:/Lukas/ConTeXt/Test/Env3/Test.mkiv: Undefined control sequence ...

1     \starttext
2       \startluacode
3         print("\nT")
4 >>    \stopluacode
5
6       Abc
7     \stoptext
8

    print("\nT
                           ")
\luat_start_lua_code_indeed ...tlua \zerocount {#1
                                                  }}
l.4   \stopluacode
...
"

Any explanation?

TIA.

Best regards,

Lukas

Attachment: Test.mkiv
Description: Binary data

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

Reply via email to