[XeTeX] xeindex bug. index entry mangles processing of section and chapter environments.
Michael Joyner
michael at newsrx.com
Tue Feb 15 00:00:45 CET 2011
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.
Help!
Thanks!
-Mike
<=SNIP=============>
\documentclass[12pt,oneside,english]{book}
\usepackage{geometry}
\geometry{verbose,letterpaper,tmargin=1in,bmargin=1in,lmargin=0.75in,rmargin=0.75in}
\pagestyle{headings}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage{makeidx}
\makeindex
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{tocloft}
\usepackage{fancyhdr}
\usepackage{ifpdf}
\usepackage[unicode=true, pdfusetitle,
bookmarks=true,bookmarksnumbered=false,bookmarksopen=true,bookmarksopenlevel=1,
breaklinks=true,pdfborder={0 0 0},backref=false,colorlinks=false]
{hyperref}
\renewcommand{\cftchapleader}{\cftdotfill{\cftsecdotsep}}
\cftsetindents{chapter}{0em}{3em}
%\addtocontents{toc}
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\setmainfont{Century Schoolbook L}
\usepackage{xeindex} %
\IndexList{xeindexList}
{Clinical Trial Research}
\let\myIndex\theindex\renewcommand{\theindex}{\cleardoublepage\myIndex\phantomsection\addcontentsline{toc}{chapter}{\indexname}}
\usepackage{babel}
\makeatother
\begin{document}
\frontmatter\thispagestyle{empty}
\title{Acute Coronary Syndrome for the Healthcare Professional}
\author{Published by: Inform Editions}
\date{02/14/2011}
\maketitle
\begin{center}
\renewcommand\contentsname{Table of Contents}
\tableofcontents{}
\end{center}
\mainmatter
\begin{sloppy}
\chapter{Clinical Trials}
\section*{Resverlogix Activates First Site for ASSURE 1 Clinical Trial}
\end{sloppy}
\printindex{}
\end{document}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20110214/8c939d4d/attachment.html>
More information about the XeTeX
mailing list