# [Tex/LaTex] Includepdf as a figure

graphicspdfpages

I want to include some pages of a pdf file into my document and wrap them into a figure with a caption for example (with pdfpages)

\begin{figure}[h]
\centering
\includepdf[pages={1,3,2},nup=2x2]{test.pdf}
\caption{Test}
\label{fig:Test}
\end{figure}


However this doesn't work. So is there another way to do this?

As already said by others in the comments you need to use \includegraphics directly because \includepdf uses a page of its own. You can use a tabular to get the 2x2 layout and use the page=<number> key to select the page:

\documentclass{article}

\usepackage{graphicx}
\usepackage{blindtext}

\begin{document}
\blindtext

\begin{figure}[h]
\centering
\begin{tabular}{@{}c@{\hspace{.5cm}}c@{}}
\includegraphics[page=1,width=.45\textwidth]{somemultipagepdf} &
\includegraphics[page=2,width=.45\textwidth]{somemultipagepdf} \\[.5cm]
\includegraphics[page=3,width=.45\textwidth]{somemultipagepdf} \\
\end{tabular}
\caption{Test}
\label{fig:Test}
\end{figure}

\blindtext
\end{document}