I know how to include single pages of one document as images in another document.
\documentclass{scrartcl}
\usepackage{filecontents}
\begin{filecontents*}{file.tex}
\documentclass{scrartcl}
\usepackage{lipsum}
\begin{document}
\lipsum[1-100]
\end{document}
\end{filecontents*}
\usepackage{graphicx}
\newcommand\page[1]{
\frame{\includegraphics[page=#1, scale=.2]{file.pdf}}
}
\begin{document}
\begin{figure}
\centering
\page{1}\page{2} \\
\page{3}\page{4}
\caption{Pages}
\end{figure}
\end{document}
But I struggle with including the whole file.pdf without knowing how many pages it consists of.
I already tinkered with pdfpages to replace graphicx, but have difficulties of containing the imported pages in the floating environment then. Wrapping \includepdf into a minipage does not alleviate this problem.
How can I display the pages of a pdf in a figure?
\frame? Thebeamerframe command? – Sep 25 '15 at 19:33\framejust puts a border around the pdf content so they are more clearly recognizable as pages against the white background. – XZS Sep 25 '15 at 19:35\includepdf? – Romain Picot Sep 25 '15 at 19:37pdfpages. It seems\includepdfdoes not like to be put into floats. – XZS Sep 25 '15 at 19:39\framecome from? – Sep 25 '15 at 19:39;-)– Romain Picot Sep 25 '15 at 19:41\includepdfthis might be a layout issue only – Sep 25 '15 at 19:51\includepdfseems to hog the whole page to itself, overlaying the caption, surrounding text and ignoring any positioning, to only name a few problems. I am open to an\includepdfsolution, if you manage to find one. – XZS Sep 25 '15 at 19:57pages? nothing else? – touhami Sep 25 '15 at 20:38file.pdfshould end up inside the samefigure. I hope this clarifies. – XZS Sep 25 '15 at 20:41\documentclass{scrartcl} \usepackage{pdfpages} \begin{document} \includepdf[nup=4x6,frame,pages=-]{file.pdf} \end{document}you can use 6x6 or whatever to make allfile.pdf's pages in one page pdf file and than use it with\includegraphics– touhami Sep 25 '15 at 21:15nup=...option -- I did not find it in the manual (however, I did not test your suggestion) – Sep 25 '15 at 21:55