Any LaTeX experts here?

OK, so I’m TeX-ing up my midterm, using LaTeX, and as its a fairly unruly document, each chapter is a seperate file, which is \include’ed into a main file - my main file set up is:

\preamble
\begin{document}
\include{file1}
\include{file2}
etc
\bibliography
\end{document}

My problem arises with file1. If I TeX file1 seperately, then there is no problem with either my bibliographical citations, or with cross references in the text. If however I LaTeX the main file, then LaTeX can’t reference any of the citations from the bibliography, or cross reference anything in the text. This only happens with file1, the other files are fine.

Any ideas guys? I’m at my wits’ end here.

Oh, and I’ve BibTeX’ed it, and LaTeX’ed it at least three times before and after running BibTeX, and I’ve removed all files apart from the source files and essentially started again, but nothing works.

So, my fellow Dopers, help an astronomer who’s about to cry. :frowning:

OK, so I’m a putz! I’ve managed to solve it. I still had remnants of preamble in file1!

Mods - can you close this please?