[Tex/LaTex] Insert two pdf pages at the bottom

pdfpages

I would like to insert a pdf document of 2 pages in my document only on the bottom half part of the page. Using the pdfpages package with the command

\includepdf[nup=2x1,pages=-]{<mypdf>}

place the 2 pages side by side but half of my page is "lost". I would like to be able to use the upper half of my page as I want, and insert this 2 pages in the bottom half.

Here is an illustration of the result that I would like

enter image description here

Any help would be much appreciate.

Best Answer

You can place the pages using \includegraphics and specify the pages separately:

enter image description here

\documentclass{article}

\usepackage[margin=1in]{geometry}
\usepackage{graphicx,lipsum}

\renewcommand{\bottomfraction}{.7}% Allow up to 70% of bottom-floats to be on a page
\begin{document}

\section{A section}
\lipsum[1-7]

\begin{figure}[b]
  \includegraphics[width=.5\linewidth,page=1]{lipsum50}%
  \includegraphics[width=.5\linewidth,page=2]{lipsum50}
\end{figure}

\lipsum[8-14]

\end{document}

We ensure each page fits exactly within the text width (setting their widths to be .5\linewidth). Depending on the page geometry, you may have to update \bottomfraction as well, allowing a certain portion of the page to be taken up by floats. See How to influence the position of float environments like figure and table in LaTeX? and/or How can I get the figures not to be pushed to the end of the document?

lipsum50.pdf is a document that just has \lipsum[1-50] in it.