I am trying to insert a PDF or doc file as an appendix in my LaTeX file. Do you know how I can do this?
Insert PDF as a box in LaTeX To do so, we can use the common graphicx package and its \includegraphics command, with the difference that instead of inserting an image we will be inserting a PDF document.
Once you drop your file or select it in your file browser you will be redirected to the editor, where a new project will be created with the same name as the . zip file. After that you can start editing, click Recompile to render the PDF.
Use the pdfpages
package.
\usepackage{pdfpages}
To include all the pages in the PDF file:
\includepdf[pages=-]{myfile.pdf}
To include just the first page of a PDF:
\includepdf[pages={1}]{myfile.pdf}
Run texdoc pdfpages
in a shell to see the complete manual for pdfpages
.
For putting a whole pdf in your file and not just 1 page, use:
\usepackage{pdfpages} \includepdf[pages=-]{myfile.pdf}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With