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}
Asked
Active
Viewed 154 times
1
domi
- 1,473
\doublespacingis not defined by default. Removing it makes the example compile for me and it seems to make the two indices. – daleif Apr 04 '21 at 16:54\doublespacingremoved) – daleif Apr 04 '21 at 17:15pdflatexit explicitly states that it is runningmakeindexas a part of the compilation. – daleif Apr 04 '21 at 17:50\doublespacingand change the bibliography to use mybib.bib. I compile using pdflatex, bibtex, makeindex npr.idx, makeindex mat.idx and finally two runs of pdflatex. – Herb Schulz Apr 04 '21 at 19:34\usepackage{setspace}and correct to\bibliography{mybib.bib}. Works fine with pdflatex and lualatex. So the problem lies in the TeXtpad configuration. Could you do the multiple runs required from the command line? – Simon Dispa Apr 05 '21 at 13:21