7

My graphing program (R) can plot a set of figures out, each on a separate page of the same pdf. Is there a way to convert this into a single 4x4 or 8x2 figure in LaTeX? There are alternatives, but this would be preferable.

  • 1
    This question seems related to http://tex.stackexchange.com/questions/7123/is-there-a-package-to-divide-pages-of-a4-to-2-pages-of-a5-each – Display Name Dec 29 '10 at 03:20
  • If you choose 8x2 then each pdf becomes so small and you will need a magnifying glass to read the printed version. I recommend you to use 2x1 or 1x2 or 2x2. More than this will be hard to read. – Display Name Dec 29 '10 at 03:29
  • @xport in my case, each page is a simple xy plot, and I can adjust the dimensions and fonts as needed, I just need to be able to arrange them. – David LeBauer Dec 29 '10 at 05:44
  • @xport: 4x4 sounds very small, but we can't say anything useful about readability if we don't see an example plot. – Charles Stewart Dec 29 '10 at 10:53
  • @Charles, I don't know the exact size of David's pdf files. So the decision depends on his feeling. :-) – Display Name Dec 29 '10 at 10:59
  • 1
    I'd like to see a Context solution to this. It should be possible using mplib. – Charles Stewart Dec 29 '10 at 10:59

1 Answers1

11

It is very easy. Please use pdfpages.sty and click here for its manual.


Sample Output

alt text


Code Snippet Sample

I used a pdf file downloaded from here and then renamed it as movies.pdf.

\documentclass{article}
\usepackage[a4paper,margin=1cm]{geometry}
\usepackage{pdfpages}
\begin{document}
\includepdf[%
landscape=true,%
pages={1-16},%Include pages from 1 to 16.
nup=2x3,%If landscape=false then it defines columns x rows. Otherwise it defines rows by columns. 
]{movies.pdf}%Pdf file name with or without extension.
\end{document}
Display Name
  • 46,933