Re: [NTG-context] Again: LuaTeX error: invalid escape sequence near '\i'
In last year Context this worked:
\define\imagepath {/home/janis/images} \externalfigure[\imagepath/test.jpg]
Now this change is necesarry:
\defineexpandble\imagepath {/home/janis/images}
Where do the change come from: Context, Tex or Luatex? Is there a genereal change which we have to take care off? Last year I made a book with a lot of programming in Context and I would like to use the code for the next book. Regards Janis
On 4/20/2013 2:16 AM, Jan Heinen wrote:
In last year Context this worked:
\define\imagepath {/home/janis/images} \externalfigure[\imagepath/test.jpg]
Now this change is necesarry:
\defineexpandble\imagepath {/home/janis/images}
Where do the change come from: Context, Tex or Luatex? Is there a genereal change which we have to take care off?
Last year I made a book with a lot of programming in Context and I would like to use the code for the next book.
at some point we decided to make \define generate an unexpandable command (which is what one wants in most cases) so, it's just the \define command (and in your case you could as well use \def but it's then best to use \ImagePath as one never knows if \imagepath isn't some internal command (of course you can also use \setupexternfigures) Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
btw, the \i that lua reports is a side effect of lua being more strict in escaping characters, so that might be a compatibility issue, although can argue that the old lua behaviour was a buglet Hans ----------------------------------------------------------------- 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 (2)
-
Hans Hagen
-
Jan Heinen