Re: [NTG-context] t-inifile, my first experience with lua

2008-02-25 Thread Peter Münster
On Tue, Feb 26 2008, Hans Hagen wrote: > in your case, use > > thirddata.inifile = { } > > [...] > > just do: > > print(table.serialize(thirddata.inifile.t) > > (there are quite some helpers defined in l-string, l-table cum suis) Thank you, Hans, for your fast reply, these are already 2 usef

Re: [NTG-context] t-inifile, my first experience with lua

2008-02-25 Thread Hans Hagen
Peter Münster wrote: > Hello, > > Hey, it's really fun to code in lua: pattern matching, easy table > manipulation and so on, I should have learned it earlier! > > Since it's my first experience with lua, I would like to ask you for > comments on the t-inifile.tex module, attached to this message

Re: [NTG-context] t-inifile, my first experience with lua

2008-02-25 Thread Peter Münster
On Mon, Feb 25 2008, Aditya Mahajan wrote: >> I tried to implement a demo-mode, but there are two small problems: >> - I don't know how to use \savebuffer, all line-endings disappear in the >> saved file > > You can do something like > > \startbuffer[thewho] > contents of the ini file > \stopbuff

Re: [NTG-context] t-inifile, my first experience with lua

2008-02-25 Thread Aditya Mahajan
Hi Peter, On Mon, 25 Feb 2008, Peter Münster wrote: Hello, Hey, it's really fun to code in lua: pattern matching, easy table manipulation and so on, I should have learned it earlier! Looks interesting. Since it's my first experience with lua, I would like to ask you for comments on the t-i

[NTG-context] t-inifile, my first experience with lua

2008-02-25 Thread Peter Münster
Hello, Hey, it's really fun to code in lua: pattern matching, easy table manipulation and so on, I should have learned it earlier! Since it's my first experience with lua, I would like to ask you for comments on the t-inifile.tex module, attached to this message. I tried to implement a demo-mode

Re: [NTG-context] old-style numerals and .

2008-02-25 Thread Hans Hagen
Jesse Alama wrote: > I tried switching to nice old-style numerals for a table of contents, > and found to my chagrin that the periods in the numbers, such as the "." > in "2.3", get typeset as triangles. You can see the result (verified on > the live context in the garden) with > > \starttext >

Re: [NTG-context] \start\stoplines and image

2008-02-25 Thread Wolfgang Werners-Lucchini
Hi Wolfgang, > You should use the right command for this purpose. > > \startfiguretext > {none} > {\blackrule[height=\textheight,width=.5\textwidth]} > \startlines >Sie sprach: >\quotation{Das ist >ein Test.} >\stoplines > \stopfiguretext Yes, that works. But why is my exam