I know this is a late answer but...
The combine class is not required to do this. The errors that you are seeing are likely a result of too much preamble information, that is what I ran into. My setup has each chapter in a separate folder within the main folder.
What I did was use the following preamble in each sub document
Code: Select all
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Chapter 7
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{header}
\chapter{CONCLUSIONS}
... %text here
\include{footer}
The header.tex file consisted of:
Code: Select all
\documentclass[12pt]{RCH}
\usepackage{natbib,graphicx,setspace}
\newcommand{\chapsevenpath}{./}
%this is used when referencing figures etc which are located in the local directory
\begin{document}
\setcounter{chapter}{6}
and the footer.tex file consists of:
Code: Select all
{
\renewcommand{\baselinestretch}{1}\normalsize
\renewcommand{\bibname}{References}
\bibliographystyle{els}
\bibliography{../RCHBibliography.bib}
}
\end{document}
This way, when I typeset each chapter, they show the proper chapter number and their own bibliography. With the use of ../RCHBibliography.bib, I only have to maintain one BIB file in the root project folder.
Now the main file has the following IN THE TEX file:
Code: Select all
\documentclass[12pt]{RCH}
\usepackage{natbib,graphicx,setspace,multirow,lscape,hhline,longtable,array}
\newcommand{\chaponepath}{chapter1/}
\newcommand{\chaptwopath}{chapter2/}
\newcommand{\chapthreepath}{chapter3/}
\newcommand{\chapfourpath}{chapter4/}
\newcommand{\chapfivepath}{chapter5/}
\newcommand{\chapsixpath}{chapter6/}
\newcommand{\chapsevenpath}{chapter7/}
... % all the information here for the front matter
begin{document}
% Typeset the title page
\maketitle
% Typeset the frontmatter.
\frontmatter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% CHAPTERS OF THESIS GO HERE
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{chapter1/chapter1.tex}
\input{chapter2/chapter2.tex}
\input{chapter3/chapter3.tex}
\input{chapter4/chapter4.tex}
\input{chapter5/chapter5.tex}
\input{chapter6/chapter6.tex}
\input{chapter7/chapter7.tex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% REFERENCE SECTION
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
{
\renewcommand{\baselinestretch}{1}\normalsize
\renewcommand{\bibname}{References}
\bibliographystyle{els}
\bibliography{RCHBibliography}
\addcontentsline{toc}{chapter}{References}
}
\end{document}
In the main directory, you still need header.tex and footer.tex files but they are blank.
As you can see, I have redefined the locations of each chapter in the main document (which were in the header and footer) so when typesetting, Latex knows where to find the files in the directories. This way, you can work on individual chapters and typeset with the references and figures looking proper and when you want to see the whole thing, you can typeset the main file! A bit of work to set it up but once done, it works great.
Cheers,