<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Le 15/02/2011 19:03, Michael Joyner a écrit :
<blockquote
cite="mid:AANLkTimY18agNbLGw7-51xoEaiA7E7w9xRmsN7mETMuL@mail.gmail.com"
type="cite"><br>
<br>
<div class="gmail_quote">On Mon, Feb 14, 2011 at 6:25 PM, Paul
Isambert <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:zappathustra@free.fr">zappathustra@free.fr</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div class="im"><br>
</div>
Nice, you've just discovered a bug in XeSearch. </blockquote>
<div>Bleck. I don't consider it nice. Why am I the one always
finding these bugs that don't afflict other people? :(</div>
</div>
</blockquote>
<br>
Perhaps because XeSearch and XeIndex aren't widely used. (Not even
by me, otherwise those bugs would have been fixed long ago. By the
way, I don't use them not because I think they're bad, but because
I've become a LuaTeX user in the meanwhile. I <i>thought</i> they
were good :) )<br>
<br>
<blockquote
cite="mid:AANLkTimY18agNbLGw7-51xoEaiA7E7w9xRmsN7mETMuL@mail.gmail.com"
type="cite">
<div class="gmail_quote">
<div> </div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
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.<br>
</blockquote>
<div>Just ran into a case where it occurs for a single word.
Please see example document below.</div>
</div>
</blockquote>
<br>
Actually it's the same thing. XeSearch doesn't trim space around
words, hence<br>
<br>
<div>\IndexList{xeindexList}</div>
<div>{</div>
<div>Virus</div>
<div>}</div>
<div><br>
amounts to searching for " Virus " which, technically, is a
phrase, not a word. Just remove spurious space:<br>
<br>
<div>\IndexList{xeindexList}</div>
<div>{%</div>
<div>Virus%</div>
<div>}</div>
<div><br>
</div>
</div>
<br>
<blockquote
cite="mid:AANLkTimY18agNbLGw7-51xoEaiA7E7w9xRmsN7mETMuL@mail.gmail.com"
type="cite">
<div class="gmail_quote">
<div> </div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<br>
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.<br>
</blockquote>
<div>Haven't quite figured out how to do that yet without
changing lots of stuff not directly related to the indexing so
I was trying to index just "words" and not "phrases". :)</div>
</div>
</blockquote>
<br>
XeIndex has a \NoIndex command, but I've just tested it, it won't
work in \section. So you can surround the section title with
XeaSearch's \StopSearching/\StartSearching, unless you have other
operartions going on with XeSearch.<br>
<br>
Best,<br>
Paul<br>
</body>
</html>