3

First of all, I am not a good user of Latex.

I am trying to put a little "table of contents" in every chapter of my manuscript.

I used the minitoc package and also the hyperref.

This is the what I have for now

\documentclass[a4paper,12pt]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[french,german,english]{babel}
\usepackage[absolute]{textpos}


\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}

\usepackage{float}

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

\usepackage{hyperref}
\hypersetup{pdfborder={0 0 0},
    colorlinks=true,
    linkcolor=black,
    citecolor=black,
    urlcolor=black}
\urlstyle{same}


\begin{document}    
\frontmatter
\input{head/titlepage.tex}
\include{head/dedication}

\setcounter{page}{0}
\input{head/acknowledgements}
\include{head/preface}
\include{head/abstracts}

\dominitoc

\tableofcontents

\phantomsection

\include{main/introduction}
\include{main/ch1}

\end{document}

and in every chapter file I used the \minitoc command

\chapter{}
\minitoc

The problem is that no mini ToC appears after the chapter name in the PDF file.

What could be the problem?

closed as unclear what you're asking by Johannes_B, Stefan Pinnow, Troy, Marcel Krüger, Dai Bowen Mar 18 '18 at 13:04

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Welcome to TeX.SX! Have you read the manual? – TeXnician Apr 20 '17 at 13:12
  • 1
    Please provide a compilable document that has this issue, not just non-contigious fragments – user31729 Apr 20 '17 at 15:58
  • @TeXnician What's that on the line just above \tableofcontents? – Torbjørn T. Apr 24 '17 at 15:57
  • If I collect your snippets and turn them into a complete example, I do get minitocs in each chapter. Can you make a single, complete document (a minimal working example), that demonstrates your problem, as Christian asked for earlier? – Torbjørn T. Apr 24 '17 at 16:01
  • 2
    Well, we don't have any of the files you \include of course, but if remove all those, and add \chapter{} \minitoc \section{} \section{}, I do get a minitoc at the start of that chapter (after compiling twice). Can you make an example that doesn't rely on other files? Perhaps also add \listfiles right before \documentclass, and add the .log file to your question as well. – Torbjørn T. Apr 28 '17 at 9:21