<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">To get the index listed in the table of contents, I include these two lines in the preamble of a xelatex+polyglossia+bidi program:<br><br>\usepackage[imakeidx]<br>\makeindex[intoc]<br><br>My problem is that while the index does get produced it doesn’t get listed in the TOC. The trouble can be reproduced in this small program:<br><br>%%%%%%%%%%%%%%%%%%%<br>\documentclass{book}<br><br>\usepackage{imakeidx}<br>\makeindex[intoc]<br><br>\usepackage{polyglossia}<br>\usepackage{bidi}       %%%%%<br>\setmainlanguage{english}   <br><br>\title{Facts}<br>\author{Aleck}<br>\date{}<br><br>\begin{document}<br>\maketitle<br>\tableofcontents<br>\chapter{Stars}<br>Sirius, the brightest star in the night sky, is actually a double star.<br>\index{Sirius}<br>\printindex <br>\end{document}<br>%%%%%%%%%%%%%%%%%%%%<br><br>The above program produces the index without listing it in the TOC. However, if you comment out the  \usepackage{bidi} line, the index IS produced and listed in TOC as expected.<br><br>Note that the above program doesn’t really need bidi as all of its output text is in the Latin script. But I do need the bidi feature  in the actual document that I need to process.<br><br>Any help will be appreciated.<br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Kamal Abdali<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div></div>