2007/6/18, nicola <[EMAIL PROTECTED]>:
> Hi,
> I have a project with a few products sharing the same layout, which is
> specified in a global environment file. Each product is in a separate
> subdirectory together with its components. Then, I want to put some
> setups and figure definitions in product-specific environments and I do
> it like this:
>
> \startproduct OneProduct
> \project MyProject
> \environment OneProductDir/LocalEnvironment
> ...
>
> The problem is that the local environment is not read when I typeset a
> particular component, but only when I typeset the whole product. How can
> I fix that?
>
> Nicola

Hi Nicola,

if you use the same layout for all your documents in a project you can use the
following structure.

% Project

\startproject projectname

\environment environment1
.. more environments

\product product1
.. more products

\stopproject

% Product

\startproduct product1

\project projectname

\component component1
... more components

\stopproduct

% Component

\startcomponent component1

\project projectname

Content

\stopcomponent

The important part is to use \project in your component and not \product,
if I understand the code in core-job correct product files are not read within
a component, only projects, environments and other components.

Greetings
Wolfgang
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to