% Copyright 2011 by Sudchai Boonto % % This file may be distributed and/or modified % % 1. under the LaTeX Project Public License and/or % 2. under the GNU Public License. % % Changelog % 20110501 - Initial Version 4 on 1 portait % 20110509 - add 2 on 1 portait \RequirePackage{pgfpages} % fix pgfpages bug \renewcommand\pgfsetupphysicalpagesizes{% \pdfpagewidth\pgfphysicalwidth\pdfpageheight\pgfphysicalheight% } \pgfpagesdeclarelayout{4 on 1 portrait} { \def\pgfpageoptionborder{0pt} } { \pgfpagesphysicalpageoptions {% logical pages=4,% physical height=\paperwidth,% physical width=\paperheight% } \pgfpageslogicalpageoptions{1} {% resized width= 0.6\pgfphysicalwidth,% resized height= 0.6\pgfphysicalheight,% center=\pgfpoint{.33\pgfphysicalwidth}{.64\pgfphysicalheight}% }% \pgfpageslogicalpageoptions{2} {% resized width= 0.6\pgfphysicalwidth,% resized height= 0.6\pgfphysicalheight,% center=\pgfpoint{1\pgfphysicalwidth}{.64\pgfphysicalheight}% }% \pgfpageslogicalpageoptions{3} {% resized width= 0.6\pgfphysicalwidth,% resized height= 0.6\pgfphysicalheight,% center=\pgfpoint{.33\pgfphysicalwidth}{.25\pgfphysicalheight}% }% \pgfpageslogicalpageoptions{4} {% resized width= 0.6\pgfphysicalwidth,% resized height= 0.6\pgfphysicalheight,% center=\pgfpoint{1\pgfphysicalwidth}{.25\pgfphysicalheight}% }% } \pgfpagesdeclarelayout{2 on 1 portrait} { \def\pgfpageoptionborder{0pt} } { \pgfpagesphysicalpageoptions {% logical pages=2, physical height=\paperwidth,% physical width=\paperheight% } \pgfpageslogicalpageoptions{1} {% resized width= 1\pgfphysicalwidth,% resized height=0.45\pgfphysicalheight,% center=\pgfpoint{0.5\pgfphysicalwidth}{0.69\pgfphysicalwidth},% }% \pgfpageslogicalpageoptions{2} {% resized width= 1\pgfphysicalwidth,% resized height= 0.45\pgfphysicalheight,% center=\pgfpoint{0.5\pgfphysicalwidth}{0.04\pgfphysicalheight},% }% }