[NTG-context] switching (named) layouts?

2008-09-26 Thread Jelle Huisman
Hi,

Is it possible to give a layout definition a name? It would be really 
helpful to be able to say \definelayout[name=one][...]
\definelayout[name=two][...]
and then to be able to say: \setuplayout[one] and somewhere else in the 
document \setuplayout[two]
(This would mirror the way it is possible to switch papersizes.)

Or is there another way to have different collections of \definelayout 
settings that can be switched on or off at specific places? What is the 
best approach?

Thanks,

Jelle
___
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] switching (named) layouts?

2008-09-26 Thread Wolfgang Schuster

Am 26.09.2008 um 13:15 schrieb Jelle Huisman:

 Hi,

 Is it possible to give a layout definition a name? It would be really
 helpful to be able to say \definelayout[name=one][...]
 \definelayout[name=two][...]
 and then to be able to say: \setuplayout[one] and somewhere else in  
 the
 document \setuplayout[two]
 (This would mirror the way it is possible to switch papersizes.)

\definelayout[one][..,..=..,..]
\definelayout[two][..,..=..,..]


\starttext

text

\page

\setuplayout[one]

text

\page

\setuplayout[two]

text

\page

\setuplayout[reset]

text

\stoptext

 Or is there another way to have different collections of \definelayout
 settings that can be switched on or off at specific places? What is  
 the
 best approach?


Regards,
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] switching (named) layouts?

2008-09-26 Thread Hans Hagen
Jelle Huisman wrote:
 Hi,
 
 Is it possible to give a layout definition a name? It would be really 
 helpful to be able to say \definelayout[name=one][...]
 \definelayout[name=two][...]
 and then to be able to say: \setuplayout[one] and somewhere else in the 
 document \setuplayout[two]
 (This would mirror the way it is possible to switch papersizes.)
 
 Or is there another way to have different collections of \definelayout 
 settings that can be switched on or off at specific places? What is the 
 best approach?

\setuplayout[key-values] % defines global one

\setuplayout[somename][key-values] % defines named one

\setuplayout[somename] % triggers

\setuplayout[reset] % resets to the global one

\setuplayout % idem



-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] switching (named) layouts?

2008-09-26 Thread Jelle Huisman
Hans Hagen wrote:
 \setuplayout[key-values] % defines global one

 \setuplayout[somename][key-values] % defines named one
Thanks Hans,

Does this mean that \definelayout is not needed?

Jelle

___
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] switching (named) layouts?

2008-09-26 Thread Hans Hagen
Jelle Huisman wrote:
 Hans Hagen wrote:
 \setuplayout[key-values] % defines global one

 \setuplayout[somename][key-values] % defines named one
 Thanks Hans,
 
 Does this mean that \definelayout is not needed?

no, i meant definelayout

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___