lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Dirk Laurie <dpl@sun.ac.za> writes:
> LuaTeX is TeX with Lua 5.1 inside it.  In LuaLaTeX your complete
> TeX file looks like this:
>
> \documentclass{article}
> \begin{document}
> \directlua{
>     dofile('myfile.lua') -- generate your data and put its TeX code
>                          -- into an array of strings called 'mytexcode'
>     tex.print(mytexcode)
> }
> \end{document}
>
> Inside the \directlua statement you can use all of Lua plus some extra
> packages.  Each element of 'mytexcode' will be treated as a line of
> TeX.

Hmm, excellent!

A new frontend to tex using lua+lpeg should be a doddle then!

-Miles

-- 
Erudition, n. Dust shaken out of a book into an empty skull.