On 8/26/07, Hans Hagen
luigi scarso wrote:
The following macro is wrong: \def\TestC{% \directlua0{% \obeyspaces \obeylines
hm, you want to expand this kin dof stuff inside the directlua? As a last resorse to preserve spaces
I must preserve spaces and newlines.
Any idea ?
just use
\startluacode
\stopluacode
No, it doesn't work for my needs because it doesn't preserve spaces and newline. This works, after putting code in testD.lua \def\TestD#1{% \directlua0{dofile('testD.lua')}% } -- luigi ---------------------------------------------------------------- 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net