On Dec 20, 2010, at 22:32 , Hans Hagen wrote:

> On 20-12-2010 5:56, Mojca Miklavec wrote:
>> On Sun, Dec 19, 2010 at 20:37, Florian Wobbe wrote:
>>> Hi,
>>> 
>>> The example from http://wiki.contextgarden.net/m-database gives me an error.
>>> 
>>> ! LuaTeX error ...t-beta/texmf-context/tex/context/base/m-database.lua:74: 
>>> bad argument #2 to 'lpegmatch' (string expected, got nil)
>>> stack traceback:
>>>        [C]: in function 'lpegmatch'
>>>        ...t-beta/texmf-context/tex/context/base/m-database.lua:74: in 
>>> function 'process'
>>>        <main ctx instance>:1: in main chunk.
>>> \doprocessdatabase ...ameter \c!command \!!es , }}
>>> 
>>> l.18 \stopMyTable
>>> 
>>> 
>>> I also, tried the first example of Mojca's CSV May Way 
>>> (http://dl.contextgarden.net/myway/csv.pdf) which gives me:
>>> 
>>> ! Undefined control sequence.
>>> l.36 \startseparatedlist
>>>                        [NaturalTable]
>>> 
>>> Thanks for any suggestions,
>>> Florian
>> 
>> Dear Florian,
>> 
>> Hans reimplemented the database module in MKIV. He requested a list of
>> problems that I have discovered in new implementation, but apparently
>> it's still on his TODO list to resolve them.
> 
> replace line 42 in m-database.lua by:
> 
>        data = buffers.getlines(settings.database)
> 
> (internally buffers used to be pre-split but that was changed)

Thanks Hans. Both examples work now, though I had to replace 
 \startseparatedlist[NaturalTable]
with
 \startNaturalTable
in Mojca's CSV May Way example.

Florian

___________________________________________________________________________________
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