4

I'm writing a thesis. It is structured as a main thesis.tex document, that uses \include to include individual chapters written in separate documents. I would like to include a mini-toc at the beginning of each chapter. Minitoc works when I write \minitoc in the main thesis.tex document, but not when I write \minitoc in the individual included chapter documents.

For example, my main document contains:

\documentclass[oneside,11pt]{LatexFiles/ThesisClass/MMCCDPhil}
\begin{document}

\frontmatter

\dominitoc
\tableofcontents  
\newpage
\listoffigures
\listoftables

\mainmatter

\include{Chapters/introduction}
\include{Chapters/materials}
\include{Chapters/one}
\include{Chapters/two}
\include{Chapters/three}

\end{document}

and my individual chapters would contain:

\chapter{introduction}
\minitoc
\section{section one}
\section{section two}

In this case, no minitoc is printed in the document.

when I put it all in a single document:

\documentclass[oneside,11pt]{LatexFiles/ThesisClass/MMCCDPhil}

\begin{document}

\frontmatter

\dominitoc
\tableofcontents  
\newpage
\listoffigures
\listoftables

\mainmatter

\chapter{introduction}
\minitoc
\section{section one}
\section{section two}

\include{Chapters/materials}
\include{Chapters/one}
\include{Chapters/two}
\include{Chapters/three}

\end{document}

the minitoc prints out just fine for the introduction.

Any ideas what I'm doing wrong?

4

I should have set the mtc counter to correspond with the included chapters! Adding:

\setcounter{mtc}{*corresponding previous section number*}

before the \include{Chapters/introduction}

fixed the problem!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.