ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* luatex 0.74: invalid escape sequence near '\%
@ 2013-01-04 13:00 Thomas A. Schmitz
  2013-01-04 13:16 ` Peter Münster
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Thomas A. Schmitz @ 2013-01-04 13:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: luatex 0.74: invalid escape sequence near '\%
  2013-01-04 13:00 luatex 0.74: invalid escape sequence near '\% Thomas A. Schmitz
@ 2013-01-04 13:16 ` Peter Münster
  2013-01-04 13:17 ` Hans Hagen
  2013-01-04 13:18 ` Hans Hagen
  2 siblings, 0 replies; 5+ messages in thread
From: Peter Münster @ 2013-01-04 13:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: luatex 0.74: invalid escape sequence near '\%
  2013-01-04 13:00 luatex 0.74: invalid escape sequence near '\% Thomas A. Schmitz
  2013-01-04 13:16 ` Peter Münster
@ 2013-01-04 13:17 ` Hans Hagen
  2013-01-04 13:18 ` Hans Hagen
  2 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2013-01-04 13:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Thomas A. Schmitz

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: luatex 0.74: invalid escape sequence near '\%
  2013-01-04 13:00 luatex 0.74: invalid escape sequence near '\% Thomas A. Schmitz
  2013-01-04 13:16 ` Peter Münster
  2013-01-04 13:17 ` Hans Hagen
@ 2013-01-04 13:18 ` Hans Hagen
  2013-01-04 13:20   ` Thomas A. Schmitz
  2 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2013-01-04 13:18 UTC (permalink / raw)
  To: Thomas A. Schmitz, mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: luatex 0.74: invalid escape sequence near '\%
  2013-01-04 13:18 ` Hans Hagen
@ 2013-01-04 13:20   ` Thomas A. Schmitz
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas A. Schmitz @ 2013-01-04 13:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-01-04 13:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-04 13:00 luatex 0.74: invalid escape sequence near '\% Thomas A. Schmitz
2013-01-04 13:16 ` Peter Münster
2013-01-04 13:17 ` Hans Hagen
2013-01-04 13:18 ` Hans Hagen
2013-01-04 13:20   ` Thomas A. Schmitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).