[NTG-context] Including command output

Kip Warner kip at thevertigo.com
Mon Mar 5 04:07:12 CET 2012


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.resultof"bzr 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 multiple times
during the typesetting process when it need only be done once with the
result cached. If this is indeed the case, does anyone have any
suggestions?

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20120304/24da6177/attachment.pgp>


More information about the ntg-context mailing list