<br><br><div class="gmail_quote">On Mon, Feb 14, 2011 at 6:25 PM, Paul Isambert <span dir="ltr"><<a href="mailto:zappathustra@free.fr">zappathustra@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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><br></div><div>===SNIP====BAD=OUTPUT========</div><div><div>.sty)) (./000000234.out) (./000000234.out) [1]</div><div>! Missing } inserted.</div><div><inserted text> </div><div>                }</div><div>l.69 \subsection*{\underbar{Herpes Simplex Virus}}</div>
<div>                                                  </div><div>? </div><div>! Emergency stop.</div><div><inserted text> </div><div>                }</div><div>l.69 \subsection*{\underbar{Herpes Simplex Virus}}</div>
<div>                                                  </div><div><br></div><div>** WARNING ** Failed to convert input string to UTF16...</div><div>** WARNING ** Failed to convert input string to UTF16...</div><div>Output written on 000000234.pdf (1 page).</div>
<div>Transcript written on 000000234.log.</div></div><div><br></div><div>===SNIP====BAD=DOCUMENT=====</div><div><div>\documentclass[12pt,oneside,english]{book}</div><div>\usepackage{geometry}</div><div>\geometry{verbose,letterpaper,tmargin=1in,bmargin=1in,lmargin=0.75in,rmargin=0.75in}</div>
<div>\pagestyle{headings}</div><div>\setcounter{secnumdepth}{3}</div><div>\setcounter{tocdepth}{3}</div><div>\usepackage{makeidx}</div><div>\makeindex</div><div><br></div><div>\makeatletter</div><div>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.</div>
<div>\usepackage{tocloft}</div><div>\usepackage{fancyhdr}</div><div>\usepackage{ifpdf}</div><div>\usepackage[unicode=true, pdfusetitle,  bookmarks=true,bookmarksnumbered=false,bookmarksopen=true,bookmarksopenlevel=1,  breaklinks=true,pdfborder={0 0 0},backref=false,colorlinks=false] {hyperref}</div>
<div>\renewcommand{\cftchapleader}{\cftdotfill{\cftsecdotsep}}</div><div>\cftsetindents{chapter}{0em}{3em}</div><div>\addtocontents{toc}</div><div><br></div><div>%\usepackage{tocbibind}</div><div><br></div><div>\usepackage{fontspec}</div>
<div>\usepackage{xunicode}</div><div>\usepackage{xltxtra}</div><div>\setmainfont{Century Schoolbook L}</div><div><br></div><div>%%not enough "save_memory" can be allocated unless you use the patched version!</div>
<div>%\usepackage{xeindex}</div><div>%\IndexList{autoSpecials}{?®,?©} </div><div>%,?™} the ™ does not seem to index correctly as part of a word, only shows up by itself</div><div>%index%\IndexList{autoIndex}{}</div><div><br>
</div><div>%\input{\jobname-inc-preamble} %include externally generated latex code for the preamble</div><div><br></div><div>\usepackage{xeindex} %</div><div>\IndexList{xeindexList}</div><div>{</div><div>Virus</div><div>}</div>
<div><br></div><div><br></div><div>%add the index to the toc // done this way to try and make pdf bookmark correct</div><div>\let\myIndex\theindex\renewcommand{\theindex}{\cleardoublepage\myIndex\phantomsection\addcontentsline{toc}{chapter}{\indexname}}</div>
<div><br></div><div><br></div><div>\usepackage{babel}</div><div>\makeatother</div><div>\begin{document}</div><div>\frontmatter</div><div>\thispagestyle{empty}</div><div>\pdfbookmark[1]{Title Page}{titlePage}</div><div><br>
</div><div><br></div><div>\title{Avian Influenza (Bird Flu) for the Healthcare Professional\label{titlePage}}</div><div><br></div><div><br></div><div>\author{Published by:  Inform Editions}</div><div><br></div><div><br></div>
<div>\date{02/15/2011}</div><div><br></div><div>\maketitle</div><div>\mainmatter</div><div><br></div><div>\begin{sloppy}</div><div><br></div><div>\subsection*{\underbar{Herpes Simplex Virus}}</div><div><br></div><div>\end{sloppy}</div>
<div><br></div><div>\printindex{}</div><div>\end{document}</div></div><div><br></div><div><br></div></div>