Re: [NTG-context] Saving module data in tuc file

2011-12-04 Thread Wolfgang Schuster
Am 04.12.2011 um 01:20 schrieb Aditya Mahajan: Hi, How does one save and read third-party data in tuc file at the lua end? I am trying to write a module t-ifchanged that defines a \doiffilechanged macro that provides the functionality of mtxrun --ifchanged without calling an external

Re: [NTG-context] Saving module data in tuc file

2011-12-04 Thread Hans Hagen
On 4-12-2011 01:20, Aditya Mahajan wrote: Hi, How does one save and read third-party data in tuc file at the lua end? I am trying to write a module t-ifchanged that defines a \doiffilechanged macro that provides the functionality of mtxrun --ifchanged without calling an external program (This

Re: [NTG-context] Saving module data in tuc file

2011-12-04 Thread Aditya Mahajan
On Sun, 4 Dec 2011, Hans Hagen wrote: On 4-12-2011 01:20, Aditya Mahajan wrote: Hi, How does one save and read third-party data in tuc file at the lua end? I am trying to write a module t-ifchanged that defines a \doiffilechanged macro that provides the functionality of mtxrun --ifchanged

Re: [NTG-context] Saving module data in tuc file

2011-12-04 Thread Aditya Mahajan
On Sun, 4 Dec 2011, Aditya Mahajan wrote: \def\executeCommand {\doifmode{*first} {\ctxlua{job.files.run(\!!bs\externalfiter::input_file\!!es, \!!bs\externalfiltercommand\!!es)}}} The solution is to remove the test for the first mode. Needs a bit of

[NTG-context] Saving module data in tuc file

2011-12-03 Thread Aditya Mahajan
Hi, How does one save and read third-party data in tuc file at the lua end? I am trying to write a module t-ifchanged that defines a \doiffilechanged macro that provides the functionality of mtxrun --ifchanged without calling an external program (This is meant to be a support module for

Re: [NTG-context] Saving module data in tuc file

2011-12-03 Thread luigi scarso
On Sun, Dec 4, 2011 at 1:20 AM, Aditya Mahajan adit...@umich.edu wrote: Hi, How does one save and read third-party data in tuc file at the lua end? You can read the data with loadfile or dofile: utilitydata=dofile('test.tuc') and then you have the table stored into utilitydata See for the

Re: [NTG-context] Saving module data in tuc file

2011-12-03 Thread Aditya Mahajan
On Sun, 4 Dec 2011, luigi scarso wrote: On Sun, Dec 4, 2011 at 1:20 AM, Aditya Mahajan adit...@umich.edu wrote: Hi, How does one save and read third-party data in tuc file at the lua end? You can read the data with loadfile or dofile: utilitydata=dofile('test.tuc') But doesn't ConTeXt