[XeTeX] Conflict between xunicode and fontspec?

Julien ÉLIE iulius at via.ecp.fr
Mon Feb 4 22:46:18 CET 2008


Hi,

I have a problem with xunicode.  When it is loaded *before* fontspec,
it does not trigger the issue off.

You cas see in <http://people.via.ecp.fr/~iulius/test-xunicode.pdf> that
the letter "î" has a weird circumflex if I compile with XeLaTeX:

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\documentclass[a4paper,12pt]{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}

\usepackage{xltxtra}

\usepackage{hyperref}

\begin{document}

âêîôû \textbf{âêîôû}

\end{document}
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

but *no* problem with:

    \usepackage{xunicode,fontspec}
    \usepackage{xltxtra}

while there is one with:

    \usepackage{fontspec,xunicode}
    \usepackage{xltxtra}


Do you understand what is going on?  Why do they interfere?



By the way, there is *no* problem if I do not specify:

    \usepackage[latin1]{inputenc}
    \usepackage[T1]{fontenc}

But if I do not load these two packages, I have weird results with lots of
things (encoding problems for index, with the multind package, weird
accents, extraspaces with active French characters [I have "  !" instead
of " !" for instance with Babel] and maybe other minor issues I have not seen).


Thanks beforehand for your help regarding this issue.

Regards,

-- 
Julien ÉLIE

« Il ne faut jamais parler séchement à un Numide. » (Astérix) 



More information about the XeTeX mailing list