我的索引没有出现

我的索引没有出现
This is my problem: I have two indexes which don't appear, nor in the TOC, nor in the end of my document when I compile my file. My MWE:
\documentclass{book}

    \usepackage{hyperref}
\usepackage[numberedbib,nosectionbib]{apacite}
\usepackage[makeindex]{imakeidx}
\makeindex[name=npr, title=Index des noms cités] 
\makeindex[name=mat, title=Index des matières]

\begin{filecontents}{mybib.bib}
@book{Tufte2002,
 author = {Tufte, Blabla},
 year = {2002},
 title = {A title},
 
}
\end{filecontents}
    
\begin{document}
    
\cite{Tufte2002} \index[npr]{Tufte}\index[mat]{Data}

    \bibnewpage 
{%start grouping
  \doublespacing % <====================================================
  \raggedright 
  \nocite{}
  \bibliographystyle{apacite} 
    \bibliography{mabibliocrc}
}%end grouping

\phantomsection
\cleardoublepage
\printindex[npr] 
\addcontentsline{toc}{chapter}{Index des noms cités}
\printindex[mat]
\addcontentsline{toc}{chapter}{Index des matières}

\end{document}

相关内容