[XeTeX] xelatex and table of contents

Alan Munn amunn at gmx.com
Wed May 11 19:05:52 CEST 2011


On May 11, 2011, at 11:41 AM, François Patte wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Le 11/05/2011 16:42, Alan Munn a écrit :
> 
> Thanks for answering.
> 
>>> \usepackage[frenchb]{babel}
>>> \frenchbsetup{AutoSpaceFootnotes=false}
>> 
>> You shouldn't be using babel with xelatex; you should use polyglossia instead.
> 
> I wish I could! But the "French style" with polyglossia is far from
> being as advanced as the babel one....

Are babel and xelatex really compatible?  I'm not sure that they are. But this isn't the source of the problem.

> 
>>> 
>>> \usepackage{xltxtra}
>>> \setmainfont[Mapping=tex-text]{Linux Libertine O}
>>> \newfontfamily\sanskritfont{Linux Libertine O}
>>> 
>>> % \usepackage{dev}
>> 
>> In the source for dev.sty:
>> 
>> %    This is an old package kept just for compatibility reasons. Use
>> %    devanagari.sty in new documents.
> 
> dev.sty just calls devanagari.sty. So the problem will be the same!

Ok.  Is devanagari.sty compatible with xelatex?  I wouldn't think so.

devanagari.sty redefines @starttoc and sets the default encoding to OT1 (an odd choice.)

After loading devanagari.sty add the following:

\def\DNencdefault{EU1}
\def\DNrmdefault{lmr}

This superficially seems to solve the problem.


Alan

-- 
Alan Munn
amunn at gmx.com







More information about the XeTeX mailing list