LaTeX forum ⇒ Page LayoutChange Page Size Of A Single Page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
jorsborn
Posts: 12
Joined: Sat Feb 26, 2011 4:17 am

Change Page Size Of A Single Page

Postby jorsborn » Sun Mar 13, 2011 11:43 am

I want to embed a 'poster' in my document. The poster is a large map that can't be represented on A4 paper size. When bound, the poster will fold out. They do this sometimes in magazines.

I could do the two documents separately and simply include the poster afterward. However, I'd like to create some references to the nodes on the poster. Is there any way to construct my poster inline (change the size of that one page)?
Last edited by jorsborn on Mon Mar 14, 2011 11:19 am, edited 1 time in total.

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Change Page Size Of A Single Page

Postby gmedina » Sun Mar 13, 2011 4:01 pm

Hi,

the geometry package (from version 5 on) provides \newgeometry{} and \restoregeometry to allow changes in page dimensions in the middle of a document.
1,1,2,3,5,8,13,21,34,55,89,144,233,...

jorsborn
Posts: 12
Joined: Sat Feb 26, 2011 4:17 am

Change Page Size Of A Single Page

Postby jorsborn » Mon Mar 14, 2011 2:20 am

Looking at the documentation this looks pretty straightforward. I constructed a simple test but the paper size did not change. I set the driver to pdftex as I am using pdflatex. I even tried a driver setting of auto with no luck. Am I missing something?

\documentclass{book}

\usepackage[driver=pdftex]{geometry}

\begin{document}
This is a standard page.
\newpage
\newgeometry{paperwidth=17in,paperheight=11in}
This is a big landscape page.
\restoregeometry
\newpage
Back to a standard page
\end{document}


Thanks!

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Change Page Size Of A Single Page

Postby gmedina » Mon Mar 14, 2011 2:58 am

Yes, geometry won't be of use here since you cannot change the page dimensions in the middle of the document. You can, however, make a second document with the poster in it and then use the pdfpages package to include it in your main document (using this package you can have hyperlinks to the inserted page).
1,1,2,3,5,8,13,21,34,55,89,144,233,...

jorsborn
Posts: 12
Joined: Sat Feb 26, 2011 4:17 am

Re: Change Page Size Of A Single Page

Postby jorsborn » Mon Mar 14, 2011 4:32 am

Thanks... that will work.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Change Page Size Of A Single Page

Postby localghost » Mon Mar 14, 2011 11:10 am

jorsborn wrote:[…] that will work.

Then please mark the topic (not the last post) accordingly as written in Section 3 of the Board Rules (to be read before posting).


Thorsten
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 0 guests