Re: [NTG-context] Using lua with the command line for "macros"

2013-10-14 Thread Kumar Appaiah
On Mon, Oct 14, 2013 at 09:47:49AM +0200, Hans Hagen wrote: > >Well, upon reading the document you suggested, I just realised that I > >could work around my issue by creating A.tex and B.tex as follows: > > > >A.tex: > >\startluacode > > -- define A's variables > >\stopluacode > >\input generic >

Re: [NTG-context] Using lua with the command line for "macros"

2013-10-14 Thread Hans Hagen
On 10/14/2013 4:48 AM, Kumar Appaiah wrote: On Sun, Oct 13, 2013 at 09:31:11PM -0400, Kumar Appaiah wrote: On Mon, Oct 14, 2013 at 03:17:28AM +0200, luigi scarso wrote: Have you seen [2]http://www.pragma-ade.com/general/manuals/cld-mkiv.pdf No, I haven't seen it. I'll have a close loo

Re: [NTG-context] Using lua with the command line for "macros"

2013-10-13 Thread Kumar Appaiah
On Sun, Oct 13, 2013 at 09:31:11PM -0400, Kumar Appaiah wrote: > On Mon, Oct 14, 2013 at 03:17:28AM +0200, luigi scarso wrote: > >Have you seen > >[2]http://www.pragma-ade.com/general/manuals/cld-mkiv.pdf > > No, I haven't seen it. I'll have a close look at it. Thanks for the > pointer. W

Re: [NTG-context] Using lua with the command line for "macros"

2013-10-13 Thread Kumar Appaiah
On Mon, Oct 14, 2013 at 03:17:28AM +0200, luigi scarso wrote: >On Mon, Oct 14, 2013 at 3:01 AM, Kumar Appaiah ><[1]a.ku...@alumni.iitm.ac.in> wrote: > > Hi. > > At the outset, I understand that this is a slight abuse of LuaTeX and > this can be done with plain TeX. Neverthe

Re: [NTG-context] Using lua with the command line for "macros"

2013-10-13 Thread luigi scarso
On Mon, Oct 14, 2013 at 3:01 AM, Kumar Appaiah wrote: > Hi. > > At the outset, I understand that this is a slight abuse of LuaTeX and > this can be done with plain TeX. Nevertheless, I'd like to see if a > solution exists for this approach. > > I'm trying to use Lua with ConTeXt as a macro preproc

[NTG-context] Using lua with the command line for "macros"

2013-10-13 Thread Kumar Appaiah
Hi. At the outset, I understand that this is a slight abuse of LuaTeX and this can be done with plain TeX. Nevertheless, I'd like to see if a solution exists for this approach. I'm trying to use Lua with ConTeXt as a macro preprocessor. To be more clear, I have files A.lua, B.lua which define som