[XeTeX] xelatex and table of contents
Alan Munn
amunn at gmx.com
Wed May 11 23:53:04 CEST 2011
On May 11, 2011, at 4:45 PM, Ross Moore wrote:
> Hi François, Alan and others.
>
> On 12/05/2011, at 3:05 AM, Alan Munn wrote:
>
>> 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.
>
> I don't see any problem at all, with the provided example.
>
>
> <texshop_image.jpeg>
>
> Here is the XeTeX version, font warnings and the packages,
> as listed by \listfiles :
>
>
> This is XeTeX, Version 3.1415926-2.2-0.9997.4 (TeX Live 2010)
>
>
> LaTeX Font Warning: Font shape `EU1/LinuxLibertineO(0)/bx/n' undefined
> (Font) using `EU1/LinuxLibertineO(0)/m/n' instead on input line 15
> .
>
>
>
> *File List*
> report.cls 2007/10/19 v1.4h Standard LaTeX document class
> size11.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
> babel.sty 2008/07/06 v3.8l The Babel package
> frenchb.ldf 2009/03/16 v2.3d French support from the babel system
> frenchb.cfg
> scalefnt.sty
> keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
> xltxtra.sty 2009/12/26 v0.5b Improvements for the "XeLaTeX" format
> ifxetex.sty 2009/01/23 v0.5 Provides ifxetex conditional
> fontspec.sty 2010/11/07 v2.1d Advanced font selection for XeLaTeX/LuaLaTeX
> expl3.sty 2010/10/02 v2056 L3 Experimental code bundle wrapper
> l3names.sty 2010/10/03 v2064 L3 Experimental Naming Scheme for TeX Primitiv
> es
> etex.sty 1998/03/26 v2.0 eTeX basic definition package (PEB)
> l3basics.sty 2010/10/03 v2063 L3 Experimental basic definitions
> l3expan.sty 2010/09/20 v2037 L3 Experimental Argument Expansion module
> l3tl.sty 2010/10/03 v2063 L3 Experimental Token Lists
> l3int.sty 2010/10/09 v2070 L3 Experimental Integer module
> l3quark.sty 2010/09/20 v2036 L3 Experimental Quark Commands
> l3seq.sty 2010/03/29 v1879 L3 Experimental sequences and stacks
> l3toks.sty 2010/09/20 v2037 L3 Experimental Token Registers
> l3prg.sty 2010/10/03 v2063 L3 Experimental control structures
> l3clist.sty 2010/10/09 v2071 L3 Experimental comma separated lists
> l3token.sty 2010/10/03 v2063 L3 Experimental token investigation and manipu
> lation
> l3prop.sty 2010/03/21 v1857 L3 Experimental Property Lists
> l3msg.sty 2010/10/02 v2052 L3 Experimental LaTeX Messages module
> l3io.sty 2010/10/03 v2063 L3 Experimental i/o module
> l3skip.sty 2010/10/03 v2063 L3 Experimental skip registers
> l3box.sty 2010/09/26 v2048 L3 Experimental Box module
> l3keyval.sty 2010/04/11 v1890 L3 Experimental keyval processing
> l3keys.sty 2010/10/13 v2075 L3 Experimental key-value support
> l3precom.sty 2010/02/09 v1793 L3 Experimental precompilation module
> l3xref.sty 2010/02/09 v1786 L3 Experimental cross referencing
> l3file.sty 2010/03/21 v1853 L3 Experimental file loading
> l3fp.sty 2010/09/19 v2029 L3 Experimental floating-point operations
> l3luatex.sty 2010/07/18 v1985 L3 Experimental LuaTeX functions
> calc.sty 2007/08/22 v4.3 Infix arithmetic (KKT,FJ)
> xparse.sty 2010/05/23 v1927 Generic document command parser
> xkeyval.sty 2008/08/13 v2.6a package option processing (HA)
> xkeyval.tex 2008/08/13 v2.6a key=value parser (HA)
> fontspec-patches.sty 2010/11/07 v2.1d Advanced font selection for XeLaTeX/Lu
> aLaTeX
> fixltx2e.sty 2006/09/13 v1.1m fixes to LaTeX
> fontenc.sty
> eu1enc.def 2010/05/27 v0.1h Experimental Unicode font encodings
> eu1lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern
> xunicode.sty 2010/11/06 v0.96 provides access to latin accents and many othe
> r characters in Unicode lower plane
> fontspec.cfg
> metalogo.sty 2009/09/04 v0.11 Extended TeX logo macros
> graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
> graphics.sty 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
> trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
> graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live
> xetex.def 2009/11/22 v0.94 LaTeX color/graphics driver for XeTeX (RRM/JK)
>
> dev.sty 2003/06/09 $Revision: 1.14$ LaTeX macros for Velthuis Devanagar
> i
> cite.sty 2009/08/29 v 5.2
> udn.fd
> ***********
>
>
>>
>>>
>>>>>
>>>>> \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.
>
> This wasn't necessary for me.
>
> So if someone sees a difference in package versions from what I used,
> then that may provide a clue as to the source of the incompatibility.
I need the redefinitions. The difference between my File List and yours is:
Pkg Me Ross
xltxtra v0.5e v0.5b
ifluatex v1.3 ---
ifxetex v0.6 v0.5
fontspec v2.1f v2.1d
expl3 2222 2056
l3names 2122 2064
(most of the other l3 stuff)
cite v5.3 v5.2
realscripts v0.3 ---
So generally yours are a bit older than mine.
Mine attached:
*File List*
report.cls 2007/10/19 v1.4h Standard LaTeX document class
size11.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
babel.sty 2008/07/06 v3.8l The Babel package
frenchb.ldf 2009/03/16 v2.3d French support from the babel system
frenchb.cfg
scalefnt.sty
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
xltxtra.sty 2010/09/20 v0.5e Improvements for the "XeLaTeX" format
ifluatex.sty 2010/03/01 v1.3 Provides the ifluatex switch (HO)
ifxetex.sty 2010/09/12 v0.6 Provides ifxetex conditional
fontspec.sty 2011/02/26 v2.1f Advanced font selection for XeLaTeX/LuaLaTeX
expl3.sty 2011/04/09 v2222 L3 Experimental code bundle wrapper
l3names.sty 2011/01/08 v2122 L3 Experimental Naming Scheme for TeX Primitiv
es
etex.sty 1998/03/26 v2.0 eTeX basic definition package (PEB)
l3basics.sty 2011/04/23 v2246 L3 Experimental basic definitions
l3expan.sty 2011/04/09 v2223 L3 Experimental Argument Expansion module
l3tl.sty 2011/04/09 v2223 L3 Experimental Token Lists
l3int.sty 2011/04/11 v2229 L3 Experimental Integer module
l3quark.sty 2011/04/14 v2234 L3 Experimental Quark Commands
l3seq.sty 2011/04/21 v2245 The LaTeX3 kernel: sequences and stacks
l3toks.sty 2011/04/09 v2223 L3 Experimental Token Registers
l3prg.sty 2011/04/09 v2223 L3 Experimental control structures
l3clist.sty 2011/04/09 v2223 L3 Experimental comma separated lists
l3token.sty 2011/04/09 v2223 L3 Experimental token investigation and manipu
lation
l3prop.sty 2011/04/09 v2223 L3 Experimental Property Lists
l3msg.sty 2010/10/02 v2052 L3 Experimental LaTeX Messages module
l3io.sty 2010/10/03 v2063 L3 Experimental i/o module
l3skip.sty 2011/02/15 v2149 L3 Experimental skip registers
l3box.sty 2011/04/09 v2223 L3 Experimental Box module
l3keyval.sty 2011/04/09 v2223 L3 Experimental keyval processing
l3keys.sty 2010/11/11 v2082 L3 Experimental key-value support
l3precom.sty 2011/04/09 v2223 L3 Experimental precompilation module
l3xref.sty 2011/04/09 v2223 L3 Experimental cross referencing
l3file.sty 2011/04/21 v2242 The LaTeX3 kernel: file operations
l3fp.sty 2011/03/19 v2201 L3 Experimental floating-point operations
l3luatex.sty 2010/07/18 v1985 L3 Experimental LuaTeX functions
calc.sty 2007/08/22 v4.3 Infix arithmetic (KKT,FJ)
xparse.sty 2011/04/08 v2219 Generic document command parser
xkeyval.sty 2008/08/13 v2.6a package option processing (HA)
xkeyval.tex 2008/08/13 v2.6a key=value parser (HA)
fontspec-patches.sty 2011/02/26 v2.1f Advanced font selection for XeLaTeX/Lu
aLaTeX
fixltx2e.sty 2006/09/13 v1.1m fixes to LaTeX
fontenc.sty
eu1enc.def 2010/05/27 v0.1h Experimental Unicode font encodings
eu1lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern
xunicode.sty 2010/11/06 v0.96 provides access to latin accents and many othe
r characters in Unicode lower plane
fontspec.cfg
realscripts.sty 2010/09/30 v0.3 Access OpenType subscripts and superscripts
metalogo.sty 2010/05/29 v0.12 Extended TeX logo macros
graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live
xetex.def 2009/11/22 v0.94 LaTeX color/graphics driver for XeTeX (RRM/JK)
dev.sty 2008/03/09 v2.15 LaTeX macros for Velthuis Devanagari
devanagari.sty 2008/03/09 v2.15 LaTeX macros for Velthuis Devanagari
dvngcite.sty 2008/03/09 v2.15 Extension for citations in the nagari text
cite.sty 2010/09/10 v 5.3
udn.fd
--
Alan Munn
amunn at gmx.com
More information about the XeTeX
mailing list