TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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 am using minitoc.

In the main file,





And at each chapter (separate file)

\chapter{Chapter name}




It was working fine until today. Now, what I can see, for example in chapter 5, minitoc is not synchronized, it says chapter 4 like, 4.1.2 .. ..4.2....


There is no minitoc on chapter One! [\minitoc command is still on the chapter one too!]

Can you please give me some clues?

share|improve this question
I'd start by deleting the \jobname.mtc* files, re-compile twice, and see if anything changes. If that doesn't work, make a copy of your document, and start stripping it down until you have a MWE. If you can't debug the MWE, post it as part of your question so that folks have something to work with :) – cmhughes Dec 31 '11 at 19:09
Before you do my first suggestion- make sure that you have either \tableofcontents or \faketableofcontents in your pre-amble – cmhughes Dec 31 '11 at 19:11
+1 for "\minitoc drove itself crazy (i was on board)". – lockstep Dec 31 '11 at 21:57
up vote 5 down vote accepted

It looks like the important thing missing from your document is either \tableofcontents or \faketableofcontents.

Without one of these, the minitoc package will not update the \jobname.mtc* files appropriately. From your description, it sounds like the minitoc package is working from 'old' \jobname.mtc* because you are seeing chapter 4's minitoc in chapter 5.

Here is MWE



\faketableofcontents    % need either this line 
%\tableofcontents       % or this one for minitoc to work



If this doesn't help, please post more details in your question.

share|improve this answer
<nitpick>The preamble is the part before \begin{document}.</nitpick> – Torbjørn T. Dec 31 '11 at 20:36
@TorbjørnT. Fixed – egreg Dec 31 '11 at 21:46
@TorbjørnT. oops, how embarrassing – cmhughes Dec 31 '11 at 23:35
@egreg Thanks :) – cmhughes Dec 31 '11 at 23:36

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.