I have a main.tex file. There is a part called front matter. Part of the code is,
1.
\frontmatter
\selectlanguage{english}
\include{title}
\include{dedication}
\include{acknowledgements}
\include{abstract}
And I have files called title.txt ... abstract.txt
2. The acknowledgement file looks like,
\chapter*{Acknowledgements}\addcontentsline{toc}{chapter}{Acknowledgements}
My text here..
3. The abstract file looks like
\chapter*{abstract}\addcontentsline{toc}{chapter}{Abstract}
My text here..
Main body, or main matter looks like,
\mainmatter
\include{ch1}
\include{ch2}
\include{ch3}
ch1, ch2 and ch3 has minitoc.
\chapter{This is title of chapter 1}
\minitoc
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.
\chapter*{Acknowledgements}\addcontentsline{toc}{chapter}{Acknowledgements}
But how can I fix it? [How can I have minitoc of chapter 1, in right place?]
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