Difference between revisions of "Command/setuppageshift"

From Wiki
Jump to navigation Jump to search
(stub)
 
(Add description, example, usage, See Also. Needs consolidating!)
Line 1: Line 1:
 
{{Reference
 
{{Reference
|name=XXX
+
|name=setuppageshift
 
|attributes=
 
|attributes=
 
}}
 
}}
Line 7: Line 7:
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
   <tr>
 
   <tr>
     <td colspan="2" class="cmd">\XXX<!--
+
     <td colspan="2" class="cmd">\setuppageshift<!--
       --><span class="first">{...}</span><!--
+
       --><span class="first">[paper]</span><!--
       --><span class="second">{...}</span><!--
+
       --><span class="second">[''horizontal shiftlist'']</span><!--
 +
      --><span class="third">[''vertical shiftlist'']</span><!--
 
  --></td>
 
  --></td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
     <td class="cmd">{...}</td>
+
     <td class="cmd">[...]</td>
     <td><i>text</i> </td>
+
     <td>paper print none</td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">{...}</td>
+
     <td class="cmd">[...]</td>
     <td><i>text</i> </td>
+
    <td>A shiftlist defined with {{cmd|definepageshift|[''name''][horizontal][...]}}</td>
 +
  </tr>
 +
  <tr valign="top" class="third">
 +
     <td class="cmd">[...]</td>
 +
    <td>A shiftlist defined with {{cmd|definepageshift|[''name''][vertical][...]}}</td>
 
   </tr>
 
   </tr>
  
Line 24: Line 29:
  
 
== Description ==  
 
== 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 ==
+
== 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 ==
 
== See also ==
  
 +
* {{cmd|setuparranging}}
 +
* {{cmd|definepageshift}}
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==
Line 36: Line 85:
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|setuppageshift]]
+
[[Category:Command/Layout|setuppageshift]]

Revision as of 21:36, 24 June 2012

\setuppageshift

Syntax

\setuppageshift[paper][horizontal shiftlist][vertical shiftlist]
[...] paper print none
[...] A shiftlist defined with \definepageshift[name][horizontal][...]
[...] A shiftlist defined with \definepageshift[name][vertical][...]

Description

For use with \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 \definepageshift and \setuppageshift to specify by how much to offset each page on the sheet; see the example.

Example usage syntax

Taken from page-imp.mkiv

\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]


Example for 16-page signatures

\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

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: