Re: [NTG-context] Different footers for different parts of a project

2008-11-04 Thread Marcin Borkowski
Dnia Tue, Nov 04, 2008 at 10:37:26PM +0100, Wolfgang Schuster napisa#322;(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
 
 \startnotmode[*product]
 ...
 \stopnotmode
 
 \startmode[*component]
 ...
 \stopmode

Wow, thanks!!!

 
 Regards
 Wolfgang

-- 
Marcin Borkowski (http://mbork.pl)
___
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
___


Re: [NTG-context] Different footers for different parts of a project

2008-11-04 Thread Marcin Borkowski
Dnia Tue, Nov 04, 2008 at 10:37:26PM +0100, Wolfgang Schuster napisa#322;(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?

Greets

-- 
Marcin Borkowski (http://mbork.pl)

Jest tak. Friedman ma weksel Schapira z żyrem Glasa i windykator jest
Balenstein. On daje dwadzieścia pięć procent franko loko, towar jest u
Lutmana, tylko ten towar jest zajęty przez Honigmana z powodu weksel
Roitberga. Za ten weksel Roitberga można dostać gwarancję od jego
teścia Rozenzweiga, tylko on jest przepisany na Rozenzweigową, a
Rozenzweigowa jest chora.
(Kabaret Dudek)
___
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
___


Re: [NTG-context] Different footers for different parts of a project

2008-11-04 Thread Wolfgang Schuster

Am 04.11.2008 um 22:44 schrieb Marcin Borkowski:

 Dnia Tue, Nov 04, 2008 at 10:37:26PM +0100, Wolfgang Schuster  
 napisa#322;(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.

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
___


Re: [NTG-context] Different footers for different parts of a project

2008-11-04 Thread Marcin Borkowski
Dnia Tue, Nov 04, 2008 at 10:58:32PM +0100, Wolfgang Schuster napisa#322;(a):
 
 Am 04.11.2008 um 22:44 schrieb Marcin Borkowski:
 
  Dnia Tue, Nov 04, 2008 at 10:37:26PM +0100, Wolfgang Schuster  
  napisa#322;(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;).)

 
 Wolfgang

Greets

-- 
Marcin Borkowski (http://mbork.pl)

- Why are vim users so terribly egocentric?
- Because they begin every sentence with `I'.
___
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
___


Re: [NTG-context] Different footers for different parts of a project

2008-11-04 Thread Wolfgang Schuster

Am 04.11.2008 um 23:47 schrieb Marcin Borkowski:

 Dnia Tue, Nov 04, 2008 at 10:58:32PM +0100, Wolfgang Schuster  
 napisa#322;(a):

 Am 04.11.2008 um 22:44 schrieb Marcin Borkowski:

 Dnia Tue, Nov 04, 2008 at 10:37:26PM +0100, Wolfgang Schuster
 napisa#322;(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.

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
___


Re: [NTG-context] Different footers for different parts of a project

2008-11-04 Thread Marcin Borkowski
Dnia Wed, Nov 05, 2008 at 12:00:30AM +0100, Wolfgang Schuster napisa#322;(a):
 
 Am 04.11.2008 um 23:47 schrieb Marcin Borkowski:
 
  Dnia Tue, Nov 04, 2008 at 10:58:32PM +0100, Wolfgang Schuster  
  napisa#322;(a):
 
  Am 04.11.2008 um 22:44 schrieb Marcin Borkowski:
 
  Dnia Tue, Nov 04, 2008 at 10:37:26PM +0100, Wolfgang Schuster
  napisa#322;(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...

 
 Wolfgang

Greets

-- 
Marcin Borkowski (http://mbork.pl)

Ty okryłeś śmierć wstydem!
Wtrąciłeś piekło w żałobę!
Uderzyłeś niegodziwość,
Niesprawiedliwość pozbawiłeś potomstwa!
___
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
___


Re: [NTG-context] Different footers for different parts of a project

2008-11-04 Thread Aditya Mahajan
On Wed, 5 Nov 2008, Marcin Borkowski wrote:

 So that only the whole project should be typest 2-up - but everything
 gets arranged that way...

This (project/product/... structure) is one area where I haven't kept 
track with the changes done in MKIV. However, in MKII one was not supposed 
to compile a project. See 
http://archive.contextgarden.net/message/20060403.083040.fadab315.en.html 
and the follow-ups.

Aditya
___
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
___


Re: [NTG-context] Different footers for different parts of a project

2008-11-04 Thread Marcin Borkowski
Dnia Tue, Nov 04, 2008 at 10:30:35PM -0500, Aditya Mahajan napisa#322;(a):
 On Wed, 5 Nov 2008, Marcin Borkowski wrote:
 
  So that only the whole project should be typest 2-up - but everything
  gets arranged that way...
 
 This (project/product/... structure) is one area where I haven't kept 
 track with the changes done in MKIV. However, in MKII one was not supposed 
 to compile a project. See 
 http://archive.contextgarden.net/message/20060403.083040.fadab315.en.html 
 and the follow-ups.

Hm.  Good to know.  I'll have to repack my files a bit - I thought
compiling the project is ok...

 Aditya

Greets

-- 
Marcin Borkowski (http://mbork.pl)

Ja nie chcę czytać tych głupich gazet
I wymyślonych oglądać historii.
(Chili My)
___
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
___


Re: [NTG-context] Different footers for different parts of a project

2008-11-04 Thread Wolfgang Schuster

Am 05.11.2008 um 01:00 schrieb Marcin Borkowski:

 Dnia Wed, Nov 05, 2008 at 12:00:30AM +0100, Wolfgang Schuster  
 napisa#322;(a):

 Am 04.11.2008 um 23:47 schrieb Marcin Borkowski:

 Dnia Tue, Nov 04, 2008 at 10:58:32PM +0100, Wolfgang Schuster
 napisa#322;(a):

 Am 04.11.2008 um 22:44 schrieb Marcin Borkowski:

 Dnia Tue, Nov 04, 2008 at 10:37:26PM +0100, Wolfgang Schuster
 napisa#322;(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
___


Re: [NTG-context] Different footers for different parts of a project

2008-11-04 Thread Alan STONE
2008/11/5 Marcin Borkowski [EMAIL PROTECTED]


 I thought
 compiling the project is ok...


Hmmm... That's what I also understood from the main manual, chapter 2, and
it worked fine so far. However, from reading this thread, I guess it will
lead problems later on. So back to the drawing board.

-- 
Best,
Alan

* TeX engine = LuaTeX
* ConTeXt  minimals ver: 2008.10.31 13:58 MKIV  fmt: 2008.10.31  int:
english/english
* Ubuntu 8.04 Hardy Heron
___
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
___