Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

addcontentsline and minitoc

91 views
Skip to first unread message

Tim Frink

unread,
Nov 23, 2009, 8:25:40 AM11/23/09
to
Hi,

I've a document which contains a main file with this content:

\begin{document}
\include{title}

\dominitoc
\pagenumbering{roman}
\cleardoublepage

\chapter*{Acknowledgments}
TEXT\\

\tableofcontents

\addcontentsline{toc}{chapter}{List of Figures}
\listoffigures
\cleardoublepage

\addcontentsline{toc}{chapter}{List of Tables}
\listoftables
\cleardoublepage

\mainmatter
\include{chapter01}
...
\end{document}

In addition, each chapter like chapter01.tex begins with:
\chapter{Introduction}
\minitoc
SOME TEXT

So, each chapter should start with a minitoc. However, as soon
as I add the list of figures/tables and try to add them to the
main TOC with "\addcontentsline{toc}{chapter}{List of Figures}",
the lists occur in the main TOC but the minitoc is missing in
each chapter.

Any idea how this can be fixed such that the list of figures/tables in
indicated in the main TOC and each chapter has a minitoc?

Regards,
Tim

Ulrich D i e z

unread,
Nov 25, 2009, 9:27:56 AM11/25/09
to
Tim Frink wrote:

> I've a document which contains a main file with this content:

Where is the preamble?



> \begin{document}
> \include{title}
>
> \dominitoc
> \pagenumbering{roman}
> \cleardoublepage
>
> \chapter*{Acknowledgments}
> TEXT\\
>
> \tableofcontents
>
> \addcontentsline{toc}{chapter}{List of Figures}
> \listoffigures

Instead of \addcontentsline use the minitoc-macro:

\mtcaddchapter[\listfigurename]

> \cleardoublepage
>
> \addcontentsline{toc}{chapter}{List of Tables}
> \listoftables
> \cleardoublepage
>
> \mainmatter
> \include{chapter01}
> ...
> \end{document}

[...]

Ulrich

0 new messages