![](https://secure.gravatar.com/avatar/b1d6c7fd3f2c1695eff076f3ff897f34.jpg?s=120&d=mm&r=g)
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 the log. I then modified the log statement in strc-ref.lua and processed the document again. The changes I made to the lua file did not seem to be active. I verified that there is only one log statement that matches the output I am seeing. Why would my lua code change not be active? Is the lua code cached somehow? (I am running this from windows if that matters). The code I modified is under the path: context\tex\texmf-context\tex\context\base\ strc-ref.lua -Lance Larsen
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
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 was getting messages from this tracker in the log. I then modified the log statement in strc-ref.lua and processed the document again. The changes I made to the lua file did not seem to be active. I verified that there is only one log statement that matches the output I am seeing. Why would my lua code change not be active? Is the lua code cached somehow? (I am running this from windows if that matters).
The code I modified is under the path:
context\tex\texmf-context\tex\context\base\ strc-ref.lua
if you patch files that way you need to remake the format file I don't know what you patch, but changing something in a core file is no guarantee for the future. It's not a problem to add functionality (lots of hooks for that) but best do that in a local module that gets loaded at runtime then. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Lance Larsen