[NTG-context] ! LuaTeX error [string "\directlua "]:1: invalid escape sequence

Kip Warner kip at thevertigo.com
Fri Apr 19 07:39:11 CEST 2013


Hey list,

I am having problems typesetting the following minimal to try and
extract the current revision number from my revision control system:

        % Bzr revision...
        \def\initializeBzr
                {\ctxlua{context("\\global\\edef\\BzrRevision{\%s}",
                         os.resultof"bzr revno | tr -d '\\n'")}}
        \initializeBzr
        
        \starttex
        foo
        \stoptex

The error I receive is:

        ! LuaTeX error [string "\directlua "]:1: invalid escape sequence
        near '\%'.
        system          > tex > error on line 5 in file minimal.tex:
        LuaTeX error  ...

Line 5 is the \initializeBzr invocation. This was working with TeX Live
2012, but perhaps the correct usage has changed. I am now using ConTeXt
2013.04.11 19:55 with LuaTeX beta-0.76.0-2013041612  (TeX Live 2013)
(rev 4627).

Thank you,

PS Please cc me because my subscription is temporarily disabled.

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


More information about the ntg-context mailing list