Changes

Jump to navigation Jump to search
1,273 bytes added ,  16:12, 12 November 2019
no edit summary
|attributes=
}}
 
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>setuppaper</syntax>
== [[Help:Reference|Syntax]] ==
</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] arranging only!}}. 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.
This command provides the means to setup == Example ==Consider an A4 sheet of labels which carries 12 labels. The topspace before the parameters needed for [XY] arrangement. Next to this it first label is possible to adjust 21 mm, the horizontal left and vertical placement of right space alongside the total edges of the arranged partsheet 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= Example leftbottom,y=.9cm,x=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