I'm writing my Thesis and I want the general table of contents at the beginning of the document and the toc for every chapter at beginning of every chapter. For doing so I use the minitoc
package.
If I put the \tableofcontents
command at the end of the document all goes right. If instead I put it at the begin of the document the minitoc of first Chapter is not printed and the next ones are shifted. The second chapter has the minitoc of the first one, the third of the second and so on so forth.
\documentclass[a4paper,11pt,twoside]{memoir}
\usepackage{minitoc}
\dominitoc
\begin{document}
\tableofcontents
\listoffigures
\chapter{first}
\minitoc
\section{first first}
\section{first second}
\chapter{second}
\minitoc
\section{second first}
\section{second second}
\chapter{third}
\minitoc
\section{third first}
\section{third second}
\end{document}