Include PDF in latex document

Sometimes I use Excel or NeoOffice/OpenOffice.org to create tables I want to include in latex documents. I try to get latex code for the table using Calc2Latex or the Excel2LaTeX, but when that doesn't work so well, I print the table to a pdf an include that pdf in the pdflatex document.

[UPDATE]
I recently discovered that the graphicx package can include pdf files as pictures. Also useful.
[/UPDATE]

This is what you can use for concatenating PDFs: (shamelessly stolen from http://ansuz.sooke.bc.ca/software/pdf-append.php)

begin quote

If you have LaTeX installed, you probably have pdftex and a package called pdfpages, and you can use those together with a hand-written driver file to append PDFs. This approach is more work than I'd really prefer, but it's the only one I found that actually did work in my situation, after spending a lot more time on the problem than I ought to have (and not being paid by the hour, so it hurt). If I were doing this task many times I could of course write a script to streamline it

Create a driver file like out.tex with contents like this:

\documentclass[landscape]{article}
\usepackage{pdfpages}

\begin{document}

\includepdf[pages=-]{in1}
\includepdf[pages=-]{in2}
\includepdf[pages=-]{in3}

\end{document}

end quote

If you just want to include a pdf as a picture, you use the \usepackage{graphicx} ... \includegraphics{file.pdf} solution.

Comments

Popular posts from this blog

Work standing up

Recording the iPhone screen and Mac screen at the same time in one video

iChat IRC transport with OpenFire and Kraken