TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?]

share|improve this question
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
up vote 2 down vote accepted

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} 











share|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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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