Re: [NTG-context] luatex 0.74: invalid escape sequence near '\%

2013-01-04 Thread Peter Münster
On Fri, Jan 04 2013, Thomas A. Schmitz wrote:

 ! LuaTeX error [string \directlua ]:1: invalid escape sequence near '\%'.

Workaround: \letterpercent

-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] luatex 0.74: invalid escape sequence near '\%

2013-01-04 Thread Hans Hagen

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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] luatex 0.74: invalid escape sequence near '\%

2013-01-04 Thread Hans Hagen

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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] luatex 0.74: invalid escape sequence near '\%

2013-01-04 Thread Thomas A. Schmitz

On 01/04/2013 02:18 PM, Hans Hagen wrote:

and \letterpercent at the tex end, so

\letterpercent h


Thank you Peter and Hans, letterpercent works!

Thomas
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___