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
___________________________________________________________________________________

Reply via email to