luatex 0.74: invalid escape sequence near '\%
Hi, luatex 0.74.0 has problems with an escaped string which used to work in 0.72. Small example (typeset git information, so may only work in directory under version control): \starttext git revision \ctxlua{context(os.resultof("git --no-pager log --pretty='\%h of \%aD' -1"))} \crlf ConTeXt version: \contextversion] \stoptext I get ! LuaTeX error [string "\directlua "]:1: invalid escape sequence near '\%'. system > tex > error on line 3 in file test.tex: LuaTeX error ... All best Thomas
On 1/4/2013 2:00 PM, Thomas A. Schmitz wrote:
Hi,
luatex 0.74.0 has problems with an escaped string which used to work in 0.72. Small example (typeset git information, so may only work in directory under version control):
\starttext
git revision \ctxlua{context(os.resultof("git --no-pager log --pretty='\%h of \%aD' -1"))} \crlf ConTeXt version: \contextversion]
\stoptext
\% is no valid escape, just use % or when in a pattern use %% ----------------------------------------------------------------- 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 -----------------------------------------------------------------
On 1/4/2013 2:00 PM, Thomas A. Schmitz wrote:
Hi,
luatex 0.74.0 has problems with an escaped string which used to work in 0.72. Small example (typeset git information, so may only work in directory under version control):
\starttext
git revision \ctxlua{context(os.resultof("git --no-pager log --pretty='\%h of \%aD' -1"))} \crlf ConTeXt version: \contextversion]
\stoptext
and \letterpercent at the tex end, so \letterpercent h ----------------------------------------------------------------- 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 (3)
-
Hans Hagen
-
Peter Münster
-
Thomas A. Schmitz