Changes

Jump to navigation Jump to search
1,977 bytes added ,  21:36, 24 June 2012
Add description, example, usage, See Also. Needs consolidating!
{{Reference
|name=XXXsetuppageshift
|attributes=
}}
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd">\XXXsetuppageshift<!-- --><span class="first">{...}[paper]</span><!-- --><span class="second">{...}[''horizontal shiftlist'']</span><!-- --><span class="third">[''vertical shiftlist'']</span><!--
--></td>
</tr>
<tr valign="top" class="first">
<td class="cmd">{[...}]</td> <td><i>text</i> paper print none</td>
</tr>
<tr valign="top" class="second">
<td class="cmd">[...]</td> <td>A shiftlist defined with {{cmd|definepageshift|[''name''][horizontal][...]}}</td> </tr> <tr valign="top" class="third"> <tdclass="cmd">[...]<i/td>text </itd> A shiftlist defined with {{cmd|definepageshift|[''name''][vertical][...]}}</td>
</tr>
== Description ==
For use with {{cmd|setuparranging}}, which arranges pages on the sheets of paper they will be printed on. If the sheets are to be folded around each other, it may be necessary to offset some of the pages to account for the fact that while the innermost sheets can be folded sharply, the outermost sheets need an extra half-millimeter or so because they have to fold around the inner sheets.
 
One can then use {{cmd|definepageshift}} and {{cmd|setuppageshift}} to specify by how much to offset each page on the sheet; see the example.
 
== Example usage syntax ==
 
Taken from {{src|page-imp.mkiv}}
 
<texcode>
\definepageshift[test][horizontal][10pt,20pt,30pt,40pt,50pt]
\definepageshift[test][vertical] [10pt,20pt,30pt,40pt,50pt]
 
\setuppageshift[test]
\setuppageshift[test][test]
\setuppageshift[test][none]
\setuppageshift[none][test]
\setuppageshift[paper][test][test] % arrange only
\setuppageshift[paper][test] % arrange only
\setuppageshift[print][test][test]
</texcode>
== Example for 16-page signatures ==
<texcode>
\setuppapersize[A5][A4, landscape]
\setuparranging[2*2*4] % 2 sides * 2 pages per side * 4 sheets
\definepageshift[Hor][horizontal]
[0.25mm, % page 1, sheet 1 recto
-0.25mm, % page 2, sheet 1 verso
0.15mm, % p3, s2r
-0.15mm, % p4, s2v
0.05mm, % p5
-0.05mm, % p6
0mm, % p7
0mm, % p8
0mm, % p9
0mm, % p10
0.05mm, % p11
-0.05mm, % p12
0.15mm, % p13
-0.15mm, % p14
0.25mm, % p15
-0.25mm] % p16
\setuppageshift[paper][Hor] % use the list we just defined
</texcode>
== See also ==
* {{cmd|setuparranging}}
* {{cmd|definepageshift}}
== Help from ConTeXt-Mailinglist/Forum ==
{{Forum|{{SUBPAGENAME}}}}
[[Category:CommandsCommand/Layout|setuppageshift]]

Navigation menu