[NTG-context] NTG-context] How to hack the lua files

2013-06-18 Thread Lance Larsen
I haven't been using the project structure. From your question, I am inferring that this might help. At present I have treated the files as two separate documents. I didn't take too much time looking at how to set up the project structure because it wasn't clear that I needed it. But I can see how

[NTG-context] NTG-context] How to hack the lua files

2013-06-17 Thread Lance Larsen
Hans, Thankyou for your suggestion of using the \usereferences tag to reference formulas in another document. This is a good solution. However the example below doesn't give usable results because the references to the external formula output by test2.tex does not include the chapter number:

Re: [NTG-context] NTG-context] How to hack the lua files

2013-06-17 Thread Hans Hagen
On 6/17/2013 3:25 PM, Lance Larsen wrote: Hans, Thankyou for your suggestion of using the \usereferences tag to reference formulas in another document. This is a good solution. However the example below doesn't give usable results because the references to the external formula output by

Re: [NTG-context] How to hack the lua files

2013-06-07 Thread Hans Hagen
On 6/7/2013 1:20 AM, Lance Larsen wrote: I have a version of context standalone installed, and I am trying to add some functionality I need to strc-ref.lua. As a simple test to see if modifying the file was working, I enabled the ‘structures.referencing.identifying’ tracker and verified that I

Re: [NTG-context] How to hack the lua files

2013-06-07 Thread Lance Larsen
If I modify a core lua file how do I remake the format file? Is this something that is done from mtxrun.exe? I would certainly prefer to use a hook rather than modifying a core file, but how do I identify the hooks that are available? Is there a list of hooks that are available, or a standard way

Re: [NTG-context] How to hack the lua files

2013-06-07 Thread luigi scarso
On Fri, Jun 7, 2013 at 3:00 PM, Lance Larsen lance.c.lar...@gmail.comwrote: If I modify a core lua file how do I remake the format file? context --make -- luigi ___ If your question is of interest to others as

Re: [NTG-context] How to hack the lua files

2013-06-07 Thread Lance Larsen
for the reply which got me over the first hurdle. -Lance -- Message: 4 Date: Fri, 07 Jun 2013 09:25:36 +0200 From: Hans Hagen pra...@wxs.nl To: ntg-context@ntg.nl Subject: Re: [NTG-context] How to hack the lua files Message-ID: 51b18af0.5010...@wxs.nl Content-Type: text/plain

Re: [NTG-context] How to hack the lua files

2013-06-07 Thread luigi scarso
On Fri, Jun 7, 2013 at 3:00 PM, Lance Larsen lance.c.lar...@gmail.comwrote: If I modify a core lua file how do I remake the format file? Is this something that is done from mtxrun.exe? I would certainly prefer to use a hook rather than modifying a core file, but how do I identify the hooks

Re: [NTG-context] How to hack the lua files

2013-06-07 Thread Wolfgang Schuster
Am 07.06.2013 um 15:17 schrieb luigi scarso luigi.sca...@gmail.com: On Fri, Jun 7, 2013 at 3:00 PM, Lance Larsen lance.c.lar...@gmail.com wrote: If I modify a core lua file how do I remake the format file? Is this something that is done from mtxrun.exe? I would certainly prefer to use a

Re: [NTG-context] How to hack the lua files

2013-06-07 Thread Hans Hagen
On 6/7/2013 3:13 PM, Lance Larsen wrote: Hans, Your reply below was very helpful. I looked at the context command line options and saw 'make'. After running this, the code changes took effect. Thankyou. I could still use help in identifying where equation numbers are defined in the code so

Re: [NTG-context] How to hack the lua files

2013-06-07 Thread Lance Larsen
luigi, When I started exploring how to map equation references (eq:name) to equation numbers (4.2), I noticed that the 'tuc' file included the equation reference (eq:name), but I was not able to identify anywhere where it indicates the actual equation label specified in the document. Below is an

Re: [NTG-context] How to hack the lua files

2013-06-07 Thread Hans Hagen
On 6/7/2013 4:01 PM, Lance Larsen wrote: luigi, When I started exploring how to map equation references (eq:name) to equation numbers (4.2), I noticed that the 'tuc' file included the equation reference (eq:name), but I was not able to identify anywhere where it indicates the actual equation

Re: [NTG-context] How to hack the lua files

2013-06-07 Thread Sietse Brouwer
Lance Larsen wrote: If I modify a core lua file how do I remake the format file? luigi scarso luigi.sca...@gmail.com wrote: context --make Now documented on the page about the `context` script. I've added a page about formats, too, which also mentions how to remake them. (MkIV only. Don't know

Re: [NTG-context] How to hack the lua files

2013-06-07 Thread Hans Hagen
On 6/7/2013 5:27 PM, Sietse Brouwer wrote: Lance Larsen wrote: If I modify a core lua file how do I remake the format file? luigi scarso luigi.sca...@gmail.com wrote: context --make Now documented on the page about the `context` script. I've added a page about formats, too, which also

Re: [NTG-context] How to hack the lua files

2013-06-07 Thread luigi scarso
On Fri, Jun 7, 2013 at 5:27 PM, Sietse Brouwer sbbrou...@gmail.com wrote: Don't know how to remake the MkII format. texexec --make -- luigi ___ If your question is of interest to others as well, please add an

Re: [NTG-context] How to hack the lua files

2013-06-07 Thread Wolfgang Schuster
Am 07.06.2013 um 17:27 schrieb Sietse Brouwer sbbrou...@gmail.com: Lance Larsen wrote: If I modify a core lua file how do I remake the format file? luigi scarso luigi.sca...@gmail.com wrote: context --make Now documented on the page about the `context` script. I've added a page about

Re: [NTG-context] How to hack the lua files

2013-06-07 Thread Sietse Brouwer
Wolfgang and Luigi wrote: texexec --make Thanks, guys. Technical question: * Does `texexec --make` create only the mkii formats, and `context --make` create only the mkiv formats; * Or is it so that both commands create both the mkii *and* the mkiv formats? Cheers, Sietse

Re: [NTG-context] How to hack the lua files

2013-06-07 Thread luigi scarso
On Fri, Jun 7, 2013 at 5:49 PM, Sietse Brouwer sbbrou...@gmail.com wrote: Wolfgang and Luigi wrote: texexec --make Thanks, guys. Technical question: * Does `texexec --make` create only the mkii formats, and `context --make` create only the mkiv formats; * Or is it so that both commands

[NTG-context] How to hack the lua files

2013-06-06 Thread Lance Larsen
I have a version of context standalone installed, and I am trying to add some functionality I need to strc-ref.lua. As a simple test to see if modifying the file was working, I enabled the 'structures.referencing.identifying' tracker and verified that I was getting messages from this tracker in