Changes

Jump to navigation Jump to search
1,348 bytes added ,  11:00, 25 May 2013
m
Stray brace
<!-- please remove this and the following line if you have checked this page -->
{{Reference_Cleanup}}
{{Reference
|name=setuppaper
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Reference/enCommand/keyword:paper|paper]]</td> <td>[[Reference/enCommand/value:name|name]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Reference/enCommand/keyword:page|page]]</td> <td>[[Reference/enCommand/value:name|name]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Reference/enCommand/keyword:nx|nx]]</td> <td>[[Reference/enCommand/value:number|number]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Reference/enCommand/keyword:ny|ny]]</td> <td>[[Reference/enCommand/value:number|number]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Reference/enCommand/keyword:width|width]]</td> <td>[[Reference/enCommand/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Reference/enCommand/keyword:height|height]]</td> <td>[[Reference/enCommand/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Reference/enCommand/keyword:topspace|topspace]]</td> <td>[[Reference/enCommand/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Reference/enCommand/keyword:backspace|backspace]]</td> <td>[[Reference/enCommand/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Reference/enCommand/keyword:option|option]]</td> <td>[[Reference/enCommand/value:max|max]] [[Reference/enCommand/value:fit|fit]] </td>
</tr>
</table>
== Description == This command is only used in connection with {{cmd|setuparranging|[XY]}}. It lets you set up the number of rows and columns, and the spaces between them, as well as letting you add an offset to the resulting grid.
== 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 horizontal and vertical adjustments are only applied when {{cmd|setuplayout|[location=middle]}} is passed at some point in the document. If the {{code|dx}} and {{code|dy}} parameters are 0, the {{code|1=location=middle}} option will cause the label-pages to be distributed evenly over the space keeping top and bottom and left and right space equally large.
 
<texcode>
\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= Example 0mm] [frame=off, style=\tfx] {\CONTEXT\ is fun!} \startstandardmakeup \placelayer[Label]\page \stopstandardmakeup}\stoptext<!-- Please fill in an example if you can --/texcode>
== See also ==
<!* {{cmd|setuparranging}}* {{cmd|setuppapersize}}* {{cmd|setuplayout}} == Help from ConTeXt-- something like [[cmdMailinglist/Forum ==All issues with:goto{{Forum|\goto]] -->{{SUBPAGENAME}}}}
[[Category:ReferenceCommand/enLayout|setuppaper]]

Navigation menu