* How to call \environment in CLD file
@ 2011-01-14 16:11 Khaled Hosny
2011-01-14 17:52 ` Peter Münster
0 siblings, 1 reply; 8+ messages in thread
From: Khaled Hosny @ 2011-01-14 16:11 UTC (permalink / raw)
To: mailing list for ConTeXt users
context.environment() just throws an error:
context.environment("foo.tex") -- throws an error
--context.input("foo.tex") -- fine
context.starttext()
context("foo")
context.stoptext()
Regards,
Khaled
--
Khaled Hosny
Arabic localiser and member of Arabeyes.org team
Free font developer
___________________________________________________________________________________
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] 8+ messages in thread
* Re: How to call \environment in CLD file
2011-01-14 16:11 How to call \environment in CLD file Khaled Hosny
@ 2011-01-14 17:52 ` Peter Münster
2011-01-14 17:58 ` Khaled Hosny
0 siblings, 1 reply; 8+ messages in thread
From: Peter Münster @ 2011-01-14 17:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
Khaled Hosny <khaledhosny@eglug.org> writes:
> context.environment("foo.tex") -- throws an error
context("\\environment foo ")
--
Peter Münster
Contact information: http://pmrb.free.fr/contact/
___________________________________________________________________________________
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] 8+ messages in thread
* Re: How to call \environment in CLD file
2011-01-14 17:52 ` Peter Münster
@ 2011-01-14 17:58 ` Khaled Hosny
2011-01-14 18:21 ` Hans Hagen
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Khaled Hosny @ 2011-01-14 17:58 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Fri, Jan 14, 2011 at 06:52:25PM +0100, Peter Münster wrote:
> Khaled Hosny <khaledhosny@eglug.org> writes:
>
> > context.environment("foo.tex") -- throws an error
>
> context("\\environment foo ")
The same error, no difference.
Regards,
Khaled
--
Khaled Hosny
Arabic localiser and member of Arabeyes.org team
Free font developer
___________________________________________________________________________________
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] 8+ messages in thread
* Re: How to call \environment in CLD file
2011-01-14 17:58 ` Khaled Hosny
@ 2011-01-14 18:21 ` Hans Hagen
2011-01-14 18:23 ` Hans Hagen
2011-01-14 18:32 ` Peter Münster
2 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2011-01-14 18:21 UTC (permalink / raw)
To: mailing list for ConTeXt users
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<khaledhosny@eglug.org> 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
-----------------------------------------------------------------
___________________________________________________________________________________
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] 8+ messages in thread
* Re: How to call \environment in CLD file
2011-01-14 17:58 ` Khaled Hosny
2011-01-14 18:21 ` Hans Hagen
@ 2011-01-14 18:23 ` Hans Hagen
2011-01-14 20:41 ` Khaled Hosny
2011-01-14 18:32 ` Peter Münster
2 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2011-01-14 18:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
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<khaledhosny@eglug.org> writes:
>>
>>> context.environment("foo.tex") -- throws an error
>>
>> context("\\environment foo ")
btw, you can also use \useenvironment[filename], so
context.environment { "foo.tex" }
-----------------------------------------------------------------
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] 8+ messages in thread
* Re: How to call \environment in CLD file
2011-01-14 17:58 ` Khaled Hosny
2011-01-14 18:21 ` Hans Hagen
2011-01-14 18:23 ` Hans Hagen
@ 2011-01-14 18:32 ` Peter Münster
2011-01-14 20:37 ` Khaled Hosny
2 siblings, 1 reply; 8+ messages in thread
From: Peter Münster @ 2011-01-14 18:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
Khaled Hosny <khaledhosny@eglug.org> writes:
> On Fri, Jan 14, 2011 at 06:52:25PM +0100, Peter Münster wrote:
>> Khaled Hosny <khaledhosny@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/
___________________________________________________________________________________
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] 8+ messages in thread
* Re: How to call \environment in CLD file
2011-01-14 18:32 ` Peter Münster
@ 2011-01-14 20:37 ` Khaled Hosny
0 siblings, 0 replies; 8+ messages in thread
From: Khaled Hosny @ 2011-01-14 20:37 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Fri, Jan 14, 2011 at 07:32:39PM +0100, Peter Münster wrote:
> Khaled Hosny <khaledhosny@eglug.org> writes:
>
> > On Fri, Jan 14, 2011 at 06:52:25PM +0100, Peter Münster wrote:
> >> Khaled Hosny <khaledhosny@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:
Right, I just missed the space.
Regards,
Khaled
--
Khaled Hosny
Arabic localiser and member of Arabeyes.org team
Free font developer
___________________________________________________________________________________
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] 8+ messages in thread
* Re: How to call \environment in CLD file
2011-01-14 18:23 ` Hans Hagen
@ 2011-01-14 20:41 ` Khaled Hosny
0 siblings, 0 replies; 8+ messages in thread
From: Khaled Hosny @ 2011-01-14 20:41 UTC (permalink / raw)
To: Hans Hagen; +Cc: mailing list for ConTeXt users
On Fri, Jan 14, 2011 at 07:23:27PM +0100, Hans Hagen wrote:
> 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<khaledhosny@eglug.org> writes:
> >>
> >>>context.environment("foo.tex") -- throws an error
> >>
> >>context("\\environment foo ")
>
> btw, you can also use \useenvironment[filename], so
>
> context.environment { "foo.tex" }
context.useenvironment { "foo.tex" } you mean, that is fine with me,
much cleaner.
Regards,
Khaled
--
Khaled Hosny
Arabic localiser and member of Arabeyes.org team
Free font developer
___________________________________________________________________________________
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] 8+ messages in thread
end of thread, other threads:[~2011-01-14 20:41 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-14 16:11 How to call \environment in CLD file Khaled Hosny
2011-01-14 17:52 ` Peter Münster
2011-01-14 17:58 ` Khaled Hosny
2011-01-14 18:21 ` Hans Hagen
2011-01-14 18:23 ` Hans Hagen
2011-01-14 20:41 ` Khaled Hosny
2011-01-14 18:32 ` Peter Münster
2011-01-14 20:37 ` Khaled Hosny
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).