On 14-1-2011 6:58, Khaled Hosny wrote:
On Fri, Jan 14, 2011 at 06:52:25PM +0100, Peter Münster wrote:
Khaled Hosny
writes: context.environment("foo.tex") -- throws an error
context("\\environment foo ")
The same error, no difference.
as it's \environment somename_followed_by_space we need: context.environment(false, "foo.tex ") a false will omit the {} for the next argument. and the space is after the filename. Sorry that it looks so hackerish. I think that it makes sense to patch \environment to accept [filename] as well. (It's an old command) 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 -----------------------------------------------------------------