[XeTeX] xeindex bug. index entry mangles processing of section and chapter environments.

Paul Isambert zappathustra at free.fr
Tue Feb 15 00:25:27 CET 2011


Le 15/02/2011 00:00, Michael Joyner a écrit :
> Good afternoon all,
>
> I having gotten much further along with the xeindexing, but have run 
> into a new problem.
>
> I have created and inserted below a test document showing an 
> un-numbered section getting mangled.
>
> What I really find strange is that the text being mangled is a 
> substring of the text being searched for indexing.
>
> I am searching via xeindex for 'Clinical Trial Research', but the 
> fragment "\section*{Resverlogix Activates First Site for ASSURE 1 
> Clinical Trial}" is ending up with a missing '}' after the word 'Trial'.
>
> One can also change "\chapter{Clinical Trials}" to "\chapter{Clinical 
> Trial}" and have the error occur there instead.

Nice, you've just discovered a bug in XeSearch. Basically, it builds an 
horizontal box; \section inserts a vertical command (\vskip) at the end 
of its argument; but TeX doesn't like vertical commands in horizontal 
boxes, hence the complaining. This happens only when searching for 
phrases, not simple words, because such things as \vskip are boundaries 
to XeSearch, so it normally closes the box, but boundaries are ignored 
when searching for phrases.

Right now I can only recommend stopping the search before the section 
title and starting it again after. I know it's far from satisfying, but 
I have to think about a better solution.

(Fortunately, after xeindex, I stop writing packages I couldn't use.)

Best,
Paul


More information about the XeTeX mailing list