Just a quick example with docmute. Please note that I only put some packages in the preambles to emphasize that they must be identical or debugging will be difficult, if even possible.
IMPORTANT: To prevent really difficult debugging, make very sure that the individual *.tex file with preambles actually do compile individually before running the main file.
Note: You can still use input and include the usual way to import none standalone pieces of LaTeX code.
\begin{filecontents}{one.tex}
\documentclass[10pt,letterpaper]{article}
\usepackage{docmute}
\usepackage{graphicx}
\usepackage{longtable}
\begin{document}
This is the contents of FILE ONE
\end{document}
\end{filecontents}
\begin{filecontents}{two.tex}
\documentclass[10pt,letterpaper]{article}
\usepackage{docmute}
\usepackage{graphicx}
\usepackage{longtable}
\begin{document}
This is the contents of FILE TWO
\end{document}
\end{filecontents}
\documentclass{article}
\usepackage{docmute}
\usepackage{graphicx}
\usepackage{longtable}
\begin{document}
This is main document
\hrule
This is file one using \textit{input}.
\input{one}
\hrule
This is file one using \textit{include}.
\include{one}
\hrule
This is file two using \textit{input}.
\input{two}
\hrule
This is file two using \textit{include}.
\include{two}
\end{document}
docmuteand look at the excellent questions and solutions then read the documentation fordocmuteat http://texdoc.net/texmf-dist/doc/latex/docmute/docmute.pdf. The two items to remember. First, this works reliable for only one level deep. If you go multiple levels with an inputted file calling another inputted file there are problems with some other LaTeX Packages. Second, ALL, and it means ALL of the preambles of the main and ALL inputted file must be identical or you may have some very hard to debug errors, if it compiles at all. I used this for a 200+ file doc. – R. Schumacher May 15 '15 at 15:05standalonepackage. Numerous examples on this site. – Peter Grill May 15 '15 at 16:55