Changes

Jump to navigation Jump to search
40 bytes removed ,  08:28, 2 July 2022
m
Text replacement - "pragma-ade.com" to "pragma-ade.nl"
= Defining the layout =
Positioning the areas is by setting the following dimensions using {{cmd|setuplayout|2=[backspace=5cm,...]}}. The dimensions are mentioned in order of how ‘primitive’ they are: e.g. altering the {{code|topspace}} pushes around all other vertical dimensions, but altering the {{code|header}} affects only the {{code|headerdistance}} and the {{code|textheight}}.
You When you define a page layout, it's always define a right pagethat you're defining; if you use a double page layout, 'right' and 'left' values are mirrored on a left page. Doublesided typesetting is activated with {{cmd|setuppagenumbering|2=[alternative=doublesided]}}.
# Set the {{code|backspace}} and {{code|width}}, and the {{code|topspace}} and {{code|height}}. The {{code|width}} is the width of the main typesetting area; the {{code|backspace}} is its distance from the left edge of the page. The {{code|height}} is the distance ''from the top of the header to the bottom of the footer''; the {{code|topspace}} is the distance from the top edge of the page to the top of the header.
== Let's gather examples here ==
; Cover pages* : [[Example MetaFun Cover PagePages]] (2013, 2019) with MetaFun* [[Simple Cover Page]] (2013)* [[A Very Simple Cover Page]] (2009); Other* : [[Example photo page layout]] (2010)
= [[Imposition]] =
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 {{cmd|setuplayout}}|2=[reset]}}.
<texcode>
</texcode>
To specify in advance that you want to change layouts starting from page 4 (e.g.), use {{cmd|definelayout}}|2=[4][...]}}. Resetting the layout must be done explicitly; else, the new layout will be used until the end of the document.
<texcode>
= Table of Parameters =
The first colum column is the name by which the variable is set in {{cmd|setuplayout}}. The second column is the name by which TeX stores the variable. This name is usually the same, but sometimes different; knowing it allows you to invoke it with code like <code>The paper's height is \the\paperheight.</code> Any remarks (usually a short description) are given in the third column.
{| class=wikitable
</texcode>
(From {{src|page-lay.mkiv}}.)
 
= Further reading =
* [[Documentation|Manuals about layout]], and noticeably:
** The basics with '''[http://context.aanhet.net/svn/contextman/context-reference/en/co-pagedesign.pdf Page design & Layout chapter]''' from the reference manual (2011)
** The more advance '''[http://www.pragma-ade.comnl/general/manuals/details.pdf It's in the Details]''' manual (2015), including grid typesetting.
* '''[[Visual Debugging#Layout|Visual Debugging]]''': can greatly facilitate the set up of your layout.
* After the layout, we can usually focus on the following subjects:

Navigation menu