Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When using pdfpages in LaTeX, how to avoid page breaks before the first page ?

Tags:

I am creating a large LaTeX document, and my appendix has reproductions of several booklets that I have as PDFs. I am trying to create a section header and then include the pages at a slightly lower scale. For example:

\section{Booklet about Yada Yada Yada}  \includepdf[pages={-}, frame=true, scale=0.8]{booklet_yadayada.pdf} 

However, pdfpagex does two annoying things. First, it devotes one output document page for included document page. I can live with that as I am using 80% scale. The main problem, however, is that the first page is also a new page, so I have a page with just a section title, and then a separate page with the booklet.

Is there some way to get pdfpages to be a little smarter here?

like image 683
Uri Avatar asked Jan 09 '10 20:01

Uri


1 Answers

\includepdf uses \includegraphics internally, so something like

\section{Foo} \fbox{\includegraphics[page=1,scale=0.8]{foo.pdf}} 

would include the page without starting a new one, although it only does one page at a time.

like image 53
Josh Lee Avatar answered Oct 05 '22 20:10

Josh Lee