# Keep two inserted tables on the same page [duplicate]

I have produced two tables that when ran from the same LaTeX file are positioned on the same page, one under the other. However, when the two tables are called upon by using \input they appear on two seperate pages.

Here is a MWE (with the pacakges used in my paper) that produces the problem:

\documentclass[11pt,a4paper]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[stable]{footmisc}
\usepackage{mathpazo}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{microtype}
\usepackage[authoryear, round]{natbib}
\usepackage[colorinlistoftodos]{todonotes}
\usepackage{setspace}
\usepackage{mdframed}
\usepackage{rotating}
\usepackage{lscape, longtable}
\newcommand\iid{i.i.d.}
\newcommand\pN{\mathcal{N}}

\begin{document}
\include{Results_Tables/tablea}
\include{Results_Tables/tableb}
\end{document}


Whereas using this amended MWE would produce the desired output, where both tables are within one tex file:

\documentclass[11pt,a4paper]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[stable]{footmisc}
\usepackage{mathpazo}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{microtype}
\usepackage[authoryear, round]{natbib}
\usepackage[colorinlistoftodos]{todonotes}
\usepackage{setspace}
\usepackage{mdframed}
\usepackage{rotating}
\usepackage{lscape, longtable}
\newcommand\iid{i.i.d.}
\newcommand\pN{\mathcal{N}}

\begin{document}
\include{Results_Tables/tablea_and_b}
\end{document}


## marked as duplicate by Werner tables StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Aug 5 '15 at 16:31

• \include{...} always put {...} on new page. Try to use \input{...}. – Zarko Aug 5 '15 at 15:51
• Fantastic! If you submit this as an answer @Zarko , I will gratefully accept. – David Patrick Aug 5 '15 at 15:53

Macro \include{...} always put {...} on new page. Instead it use input{...}.