I have a main.tex file. There is a part called front matter. Part of the code is,



And I have files called title.txt ... abstract.txt

2. The acknowledgement file looks like,

My text here..

3. The abstract file looks like

My text here..

Main body, or main matter looks like,


ch1, ch2 and ch3 has minitoc.

\chapter{This is title of chapter 1}

Now, for example, after I have added this \include{abstract} and \include{ack...} in the main.tex The minitoc disappeared from chapter 1 and chapter 2. But in chapter 3, first minitoc appeared but, this minitoc was about chapter 1.

May be this is something to do with the chapter command with the start.


But how can I fix it? [How can I have minitoc of chapter 1, in right place?]

  • I have found a solution, In the abstract file change the \chapter*{abstract}\addcontentsline{toc}{chapter}{Abstract} to \chapter*{abstract}\addstarredchapter{Abstract} It worked for me. – Droid-Bird Apr 13 '12 at 11:03

I don't know why minitoc acts this way, but a simple solution (or at least workaround) is to replace the \chapter*/\addcontentsline combos by \chapter (the unstarred version). The "Acknowledgements" and "Abstract" chapters still won't be numbered as they are a part of \frontmatter. As an additional benefit, this solution will produce correct headings for the two chapters.






% \chapter*{Acknowledgements}
% \addcontentsline{toc}{chapter}{Acknowledgements} 

% \chapter*{Abstract}
% \addcontentsline{toc}{chapter}{Abstract} 











| improve this answer | |
  • I greatly appreciate your help. Thanks for explaining so neatly. I have found another solution that I have added as a comment to my question. Thank you again. – Droid-Bird Apr 13 '12 at 11:00

I had the same problem and after trying out a few methods, the simplest answer to this, in my opinion, is to just add


immediately before the first use of a minitoc.

'x' is the number of chapters before the first chapter where a minitoc is required.

This just tells the minotoc which chapter it should be displaying.

| improve this answer | |

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.