Difference between revisions of "Command/setuplayout"
< Command
Jump to navigation
Jump to search
(Create reference page) |
(No difference)
|
Revision as of 12:38, 11 April 2010
\setuplayout
Syntax
Description
Horizontal: (if singleside then outside is at right and inside is at left) =========== width => width of text area middle: automatic calculation consider A) params fit: automatic calculation consider A)+B) params dimension: cutspace should be 0 and is calculated according to backspace A) params: (\paperwidth=\backspace+\makeupwidth+\cutspace) backspace => width of inner margin cutspace => width of outer margin (if 0 then = backspace!) B) params: leftmargin/rightmargin => width of leftmargin/rightmargin area margin => width of outer margin leftedge/rightedge => width of leftedge/rightedge area *distance (like leftmargindistance) => space separates * area from the inner horoffset => shift material towards outside (not tought width calculation) Vertical: ========= Others: =======
comment
See [[wiki:Layout]] -------- What is needed is a picture of a page with each of these layout parameters indicated.
You can use the \showframe macro to see the results of your layout. Just put the command before the \starttext and lines will be drawn on your document showing the different areas.
Example
%% This is an example for showing the effect of the vertical parameters
%% top, topdistance, bottom, bottomdistance and topspace.
%% Just play around with these parameters.
%% Show the top and the bottom with blue color:
\setupcolors[state=start]
\setupbackgrounds[top,bottom][background=color,backgroundcolor=blue]
\def\MyLength{50pt}
\setuplayout[
header=0pt,footer=0pt,headerdistance=0pt,footerdistance=0pt,
top=\MyLength,topdistance=\MyLength,
bottom=\MyLength,bottomdistance=\MyLength,
topspace=\dimexpr(\topheight + \topdistance),
height=fit]
\starttext
\dorecurse{7}{\input tufte}
\showsetups
\stoptext