[NTG-context] Lua code inside database module

Jaroslav Hajtmar hajtmar at gyza.cz
Mon Jul 26 08:36:28 CEST 2010


Hello all,

Is there any possibility use Lua commands in 
\startseparatedlist[NaturalTable] ... \stopseparatedlist environment in 
database module?
I would like using database module im my Lua application.
Thanx
Jaroslav

Here is mimimal example:

\usemodule[database]

\defineseparatedlist
[NaturalTable]
[separator=comma,
before=\bTABLE,after=\eTABLE,
first=\bTR,last=\eTR,
left=\bTD,right=\eTD]


\starttext

\startseparatedlist[NaturalTable]
col1,col2,col3
\stopseparatedlist

\startseparatedlist[NaturalTable]
\directlua{tex.print("col1,col2,col3")} % here program fails
\stopseparatedlist

\stoptext



More information about the ntg-context mailing list