GeneralHow to "float" \includepdfs ?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
ddenton
Posts: 34
Joined: Tue Mar 20, 2007 6:08 pm

How to "float" \includepdfs ?

Post by ddenton »

I want to insert a singe 11 X 17 in sheet with graphics in an 8.5 X 11 in report. I have been using the wonderful package, pdfpages, to do this. However, now I would like to insert this page as a float, so that I can insert it in running text rather than at the end of a chapter or within an appendix. I have tried putting the \includepdf command within the \figure environment, but (of course) that does not seem to work.

Is there any way you know of to make an \includepdf page "float"?

Thanks very much for your help!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: How to "float" \includepdfs ?

Post by Stefan Kottwitz »

Hi ddenton,

inside floats you can use \includegraphics, pdf format is supported too.

Stefan
LaTeX.org admin
ddenton
Posts: 34
Joined: Tue Mar 20, 2007 6:08 pm

Re: How to "float" \includepdfs ?

Post by ddenton »

Thanks Stephan.

I understand that \includegraphics allows pdfs and use this ability all the time--my problem is how do I insert an "oversized" page (11 X 17 in) in a lettersize report.

Thanks
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

How to "float" \includepdfs ?

Post by Stefan Kottwitz »

You can resize that pdf page by parameters to \includegraphics: scale, width, height, see graphicx documentation.

Stefan
LaTeX.org admin
ddenton
Posts: 34
Joined: Tue Mar 20, 2007 6:08 pm

How to "float" \includepdfs ?

Post by ddenton »

Using height and width, I am able to "include" 11 X 17 in pdfs, but not to put them on a 11 X 17 in page within my PDF document created by LaTeX.

The question is how to get \includegraphics to create the single oversized page.

Any further ideas would be appreciated.

Thanks
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

How to "float" \includepdfs ?

Post by Juanjo »

Using the afterpage package you can manage to float the oversized sheet to the "next" page (in some way, something similar to \begin{figure}[!p]... \end{figure}). Load this package. Then, in a point before that where the sheet should appear, write:

Code: Select all

\afterpage{\includepdf[width=\paperwidth,height=\paperheight]{foo.pdf}}
or something similar, with the appropriate options of \includepdf.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
ddenton
Posts: 34
Joined: Tue Mar 20, 2007 6:08 pm

Re: How to "float" \includepdfs ?

Post by ddenton »

Hello Juanjo,

Thanks (again) for your help. This is exactly what I needed.

DD
Post Reply