On 1/25/2014 1:32 AM, Joshua Krämer wrote:
Am Thu, 23 Jan 2014 23:17:24 +0100 schrieb Hans Hagen
: \startluacode
local f = io.open("test.dat")
for line in f:lines() do local t = string.split(line,";") -- or "\t" for tabs context("% /t",t) -- context(table.concat(t," / ") context.par() end
\stopluacode
\stoptext
Thanks, I was not aware of the Context Lua extensions. Should have read the wiki more thoroughly ...
While I'm new to Lua, I already enjoy it. It opens a whole new world of possibilities to ConTeXt, making this great software even better! Thank you very much for all the hard work.
http://www.pragma-ade.nl/general/manuals/cld-mkiv.pdf ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------