why command \cite{}
using imakeidx
with splitindex
option and biblatex
with indexing=cite
option causes
Package imakeidx Warning: Undefined index file `split' on input line 33.
After compiling my source file (split.tex
) I somehow have two .idx
files:
split-persons.idx
:
\indexentry{Smith, Joe}{1}
\indexentry{Greenwild, Dirk}{1}
\indexentry{Jordan, Peter}{1}
\indexentry{Jordan, Peter}{1}
and split.idx
:
\indexentry[persons]{Smith, Joe}{1}
\indexentry[persons]{Greenwild, Dirk}{1}
\indexentry[persons]{Jordan, Peter}{1}
\indexentry[persons]{Jordan, Peter}{1}
MWE:
\documentclass{article}
\usepackage[backend=biber,natbib=true,indexing=cite]{biblatex} %for digital version
\bibliography{\jobname}
\usepackage[truexindy,splitindex]{imakeidx}
\makeindex[name=persons,program=truexindy,options=-M texindy]
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{book1,
author = "Greenwild, Dirk",
title = "Yellow pages",
year = "1998",
}
@book{book2,
author = "Jordan, Peter",
title = "Math in the world",
year = "1996",
}
\end{filecontents}
\DeclareIndexNameFormat{default}{%
\usebibmacro{index:name}
{\index[persons]}
{\namepartfamily}
{\namepartgiven}
{\namepartprefix}
{\namepartsuffix}}
\begin{document}
Foo\index[persons]{Smith, Joe}.
Foo\cite{book1}. Jordan\index[persons]{Jordan, Peter} foo\cite{book2}.
\printindex[persons]
\end{document}
UPDATE:
If I add fake command \makeindex[]
the warning disappears. Now I get also two .idx
files after compilation. split-persons.idx
is identical like before but split.idx
now contains not only person records but also book titles records which goes to main index. That is the problem I think.
Content of the split.idx
now:
\indexentry[persons]{Smith, Joe}{1}
\indexentry[persons]{Greenwild, Dirk}{1}
\indexentry[split]{Yellow pages@\emph {Yellow pages}}{1}
\indexentry[persons]{Jordan, Peter}{1}
\indexentry[persons]{Jordan, Peter}{1}
\indexentry[split]{Math in the world@\emph {Math in the world}}{1}
xelatex.exe -shell-escape -synctex=1 -interaction=nonstopmode "split".tex
for two times, thenbiber.exe ""C:\Users\andzejc\Desktop\testsplitindex\split"
and two more timesxelatex.exe -shell-escape -synctex=1 -interaction=nonstopmode "split".tex
. After each command I haveProcess exited normally
\index
). The MWE only defines apersons
index and so the generic index is empty, leading to the warnings. I guess you can ignore these.\makeindex[]
this warning disappears. BTW there is absolutely no problem when just callingFoo\index[persons]{Smith, Joe}
. The problem is only withFoo\cite{book1
andindexing=cite
option enabled.