Re: [NTG-context] Including command output

2012-03-05 Thread Kip Warner
On Sun, 2012-03-04 at 23:20 -0500, Aditya Mahajan wrote: If you want to use the automagic way, you can define \BazaarRevision to redefined \BazaarRevision, for example: \def\BazaarRevision {\ctxlua{context.setevalue( BazaarRevision, os.resultofbzr

Re: [NTG-context] Including command output

2012-03-05 Thread Aditya Mahajan
On Mon, 5 Mar 2012, Kip Warner wrote: On Sun, 2012-03-04 at 23:20 -0500, Aditya Mahajan wrote: If you want to use the automagic way, you can define \BazaarRevision to redefined \BazaarRevision, for example: \def\BazaarRevision {\ctxlua{context.setevalue(

Re: [NTG-context] Including command output

2012-03-05 Thread Kip Warner
On Mon, 2012-03-05 at 22:05 -0500, Aditya Mahajan wrote: The attached file works at my end. It works at my end as well, but just not as part of my book. No. It is defining \BazaarVersion once and then reusing the result. Add \loggingall to your file to see what is happening. It still bails.

Re: [NTG-context] Including command output

2012-03-05 Thread Aditya Mahajan
On Mon, 5 Mar 2012, Kip Warner wrote: On Mon, 2012-03-05 at 22:05 -0500, Aditya Mahajan wrote: The attached file works at my end. It works at my end as well, but just not as part of my book. Hard to debug without the actual test file. No. It is defining \BazaarVersion once and then

Re: [NTG-context] Including command output

2012-03-05 Thread Kip Warner
On Mon, 2012-03-05 at 22:15 -0500, Aditya Mahajan wrote: Use {\loggingall \BazaarRevision } I added the above to my environment, but this is all I see. I think this is the same as last time: + /usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.lua) {vertical mode: \tracingstats}

Re: [NTG-context] Including command output

2012-03-05 Thread Aditya Mahajan
On Mon, 5 Mar 2012, Kip Warner wrote: On Mon, 2012-03-05 at 22:15 -0500, Aditya Mahajan wrote: Use {\loggingall \BazaarRevision } I added the above to my environment, but this is all I see. Can you attach your complete log file? Aditya

Re: [NTG-context] Including command output

2012-03-05 Thread Kip Warner
On Mon, 2012-03-05 at 22:38 -0500, Aditya Mahajan wrote: Can you attach your complete log file? Attached. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com resolversresolving loading configuration file

Re: [NTG-context] Including command output

2012-03-05 Thread Aditya Mahajan
On Mon, 5 Mar 2012, Kip Warner wrote: On Mon, 2012-03-05 at 22:38 -0500, Aditya Mahajan wrote: Can you attach your complete log file? Attached. The error is not due to the macro \BazaarRevision. The log file shows that the group (for {\loggingall \BazaarRevison}) is closed properly; the

Re: [NTG-context] Including command output

2012-03-05 Thread Kip Warner
On Mon, 2012-03-05 at 22:50 -0500, Aditya Mahajan wrote: The error is not due to the macro \BazaarRevision. The log file shows that the group (for {\loggingall \BazaarRevison}) is closed properly; the error is displayed after that. So, something else in your setup is causing the error. It

Re: [NTG-context] Including command output

2012-03-05 Thread Aditya Mahajan
On Mon, 5 Mar 2012, Kip Warner wrote: On Mon, 2012-03-05 at 22:50 -0500, Aditya Mahajan wrote: The error is not due to the macro \BazaarRevision. The log file shows that the group (for {\loggingall \BazaarRevison}) is closed properly; the error is displayed after that. So, something else in

Re: [NTG-context] Including command output

2012-03-05 Thread Kip Warner
On Tue, 2012-03-06 at 00:04 -0500, Aditya Mahajan wrote: Why don't you use the first version (\initializebazaarversion and \usebazaarversion)? \def\initializeBazaar {\ctxlua{context(\\global\\edef\\BazaarRevision{\%s}, os.resultofbzr revno | tr -d '\\n')}}

[NTG-context] Including command output

2012-03-04 Thread Kip Warner
Hey list, I'd like to include the output of a command. I am using the following to define the command, \def\BazaarRevision{\cldcontext{os.resultofbzr revno | tr -d '\\n'}} and the following to use the output of the command, \BazaarRevision A concern I have is whether this command is executed

Re: [NTG-context] Including command output

2012-03-04 Thread Aditya Mahajan
On Sun, 4 Mar 2012, Kip Warner wrote: Hey list, I'd like to include the output of a command. I am using the following to define the command, \def\BazaarRevision{\cldcontext{os.resultofbzr revno | tr -d '\\n'}} and the following to use the output of the command, \BazaarRevision A concern I