[NTG-context] How to call \environment in CLD file

Peter Münster pmlists at free.fr
Fri Jan 14 19:32:39 CET 2011


Khaled Hosny <khaledhosny at eglug.org> writes:

> On Fri, Jan 14, 2011 at 06:52:25PM +0100, Peter Münster wrote:
>> Khaled Hosny <khaledhosny at eglug.org> writes:
>> 
>> > context.environment("foo.tex") -- throws an error
>> 
>> context("\\environment foo ")
>
> The same error, no difference.

Then a minimal example is needed. This works here:

local env = io.open("foo.tex", "w")
env:write"\\setuplayout[width=1em]\n"
env:close()
context"\\environment foo "
context.starttext()
context"bla bla"
context.stoptext()

-- 
Peter Münster

Contact information: http://pmrb.free.fr/contact/


More information about the ntg-context mailing list