ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* switching (named) layouts?
@ 2008-09-26 11:15 Jelle Huisman
  2008-09-26 11:36 ` Wolfgang Schuster
  2008-09-26 11:46 ` Hans Hagen
  0 siblings, 2 replies; 5+ messages in thread
From: Jelle Huisman @ 2008-09-26 11:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: switching (named) layouts?
  2008-09-26 11:15 switching (named) layouts? Jelle Huisman
@ 2008-09-26 11:36 ` Wolfgang Schuster
  2008-09-26 11:46 ` Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2008-09-26 11:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: switching (named) layouts?
  2008-09-26 11:15 switching (named) layouts? Jelle Huisman
  2008-09-26 11:36 ` Wolfgang Schuster
@ 2008-09-26 11:46 ` Hans Hagen
  2008-09-26 12:10   ` Jelle Huisman
  1 sibling, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2008-09-26 11:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: switching (named) layouts?
  2008-09-26 11:46 ` Hans Hagen
@ 2008-09-26 12:10   ` Jelle Huisman
  2008-09-26 15:17     ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Jelle Huisman @ 2008-09-26 12:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: switching (named) layouts?
  2008-09-26 12:10   ` Jelle Huisman
@ 2008-09-26 15:17     ` Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2008-09-26 15:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-09-26 15:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-26 11:15 switching (named) layouts? Jelle Huisman
2008-09-26 11:36 ` Wolfgang Schuster
2008-09-26 11:46 ` Hans Hagen
2008-09-26 12:10   ` Jelle Huisman
2008-09-26 15:17     ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).