Am Thu, 23 Jan 2014 23:17:24 +0100
schrieb Hans Hagen <pra...@wxs.nl>:
> \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.

Kind regards,
Joshua Krämer


___________________________________________________________________________________
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