ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Projects?
@ 2000-11-07  7:24 Michal Kvasnicka
  2000-11-07  9:37 ` Projects? Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Kvasnicka @ 2000-11-07  7:24 UTC (permalink / raw)


Good morning.

After long use of ConTeXt I've read the chapter two of the Great English

Manual, and I've found projects. Let me ask some questions, please.

1) Is it possible to have more than tree levels (e. g. can component
load
other component?)? (A theoretical question perhaps. :-)

2) I've read about \startlocalenvironment[names]
...\stoplocalenvironment.
How is it invoked?

3) I'd like components to be styled in a different way if they are
standing
alone than if they are typeset in the whole project. How to do it? Via
\startlocalenvironment? How?

4) What the mechanism does precisely?

Many thanks,
Michal Kvasnicka

--
Economics is the only field in which two people can get a Nobel Prize
for saying exactly the opposite things.


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

* Re: Projects?
  2000-11-07  7:24 Projects? Michal Kvasnicka
@ 2000-11-07  9:37 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2000-11-07  9:37 UTC (permalink / raw)
  Cc: Context

At 08:24 AM 11/7/00 +0100, Michal Kvasnicka wrote:
>Good morning.
>
>After long use of ConTeXt I've read the chapter two of the Great English
>
>Manual, and I've found projects. Let me ask some questions, please.
>
>1) Is it possible to have more than tree levels (e. g. can component
>load
>other component?)? (A theoretical question perhaps. :-)

indeed components can components

>2) I've read about \startlocalenvironment[names]
>...\stoplocalenvironment.
>How is it invoked?

automatically, when an environment has local ones, these are only invoked
when the calling project/product/component matches the comma separated list

in many cases, modes are more handy, like in: 

\startmode[paper]
  \setuppapersize[A4][A4]
\stopmode

\startnotmode[paper]
  \setuppapersize[S6][S6]
\stopmode

to be used with 

texexec --mode=paper

>3) I'd like components to be styled in a different way if they are
>standing
>alone than if they are typeset in the whole project. How to do it? Via
>\startlocalenvironment? How?
>
>4) What the mechanism does precisely?

the project/etc mechanism [when set up ok] can be used to run individual
components. It originates in educational projects where we wanted to have
common environments, several products [student/teacher/examns/etc] with for
instance student materials split up in components. That way we can process
an individual component in the framework of a product in ... of a project
etc. Also, it makes possible to define several products using similar
components but under for instance a different environment. Say that you
want examns with and without answers, in which case the version with
answers can have answer blocks enabled [you may want to read the chapter
about moving blocks around and reusing text].

Actually all our a bit bigger projects have their files organized using
this project mechanism [for instance qa manuals with some 15  products of
which some 10 are composed of combinations/selections of hundreds of
components]. Actually, it's a rather old mechanism which I should extend /
update a bit, but it works ok.  

Hans

Hans    
-------------------------------------------------------------------------
                                                  Hans Hagen | PRAGMA ADE
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

end of thread, other threads:[~2000-11-07  9:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-07  7:24 Projects? Michal Kvasnicka
2000-11-07  9:37 ` Projects? Hans Hagen

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).