I want to make a minitoc for each section with the subsections with the memoir class. But it doesn't works, only \minitoc per chapters are working.
How can I do that ?
I want to make a minitoc for each section with the subsections with the memoir class. But it doesn't works, only \minitoc per chapters are working.
How can I do that ?
There are well-known incompatibilities between memoir and minitoc. However, the titltoc package can also produce section and chapter contents lists. Here's an example based on my answer to this question: Minitoc and memoir which shows how you can use titletoc to do section TOCs.
\documentclass[oneside]{memoir}
\setsecnumdepth{subsubsection}
\settocdepth{subsubsection}
\usepackage{titletoc}
\usepackage{kantlipsum}
\begin{document}
\tableofcontents
\chapter{A chapter}
\kant[1]
\section{Section}
\startcontents[sections]
\printcontents[sections]{}{2}{}
\subsection{A subsection}
\kant[2]
\subsection{Another subsection}
\kant[3]
\section{Section 2}
\startcontents[sections]
\printcontents[sections]{}{2}{}
\subsection{A subsection}
\kant[4]
\subsection{Another subsection}
\kant[5]
\section{Section 3}
\startcontents[sections]
\printcontents[sections]{}{2}{}
\subsection{A subsection}
\kant[6]
\subsection{Another subsection}
\kant[7]
\end{document}

hyperref to this example works properly, so if you are having a problem with hyperref you should ask a separate question about that. Did you remove all the auxiliary files? Did you load hyperref as the last package in the loading order?
– Alan Munn
Jul 06 '12 at 11:59
hyperref has to modify the behaviour of a lot of packages and so should almost always be the last package you load. (There are a few exceptions in the case of other packages that affect hyperref itself, but generally loading it last is the best strategy.)
– Alan Munn
Jul 06 '12 at 13:16
titletocinstead. – Alan Munn Jul 05 '12 at 18:34\sectioninstead of after each\chapterin my answer, I think they're pretty much the same. I can post an almost duplicate answer here if you like. – Alan Munn Jul 05 '12 at 18:45\dosecttocand\secttoc, and they worked with thearticleclass, but not withmemoirsarticleoption. I 'd upvote a working solution for the latter case. – lockstep Jul 05 '12 at 18:50minitoc. So maybe it's better to have a clearer answer here. – Alan Munn Jul 05 '12 at 19:13