Document Classes ⇒ minitoc of chapter X shifted to chapter X+1
minitoc of chapter X shifted to chapter X+1
I encounter a funny problem, here a bit of code:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[13pt]{scrbook}
\usepackage{minitoc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\frontmatter
\chapter{Preface}
blabla
\dominitoc \tableofcontents
\mainmatter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Overview}
blabla
\minitoc
\section{somethingOOO}
\label{sec:somethingOOO}
\subsection{else}
\label{sec:else}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Operation}%
\label{sec:operation}
blabla
\minitoc
\section{somethingPPP}
\label{sec:something2}
\subsection{elsePPP}
\label{sec:else1}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
If i put the preface after the \dominitoc command, it's all fine.
\dominitoc \tableofcontents
\chapter{Preface}
blabla
But if i put the preface before the \dominitoc command, the minitoc of the chapters are shifted, i.e. the minitoc in chapter 1 is empty, but the chapter1 minitoc appears in chapter 2, and the minitoc of chapter 2 appears in chapter 3, etc.
\chapter{Preface}
blabla
\dominitoc \tableofcontents
I would like my preface to appear before the toc... any idea ?
thanks
marie
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Re: minitoc of chapter X shifted to chapter X+1
put the \dominitoc command before the preface, perhaps even before the frontmatter. That command should be called before the first sectioning command like \chapter, else you may get that disorder in the minitoc tables.
Stefan
Re: minitoc of chapter X shifted to chapter X+1
marie.