This is my first post here and I apologise if I chose the wrong section.
I am using TexMaker 2.1 to write my dissertation. I have divided this into different files with a main file calling the others in order. I am compiling by doing Latex, Bibtex, Latex, Latex and finally PDFLatex. The document is produced in pdf with all parts being as they should but all TexMaker is reporting "Processes exited with error(s)" except for the BibTex process (this exits normally) and when I look at the errors there are quite a few plus many warnings and badbox etc.
I get different errors for for each document when I open the errors list after compiling. One recurrent error is "! Undefined control sequence. \chapter" and "! LaTeX Error: Missing \begin{document}."
What I would like to ask is: Do I have to insert all the \usepackage like what I have on the Main file in all the other files as well? I also get other errors such as those regarding NatBib, \cite errors and many others. I also have many No boundaries errors but I think these are because I use png's for pictures instead of eps. The following is the content of my main file.
Code: Select all
\documentclass[11pt,a4paper]{report}
\usepackage{times}
\usepackage{url}
\usepackage{graphicx}
\usepackage{Tabbing}
\usepackage{fancyhdr}
\usepackage{extramarks}
\usepackage{chngpage}
\usepackage[square]{natbib}
\usepackage[final]{pdfpages}
\usepackage{url}
\usepackage[below]{placeins}
\usepackage{setspace}
\onehalfspacing
\frenchspacing
\begin{document}
\newpage
\tableofcontents
\newpage
\listoffigures
\newpage
\listoftables
\newpage
\input{introduction}
\newpage
\input{chapter1}
\newpage
\input{chapter2}
\newpage
\input{chapter3}
\newpage
\input{chapter4}
\newpage
\input{chapter5}
\newpage
\input{chapter6}
\newpage
\bibliographystyle{plain}
\bibliography{mybibfile}
\end{document}
Thanks for any information or help.