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
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
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 -----------------------------------------------------------------
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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Jelle Huisman
-
Wolfgang Schuster