Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is there a way to add a local table of contents of sections/subsections appearing within a chapter to appear at the beginning of each chapter immediately after the chapter title on the title page (think: chapter contents)?

I'm using the amsbook package. Neither titletoc nor chaptertoc load properly without errors. minitoc loads but produces no output, even after including the \do... command before the \tableofcontents.

Edit I've discovered that there is an issue with \listoftables. If present, then \minitoc doesn't output a table. If removed, \minitoc works fine.

\documentclass[letterpaper]{amsbook}
\usepackage{minitoc}


\usepackage[Lenny]{fncychap}
\ChRuleWidth{1.618pt}
\ChTitleVar{\raggedright  \huge }
\ChNameVar{\raggedleft  \Huge }

\usepackage[bookmarksdepth=subsection,plainpages=false]{hyperref}

\begin{document}
\dominitoc
\frontmatter
\tableofcontents 
\mainmatter
%\listoftables

\chapter{Title} 
\minitoc
\section{Section Title}

\end{document}
share|improve this question
3  
see package chaptertoc or minitoc –  Herbert Jul 15 '11 at 6:19
1  
    
You should provide a minimal example of code that "doesn't work". –  egreg Jul 15 '11 at 7:56
add comment

1 Answer

up vote 1 down vote accepted

The following test document shows that minitoc works

\documentclass[a4paper]{amsbook}
\usepackage{minitoc}
\usepackage{hyperref}

\begin{document}
\dominitoc
\frontmatter
\tableofcontents
\mainmatter
\chapter{Abc}
\minitoc
\section{One}
x
\section{Two}
y
\section{Three}
z
\end{document}

As the minitoc manual says, the presence of \chapter* command can put out of synchronization the minitocs. In particular \listoftables is such a bad guy. Your test file should be

\documentclass[letterpaper]{amsbook}


\usepackage[Lenny]{fncychap}
\ChRuleWidth{1.618pt}
\ChTitleVar{\raggedright  \huge }
\ChNameVar{\raggedleft  \Huge }

\usepackage{minitoc}
\usepackage[bookmarksdepth=subsection,plainpages=false]{hyperref}

\begin{document}
\dominitoc
\frontmatter
\tableofcontents 
\listoftables
\adjustmtc
\mainmatter

\chapter{Title} 
\minitoc
\section{Section Title}

\end{document}

A warning in the log says that fncychap should be loaded before minitoc.

share|improve this answer
    
Well done! Thank you! –  user02138 Jul 15 '11 at 23:23
add comment

Your Answer

 
discard

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.