# Mini Pages to child tex document

I am trying to make minipages work in lyx. I have a tex(1.tex) file, which contains the body of the minipages with the float figures I have, which goes like this

\begin{figure} ..\begin{minipages}....\end{minipages}..... \end{figure}


In my otherwise normal LyX document, I have written the ERT \include{1.tex}. This does not compile properly and spews out these errors :

Too many }s. \begin{document} ended by \end{figure}