Changes

Jump to navigation Jump to search
548 bytes added ,  20:24, 1 January 2011
</texcode>
''This text is based on at [http://archive.contextgarden.net/message/20080926.111520.9db86904.en.html a thread on the mailing list], answers and examples are given there by Hans and Wolfgang.''
Defining layouts with a number as their name allows to specify the layout of the page with that specific number. For example, to use a different layout for the first page, you can use this code:
<texcode>
\setuplayout[key=value,key=value,...] %global layout\definelayout[1][key=value,key=value,...] %layout of the first page
\definelayout[2][reset] % revert to the global layout starting from the second page
</texcode>
Do not forget to reset the layout on the second page. Note that keys that are not set in the layout of the first page will be conveniently inherited from the global layout.
 
A typical example of the above is the following:
<texcode>
\setuplayout[% default layout for all the pages
backspace=1cm,
width=middle]
 
\definelayout[1][% set this layout on the first page
backspace=6cm]
 
\definelayout[2][reset] % reset to the default layout starting from the second page
 
\definelayout[5][backspace=6cm] % use this layout starting from page 5
 
\definelayout[9][reset] % reset to the default layout starting from page 9
 
\starttext
\showframe
\dorecurse{20}{\input dawkins \blank[big] \input knuth \page}
\stoptext
</texcode>
== Layout components ==
106

edits

Navigation menu