Inserting a pdf file in LaTeX

This is a very very very short post. It is really a simple trick that I regularly forget every time I’m writing in LaTeX: how to insert a pdf file.

Well, first of all you have to use the right package: pdfpages.

usepackage{pdfpages}

Then, to include the pdf file, you have to write in your tex source:

includepdf[pages={1,2,...,n}]{pdffile.pdf}

specifying the number of the pages you want to include as option, leave blank to insert the whole document.

That’s all. GWH!

About Francesco Serafin

I am a PhD student at the Department of Civil, Environmental and Mechanical Engineering at the University of Trento. My two greatest loves: Computer Science and Water (take three with my Lenovo!:D). As a result, the aim of my life is to make both passions coexist. My gpg public key available at https://pgp.mit.edu

Leave a Reply

Your email address will not be published.

*