Difference between revisions of "Command/definelayout"
< Command
Jump to navigation
Jump to search
(created a page for \definelayout based on Layout page.) |
|||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
}} | }} | ||
+ | == [[Help:Reference|Syntax]] (autogenerated) == | ||
+ | <syntax>definelayout</syntax> | ||
== [[Help:Reference|Syntax]] == | == [[Help:Reference|Syntax]] == | ||
<table cellspacing="4" cellpadding="2" class="cmd"> | <table cellspacing="4" cellpadding="2" class="cmd"> |
Latest revision as of 14:30, 13 October 2019
\definelayout
Syntax (autogenerated)
\definelayout[...][...][...=...,...] | |
[...] | name |
[...] | name |
...=...,... | inherits from \setuplayout |
Syntax
\definelayout[...][...] | |
[...] | layout name |
[...] | parameters |
Description
Define a named layout.
Examples
If you need to use different layouts in some parts of the document, you can set up a global layout, and then define additional named layouts for the deviating parts. You only need to specify the dimensions that differ: unspecified dimensions will be inherited from the global layout.
To switch to a different layout, call it up in the appropriate place in the document. To revert back to the global layout, use \setuplayout[reset].
\setuplayout[...] % global layout \definelayout[wide][...] % layout of the first page \setuplayout[wide] % switch to layout called 'wide' \setuplayout[reset] % switch back to the global layout
To specify in advance that you want to change layouts starting from page 4 (e.g.), use \definelayout[4][...]. Resetting the layout must be done explicitly; else, the new layout will be used until the end of the document.
% different layout for first two pages \definelayout[1][wide] \definelayout[3][reset]
See also
Help from ConTeXt-Mailinglist/Forum
All issues with:
- definelayout on the mailing list (all results)
- definelayout on the mailing list (subject only)
- definelayout on stack exchange
- definelayout in ConTeXt's source
|