[Tex/LaTex] Minitoc and unnumbered chapters

chaptersminitoc

I am writing my thesis and I have the following problem with the minitoc.

I would like my first chapter (the introduction) to be unnumbered. But when I use

    \chapter*{Introduction}

all the mini-table of contents of the chapters afterwards are shifted. Even worse, they are shifted in the counterintuitive direction: the minitoc of Chapter 1 only comes at the beginning of Chapter 2.

Here is the code.

\documentclass[12pt]{amsbook}


\usepackage[english]{babel}
\usepackage[utf8]{inputenc}

\usepackage{minitoc}
\setcounter{minitocdepth}{2}



  \title{Thesis}


\begin{document}
\maketitle

\dominitoc[n]
\nomtcrule

\tableofcontents


\chapter*{Introduction}
Bla

\chapter{First chapter}
\minitoc

\section{Section 1}
\subsection{Subsection 1}
\subsection{Subsection 2}
\section{Section 2}

\chapter{Second chapter}
\minitoc


\section{Section 1}
\section{Section 2}


\end{document}

Best Answer

Add \adjustmtc after the unnumbered chapter, see page 37 in the manual, section 1.3.4.

\documentclass[12pt]{amsbook}


\usepackage[english]{babel}
\usepackage[utf8]{inputenc}

\usepackage{minitoc}
\setcounter{minitocdepth}{2}



  \title{Thesis}


\begin{document}
\maketitle

\dominitoc[n]
\nomtcrule

\tableofcontents


\chapter*{Introduction}
\adjustmtc

Bla

\chapter{First chapter}
\minitoc

\section{Section 1}
\subsection{Subsection 1}
\subsection{Subsection 2}
\section{Section 2}

\chapter{Second chapter}
\minitoc


\section{Section 1}
\section{Section 2}


\end{document}

enter image description here

Related Question