Kamal Abdali
2018-04-24 21:09:27 UTC
To get the index listed in the table of contents, I include these two lines
in the preamble of a xelatex+polyglossia+bidi program:
\usepackage[imakeidx]
\makeindex[intoc]
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:
%%%%%%%%%%%%%%%%%%%
\documentclass{book}
\usepackage{imakeidx}
\makeindex[intoc]
\usepackage{polyglossia}
\usepackage{bidi} %%%%%
\setmainlanguage{english}
\title{Facts}
\author{Aleck}
\date{}
\begin{document}
\maketitle
\tableofcontents
\chapter{Stars}
Sirius, the brightest star in the night sky, is actually a double star.
\index{Sirius}
\printindex
\end{document}
%%%%%%%%%%%%%%%%%%%%
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.
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.
Any help will be appreciated.
Kamal Abdali
in the preamble of a xelatex+polyglossia+bidi program:
\usepackage[imakeidx]
\makeindex[intoc]
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:
%%%%%%%%%%%%%%%%%%%
\documentclass{book}
\usepackage{imakeidx}
\makeindex[intoc]
\usepackage{polyglossia}
\usepackage{bidi} %%%%%
\setmainlanguage{english}
\title{Facts}
\author{Aleck}
\date{}
\begin{document}
\maketitle
\tableofcontents
\chapter{Stars}
Sirius, the brightest star in the night sky, is actually a double star.
\index{Sirius}
\printindex
\end{document}
%%%%%%%%%%%%%%%%%%%%
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.
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.
Any help will be appreciated.
Kamal Abdali