Re: [XeTeX] index not showing up as an entry in the table of contents

2018-04-25 Thread Zdenek Wagner
You have to redefine the header, it automatically inserts \chapter*{Index}. You have to remove the asterisk. I do not remember the details, I would have to search in the documentatin but it is written there. Zdeněk Wagner http://ttsm.icpf.cas.cz/team/wagner.shtml http://icebearsoft.euweb.cz 2018

Re: [XeTeX] index not showing up as an entry in the table of contents

2018-04-25 Thread Kamal Abdali
Thanks, Zdeněk. I found the problem and a solution for it discussed here: https://tex.stackexchange.com/questions/263696/polyglossias-setotherlanguage-blocks-imakeindexs-indexprologue. The solution did work for me. Briefly, the problem is attributed to bidi's restoring the book definition of the

Re: [XeTeX] index not showing up as an entry in the table of contents

2018-04-25 Thread Vafa Khalighi
The comment about bidi is wrong. Sent from my iPhone On 26 Apr 2018, at 12:51 am, Kamal Abdali mailto:k.abd...@acm.org>> wrote: Thanks, Zdeněk. I found the problem and a solution for it discussed here: https://tex.stackexchange.com/questions/263696/polyglossias-setotherlanguage-blocks-imakeind

Re: [XeTeX] index not showing up as an entry in the table of contents

2018-04-25 Thread Zdenek Wagner
Sure, bidi has nothing to do with it. And I woult prefer to modify the prolog generated by the index. If you randomly redefine a few macros inside \AtBeginDocument, it might fail unpredictably if a package is used with its own modifications. Stackexchange may contain useful solutions but the origi

Re: [XeTeX] index not showing up as an entry in the table of contents

2018-04-25 Thread Veesh Goldman
Actually, bidi does clobber imakeidx. In all of the document classes, bidi redefines the \theindex environment. Some of the imakeidx functionality also comes from redefining \theindex. I had problems with this in the past. The only issue that would be presented with the op's patch is that there won

Re: [XeTeX] index not showing up as an entry in the table of contents

2018-04-25 Thread Veesh Goldman
To clarify two points: to op used the intoc option, which should make the index appear in the toc (very aptly named, egreg). Thus, this is an example of bidi making a problem. It's just a lack of support really. The workaround he used was to save away the imakeidx version of theindex and restore it

Re: [XeTeX] index not showing up as an entry in the table of contents

2018-04-25 Thread Wilfred van Rooijen
I also tried to answer the original question, but since I could not find a proper solution I did not answer. Indeed, the problem has something to do with bidi, and perhaps also with multicol. If you change the order of the packages, there is an error from bidi about multicolumn environment. This