Difference between revisions of "Command/setuppaper"
< Command
Jump to navigation
Jump to search
Line 57: | Line 57: | ||
Consider an A4 sheet of labels which carries 12 labels. The topspace before the first label is 21 mm, the left and right space alongside the edges of the sheet is 8 mm. | Consider an A4 sheet of labels which carries 12 labels. The topspace before the first label is 21 mm, the left and right space alongside the edges of the sheet is 8 mm. | ||
+ | The important thing is, that the horizontal and vertical adjustments only take place, if the command | ||
+ | |||
+ | <texcode> | ||
+ | \setuplayout[location=middle] | ||
+ | </texcode> | ||
+ | |||
+ | is issued again as shown in the example code below. | ||
+ | |||
+ | <texcode> | ||
\definepapersize[Label][height=42.3mm,width=97mm] | \definepapersize[Label][height=42.3mm,width=97mm] | ||
\setuppapersize[Label][A4] | \setuppapersize[Label][A4] | ||
Line 68: | Line 77: | ||
\setuplayout | \setuplayout | ||
− | + | [page=Label, | |
topspace=4mm, | topspace=4mm, | ||
backspace=5mm, | backspace=5mm, | ||
Line 77: | Line 86: | ||
footer=0mm] | footer=0mm] | ||
− | \setuplayout | + | \setuplayout[location=middle] |
\showframe | \showframe | ||
Line 89: | Line 98: | ||
[preset=leftbottom,y=.9cm,x=0mm] | [preset=leftbottom,y=.9cm,x=0mm] | ||
[frame=off, style=\tfx] | [frame=off, style=\tfx] | ||
− | { | + | {\CONTEXT\ is fun!} |
\startstandardmakeup | \startstandardmakeup | ||
\placelayer[Label]\page | \placelayer[Label]\page | ||
\stopstandardmakeup} | \stopstandardmakeup} | ||
\stoptext | \stoptext | ||
+ | </texcode> | ||
== See also == | == See also == |
Revision as of 19:55, 3 March 2011
\setuppaper
Syntax
\setuppaper[...,...=...,...] | |
paper | name |
page | name |
nx | number |
ny | number |
width | dimension |
height | dimension |
topspace | dimension |
backspace | dimension |
option | max fit |
Description
This command is used in connection with [XY] arranging only!
This command provides the means to setup the parameters needed for [XY] arrangement. Next to this it is possible to adjust the horizontal and vertical placement of the total of the arranged part.
Example
Consider an A4 sheet of labels which carries 12 labels. The topspace before the first label is 21 mm, the left and right space alongside the edges of the sheet is 8 mm.
The important thing is, that the horizontal and vertical adjustments only take place, if the command
\setuplayout[location=middle]
is issued again as shown in the example code below.
\definepapersize[Label][height=42.3mm,width=97mm] \setuppapersize[Label][A4] \setuppaper [topspace=21mm, backspace=8mm, dx=0.5mm, dy=0mm, nx=2, ny=6] \setuplayout [page=Label, topspace=4mm, backspace=5mm, margin=0mm, width=87mm, height=34.3mm, header=0mm, footer=0mm] \setuplayout[location=middle] \showframe \definelayer[Label][width=\paperwidth, height=\paperheight] \setuparranging[XY] \starttext \dorecurse{12} {\setlayerframed [Label] [preset=leftbottom,y=.9cm,x=0mm] [frame=off, style=\tfx] {\CONTEXT\ is fun!} \startstandardmakeup \placelayer[Label]\page \stopstandardmakeup} \stoptext