-
Notifications
You must be signed in to change notification settings - Fork 0
/
imposed11x17.tex
60 lines (49 loc) · 1.81 KB
/
imposed11x17.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
% Author: Marc Trius
% Email: [email protected]
% Licensed under GNU General Public License
\startenvironment imposed11x17
% 11x17 Book Layout
\definepapersize[doubleletter][
width=11in, height=17in]
\definepapersize[halfletter][
width=5.5in, height=8.5in]
\setuppapersize[halfletter][doubleletter]
\setuplayout[
marking=screen,
grid=yes,
width=4in,
backspace=.5in,
height=\dimexpr6.13in+6\lineheight,
topspace=\dimexpr1in-2\lineheight,
header=2\lineheight,
footer=\dimexpr4\lineheight,
]
\installpagearrangement 2*4*2 % right-to-left
{\dosetuparrangement{2}{2}{4}{3}{3}%
\pusharrangedpageSIXTEENTWORTL\poparrangedpagesAtoD\relax}
\def\pusharrangedpageSIXTEENTWORTL#1%
{\advancearrangedpageN
\reportarrangedpage\arrangedpageN
\ifcase\arrangedpageN
\or \handlearrangedpageXandY{#1}000\arrangedpageA % 1
\or \handlearrangedpageXandY{#1}101\arrangedpageB % 2
\or \handlearrangedpageXandY{#1}000\arrangedpageC % 3
\or \handlearrangedpageXandY{#1}101\arrangedpageD % 4
\or \handlearrangedpageXandY{#1}000\arrangedpageD % 5
\or \handlearrangedpageXandY{#1}101\arrangedpageC % 6
\or \handlearrangedpageXandY{#1}000\arrangedpageB % 7
\or \handlearrangedpageXandY{#1}101\arrangedpageA % 8
\or \handlearrangedpageXandY{#1}111\arrangedpageA % 9
\or \handlearrangedpageXandY{#1}010\arrangedpageB % 10
\or \handlearrangedpageXandY{#1}111\arrangedpageC % 11
\or \handlearrangedpageXandY{#1}010\arrangedpageD % 12
\or \handlearrangedpageXandY{#1}111\arrangedpageD % 13
\or \handlearrangedpageXandY{#1}010\arrangedpageC % 14
\or \handlearrangedpageXandY{#1}111\arrangedpageB % 15
\or \handlearrangedpageXandY{#1}010\arrangedpageA % 16
\poparrangedpages
\fi}
\setuparranging [2*4*2, doublesided]
\setuppagenumbering[alternative=doublesided]
\showframe
\stopenvironment