Changes

Jump to navigation Jump to search
no edit summary
|attributes=
}}
 
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>definepapersize</syntax>
== [[Help:Reference|Syntax]] ==
<tr valign="top" class="second">
<td class="cmd">[[Command/keyword:width|width]]</td>
<td>[[Command/value:dimension|dimension]] : width of the new size</td>
</tr>
<tr valign="top" class="second">
<td class="cmd">[[Command/keyword:height|height]]</td>
<td>[[Command/value:dimension|dimension]] : height of the new size</td>
</tr>
<tr valign="top" class="second">
<td class="cmd">[[Command/keyword:offset|offset]]</td>
<td>[[Command/value:dimension|dimension]] : FIXME what is this?</td>
</tr>
<tr valign="top" class="second">
<td class="cmd">[[Command/keyword:scale|scale]]</td>
<td>[[Command/value:number|number]] : scale width and height by this much</td>
</tr>
</table>
Using this command we can define a paper size.
== Example == <texcodecontext source=yes>% Create a paper that can accomodate 2x4 squares of 52x52mm% (A9 is 37x52mm, and we're placing it both portrait and landscape)\definepapersize[mainsheet][width=104mm,height=156mm]  % We want 2x3 pages.\setuppaper[A4nx=2, ny=3, dx=0mm, dy=0mm] % must come before \setuparranging!\setuparranging[XY] % Create two A9-derived paper sizes\definepapersize[standing][A9] [A4sheet]\definepapersize[extralying] [A4A9,landscape][A4,landscapesheet\showframe
\starttext
\setuppapersize[mainstanding] Page 1: standing pages from here on. \page
Page 2. \page
\setuppapersize[extra] Page 2 \page \setuppapersize[mainlying] Page 3: lying pages from here on. \page
Page 4. \page
\adaptpapersize[extrastanding] Page 5. : adapted to standing \page Page 6. : automatically back to lying \page
\stoptext
</texcodecontext
== Example ==
<!-- Please fill in an example if you can -->
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
* [[PaperSetup]]* {{cmd|setuppapersize}} to start using a defined paper size.* {{cmd|adaptpapersize}} to make a single page a different defined size
== Help from ConTeXt-Mailinglist/Forum ==
{{Forum|{{SUBPAGENAME}}}}
[[Category:CommandsCommand/Layout|definepapersize]]

Navigation menu