-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpgfpageslayoutppt3.sty
75 lines (70 loc) · 2.26 KB
/
pgfpageslayoutppt3.sty
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
\ProvidesPackage{pgfpageslayoutppt3}
\RequirePackage{pgfpages}
\newcounter{physicalpage}
% \def\pptiiilpopts{resized width=3.5in,resized height=2.625in,}
\newtoks\pptiiilpopts
\pptiiilpopts={resized width=3.5in,resized height=2.625in,}
\pgfpagesdeclarelayout{ppt3} {
\def\pgfpagesoptionborder{0pt}
\pgfrememberpicturepositiononpagetrue
}{
\pgfpagesphysicalpageoptions {%
logical pages=3,
physical height=11in,
physical width=8.5in
}
\pgfpageslogicalpageoptions{1} {%
center=\pgfpoint{.25\pgfphysicalwidth}{.80\pgfphysicalheight},%
resized width=3.5in,resized height=2.625in,
%\the\pptiiilpopts,
border code={
\pgfusepath{stroke}
\pgftransformxshift{\wd0}
\pgftransformxshift{1in}
\foreach \i in {1,...,8} {
\pgfmoveto{\pgfpoint{0cm}{\i cm}}
\pgflineto{\pgfpointadd{\pgfpoint{\wd0}{\i cm}}{\pgfpoint{-1cm}{0 cm}}}
\pgfusepath{stroke}
}
}
}
\pgfpageslogicalpageoptions{2} {%
center=\pgfpoint{.25\pgfphysicalwidth}{.50\pgfphysicalheight},%
resized width=3.5in,
resized height=2.625in,
border code={
\pgfusepath{stroke}
\pgftransformxshift{\wd0}
\pgftransformxshift{1in}
\foreach \i in {1,...,8} {
\pgfmoveto{\pgfpoint{0cm}{\i cm}}
\pgflineto{\pgfpointadd{\pgfpoint{\wd0}{\i cm}}{\pgfpoint{-1cm}{0 cm}}}
\pgfusepath{stroke}
}
}
}
\pgfpageslogicalpageoptions{3}{%
center=\pgfpoint{.25\pgfphysicalwidth}{.20\pgfphysicalheight},%
resized width=3.5in,
resized height=2.625in,
border code={
\pgfusepath{stroke}
\pgftransformxshift{\wd0}
\pgftransformxshift{1in}
\foreach \i in {1,...,8} {
\pgfmoveto{\pgfpoint{0cm}{\i cm}}
\pgflineto{\pgfpointadd{\pgfpoint{\wd0}{\i cm}}{\pgfpoint{-1cm}{0 cm}}}
\pgfusepath{stroke}
}
% Now draw physical page header and footer
\stepcounter{physicalpage}
\pgftransformshift{\pgfpoint{\wd0}{-0.5in}}
% this is an attempt to get the current physical page. Not working.
% `\pgfpictureid' is undefined?
% \pgftransformshift{\pgfpointanchor{current page}{south west}}
% \pgftransformshift{\pgfpoint{1cm}{1cm}}
\pgftext[center] {\thephysicalpage}
}
}
}
\pgfpagesuselayout{ppt3}