GeneralImport a PDF as Appendix

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
greenie
Posts: 7
Joined: Sun Jul 17, 2011 9:48 pm

Import a PDF as Appendix

Post by greenie »

I would like to import a PDF as an appendix to my report. I found a way to import PDF files but how do I add the title of the appendix to it ?

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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

Import a PDF as Appendix

Post by Stefan Kottwitz »

Hi,

it depends on the way you found and used, you didn't mention that yet. If you use the the command \includepdf of the pdfpages packages, you can use the pagecommand option for such a purpose. It's described in the package documentation.

Stefan
LaTeX.org admin
greenie
Posts: 7
Joined: Sun Jul 17, 2011 9:48 pm

Re: Import a PDF as Appendix

Post by greenie »

ye that's the one I found, sorry for that.
I'll take a look at the command u mentioned, thanks

(*drowns in command options*)

"pagecommand Declares LATEX commands, which are executed on each sheet
of paper. (Default: pagecommand={\thispagestyle{empty}}"
So adding pagecommand={\chapter{title}} adds the chapter title to the first page of the pdf ?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
Joined: Mon Mar 10, 2008 9:44 pm

Re: Import a PDF as Appendix

Post by Stefan Kottwitz »

Be bold, and try. ;)
You could use \includepdf with pagecommand for the first page, and use another \includepdf call for the remaining pages, without pagecommand option.

Stefan
LaTeX.org admin
Post Reply