-
Notifications
You must be signed in to change notification settings - Fork 0
/
kartei.a7printstylerotation.tex
155 lines (155 loc) · 4.75 KB
/
kartei.a7printstylerotation.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
%
% * ----------------------------------------------------------------
% * "THE BEER-WARE LICENSE" (Revision 42/023):
% * Ronny Bergmann <[email protected]> wrote this file. As long as
% * you retain this notice you can do whatever you want with this
% * stuff. If we meet some day and you think this stuff is worth it,
% * you can buy me a beer or a coffee in return.
% * ----------------------------------------------------------------
%
%
% Kartei Source Code of A7 page style definition with rotation of rear
% side.
%
% Last Change: Kartei 1.9, 2012/01/04
%
\pgfpagesdeclarelayout{cardprintA7rotation}
{%
\edef\pgfpageoptionheight{\the\paperheight}%
\edef\pgfpageoptionwidth{\the\paperwidth}%
\edef\pgfpageoptionborder{1pt}%
}%
{
\pgfpagesphysicalpageoptions%
{%
logical pages=16,%
physical height=\pgfpageoptionheight,%
physical width=\pgfpageoptionwidth,%
}%
%
% Front (odd pages)
%
\pgfpageslogicalpageoptions{1}% First Card
{%
border shrink=\pgfpageoptionborder,%
original width=.25\pgfpageoptionheight,%
original height=.5\pgfpageoptionwidth,%
center=\pgfpoint{0pt}{\pgfphysicalheight},%
}%
\pgfpageslogicalpageoptions{3}% Second Card
{%
border shrink=\pgfpageoptionborder,%
original width=.25\pgfpageoptionheight,%
original height=.5\pgfpageoptionwidth,%
center=\pgfpoint{.5\pgfphysicalwidth}{\pgfphysicalheight},%
}%
\pgfpageslogicalpageoptions{5}% Third Card
{%
border shrink=\pgfpageoptionborder,%
original width=.25\pgfpageoptionheight,%
original height=.5\pgfpageoptionwidth,%
center=\pgfpoint{0pt}{.75\pgfphysicalheight},%
}%
\pgfpageslogicalpageoptions{7}% Fourth Card
{%
border shrink=\pgfpageoptionborder,%
original width=.25\pgfpageoptionheight,%
original height=.5\pgfpageoptionwidth,%
center=\pgfpoint{.5\pgfphysicalwidth}{.75\pgfphysicalheight},%
}%
\pgfpageslogicalpageoptions{9}% Fifth Card
{%
border shrink=\pgfpageoptionborder,%
original width=.25\pgfpageoptionheight,%
original height=.5\pgfpageoptionwidth,%
center=\pgfpoint{0pt}{.5\pgfphysicalheight},%
}%
\pgfpageslogicalpageoptions{11} % Sixth Card
{%
border shrink=\pgfpageoptionborder,%
original width=.25\pgfpageoptionheight,%
original height=.5\pgfpageoptionwidth,%
center=\pgfpoint{.5\pgfphysicalwidth}{.5\pgfphysicalheight},%
}%
\pgfpageslogicalpageoptions{13} % Seventh Card
{%
border shrink=\pgfpageoptionborder,%
original width=.25\pgfpageoptionheight,%
original height=.5\pgfpageoptionwidth,%
center=\pgfpoint{0pt}{.25\pgfphysicalheight},%
}%
\pgfpageslogicalpageoptions{15} % Eigth Card
{%
border shrink=\pgfpageoptionborder,%
original width=.25\pgfpageoptionheight,%
original height=.5\pgfpageoptionwidth,%
center=\pgfpoint{.5\pgfphysicalwidth}{.25\pgfphysicalheight},%
}%
%
% Rearsides (Even Pages)
%
\pgfpageslogicalpageoptions{2} % First Card
{%
border shrink=\pgfpageoptionborder,%
original width=.25\pgfpageoptionheight,%
original height=.5\pgfpageoptionwidth,%
rotation=180,%
center=\pgfpoint{\pgfphysicalwidth}{.75\pgfphysicalheight},%
}%
\pgfpageslogicalpageoptions{4} % Second Card
{%
border shrink=\pgfpageoptionborder,%
original width=.25\pgfpageoptionheight,%
original height=.5\pgfpageoptionwidth,%
rotation=180,%
center=\pgfpoint{.5\pgfphysicalwidth}{.75\pgfphysicalheight},%
}%
\pgfpageslogicalpageoptions{6} % Third Card
{%
border shrink=\pgfpageoptionborder,%
original width=.25\pgfpageoptionheight,%
original height=.5\pgfpageoptionwidth,%
rotation=180,%
center=\pgfpoint{\pgfphysicalwidth}{.5\pgfphysicalheight},%
}%
\pgfpageslogicalpageoptions{8} % Foruth Card
{%
border shrink=\pgfpageoptionborder,%
original width=.25\pgfpageoptionheight,%
original height=.5\pgfpageoptionwidth,%
rotation=180,%
center=\pgfpoint{.5\pgfphysicalwidth}{.5\pgfphysicalheight},%
}%
\pgfpageslogicalpageoptions{10} % Fifth
{%
border shrink=\pgfpageoptionborder,%
original width=.25\pgfpageoptionheight,%
original height=.5\pgfpageoptionwidth,%
rotation=180,%
center=\pgfpoint{\pgfphysicalwidth}{.25\pgfphysicalheight},%
}%
\pgfpageslogicalpageoptions{12} % Sixth
{%
border shrink=\pgfpageoptionborder,%
original width=.25\pgfpageoptionheight,%
original height=.5\pgfpageoptionwidth,%
rotation=180,%
center=\pgfpoint{.5\pgfphysicalwidth}{.25\pgfphysicalheight},%
}%
\pgfpageslogicalpageoptions{14} % 1
{%
border shrink=\pgfpageoptionborder,%
original width=.25\pgfpageoptionheight,%
original height=.5\pgfpageoptionwidth,%
rotation=180,%
center=\pgfpoint{\pgfphysicalwidth}{0\pgfphysicalheight},%
}%
\pgfpageslogicalpageoptions{16} % 1
{%
border shrink=\pgfpageoptionborder,%
original width=.25\pgfpageoptionheight,%
original height=.5\pgfpageoptionwidth,%
rotation=180,%
center=\pgfpoint{.5\pgfphysicalwidth}{0\pgfphysicalheight},%
}%
}%