Am 05.11.2008 um 01:00 schrieb Marcin Borkowski:

> Dnia Wed, Nov 05, 2008 at 12:00:30AM +0100, Wolfgang Schuster  
> napisał(a):
>>
>> Am 04.11.2008 um 23:47 schrieb Marcin Borkowski:
>>
>>> Dnia Tue, Nov 04, 2008 at 10:58:32PM +0100, Wolfgang Schuster
>>> napisał(a):
>>>>
>>>> Am 04.11.2008 um 22:44 schrieb Marcin Borkowski:
>>>>
>>>>> Dnia Tue, Nov 04, 2008 at 10:37:26PM +0100, Wolfgang Schuster
>>>>> napisał(a):
>>>>>>
>>>>>> Am 04.11.2008 um 22:01 schrieb Marcin Borkowski:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> yet another question from me;).
>>>>>>>
>>>>>>> I have a project divided into products divided into components.
>>>>>>> When I
>>>>>>> typeset a component, I want to get it's title (I keep it in a
>>>>>>> variable)
>>>>>>> in the footer.  If I typeset the wqhole project, I want to have
>>>>>>> the
>>>>>>> pagenumber there instead.
>>>>>>>
>>>>>>> How do I do it?  (I mean what to put in the
>>>>>>> environment/product/component code?)
>>>>>>
>>>>>> \startmode[*product]
>>>>>> ...
>>>>>> \stopmode
>>>>>
>>>>> And: is there a corresponding \startmode[*project] ... \stopmode
>>>>> construct?
>>>>
>>>> Yes.
>>>
>>> Yes, that's right.  However, it won't work wrt. arranging.  If I put
>>> \setuppapersize[A5][A4]
>>> \setuparranging[2UP,rotated]
>>>
>>> within
>>> \startmode[*project]
>>> ...
>>> \stopmode
>>>
>>> I have still to repeat
>>> \setuparranging[normal]
>>>
>>> within
>>> \startmode[*product]
>>> ...
>>> \stopmode
>>>
>>> etc.
>>>
>>> Is it a bug or a feature?  (Seems a bug for me;).)
>>
>> I guess you missed something in your files, it works for me.
>
> So here are my files:
>
> env.tex:
> ======
> \environment env
>
> \startmode[*project]
>  \setupheadertexts[Project]
>  \setuppapersize[A5][A4]
>  \setuparranging[2UP,rotated]
> \stopmode
>
> \startmode[*product]
>  \setupheadertexts[Product]
> \stopmode
>
> \startmode[*component]
>  \setupheadertexts[Component]
> \stopmode
> ======
>
> project.tex:
> ======
> \startproject project
>
> \environment env
>
> \product product
>
> \stopproject
> ======
>
> product.tex:
> ======
> \startproduct product
>
> \project project
>
> \component component
>
> \stopproduct
> ======
>
> component.tex:
> ======
> \startcomponent component
>
> \project project
>
> Hello component!
>
> \blank
>
> \input tufte
>
> \blank
>
> \input knuth
>
> \stopcomponent
> ======
>
> So that only the whole project should be typest 2-up - but everything
> gets arranged that way...

The project file is loaded from the product and the component
and both enable then the project mode. See also Adityas mail
and use \startmode[*product] and \startnotmode[*product].

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