GeneralIncluded PDF pages in the Appendix

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
ozmank8
Posts: 6
Joined: Tue Feb 15, 2011 6:26 pm

Included PDF pages in the Appendix

Post by ozmank8 »

Hi,

I am trying to attach external pdf i.e edocs of erlang. And I tried to do with

Code: Select all

\appendix
\label{app:appendix}
\section{Appendix}
\includepdf[pages=-]{edoc/edoc.pdf}
In this case the appendix starts with blank page and then from next page I can see edocs. I want the attach edocs with heading Appendix on same page.

Kindly reply.
Last edited by ozmank8 on Tue Feb 15, 2011 11:53 pm, edited 1 time in total.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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

Included PDF pages in the Appendix

Post by localghost »

Search the pdfpages manual for the pagecommand option given to the \includepdf command.


Best regards and welcome to the board
Thorsten
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Included PDF pages in the Appendix

Post by frabjous »

As far as I know, the only way to put additional content on the same page as a page included with \includepdf is to use picturecommand= or picturecommand*= options. This uses a picture environment, so if you want to use something like \section{...}, it'll need to be put in a \parbox, and you'll need to manually position that \parbox with a \put command (well, there may be some way to automate this, but I don't know what this is off the cuff).

Code: Select all

\appendix
\includepdf[pages=-,picturecommand*={%
     \put(133,660){%
         \parbox{\textwidth}{\section{Appendix}\label{app:appendix}}
     }}]{edoc/edoc.pdf}
\end{document}
ozmank8
Posts: 6
Joined: Tue Feb 15, 2011 6:26 pm

Re: Included PDF pages in the Appendix

Post by ozmank8 »

Hi frabjous,

Thanks for your quick reply. Your posted code works great :)


Hi localghost,

Thanks for your quick reply and making me aware of rules.:)
Post Reply