# [OS X TeX] pdfpages question

Maarten Sneep maarten.sneep at xs4all.nl
Thu Jul 15 11:35:19 CEST 2004

On 14 jul 2004, at 23:45, Gerben Wierda wrote:

> On Jul 12, 2004, at 10:26, Maarten Sneep wrote:
>
>> add a \geometry{landscape} command at some point (I think after the
>> first page has finished, but before the second page has started,
>> check the manual on this. To go back again:
>> \geometry{landscape=false}
>
> According to the manual, I can only use the \geometry command in the

Yes, you're right, I recall that an older version didn't have this
limitation, just a few warnings.

> I still have no idea how to produce an A4 document which includes a
> PDF file in landscape format.

What do you do right now? Have you tried to change the paper size
manually?

The following test file works for me, although TeXShop and Postview
seem incapable to handle rotated pages. Preview, Acrobat, iTeXMac are
fine though.

Maarten

\documentclass[a4paper]{article}
\newlength{\tmplength}
\begin{document}
Blah in portrait.
\clearpage
\setlength{\tmplength}{\paperwidth}
\setlength{\paperwidth}{\paperheight}
\setlength{\paperheight}{\tmplength}
\setlength{\tmplength}{\pdfpageheight}
\setlength{\pdfpageheight}{\pdfpagewidth}
\setlength{\pdfpagewidth}{\tmplength}
Blah in landscape.
\end{document}

-----------------------------------------------------
Post: <mailto:MacOSX-TeX at email.esm.psu.edu>