Guenter Milde wrote:
> On 2010-11-26, Jürgen Spitzmüller wrote:
> > Guenter Milde wrote:
> >> Both xelatex and luatlaex can use TeX fonts and PSNFSS:
> > OK, I tried this now. The two engines indeed seem to be able to deal with
> > these font packages. However, as soon as the fontspec package is loaded,
> > it doesn't work anymore (and there will always be LM in the output).
> 
> LM is the fontspec default. If it is really used, depends on the loading
> order. The following gives Bookman output here.
> 
> \documentclass{minimal}
> \usepackage{fixltx2e}
> \usepackage{fontspec}
> \usepackage{bookman}
> \usepackage[T1]{fontenc}
> \usepackage[utf8]{inputenc}
> \begin{document}
> Hallo Welt!
> \end{document}

And fontenc seems to be needed as well.

> > fontspec is automatically loaded at least by xltxtra and polyglossia.
> > So if we provide tex fonts support with XeTeX, we will have to use
> > babel and omit xltxtra. We can do that, but do we really want to
> > provide such a limited choice?
> 
> I don't know whether it is really usefull. Maybe some day people want to
> use LuaTeX with some font that only exists in TeX encoding...
> 
> But you could keep the "use non-TeX fonts" (or better "use System fonts"
> or "use fontspec") button and make "\usepackage{fontspec}" as well as the
> choice of babel vs. polyglossia dependent on its setting.

The latter is no good idea, IMHO. Who will understand that whether babel or 
polyglossia is used depends on the font choice?

> xltxtra is no longer recommended by its author. The recommended parts of
> it are moved to fontspec now.
>
> It changes the math setup and super- and subscripting in a way that
> should not be forced on the user without choice.
> 
> Also, it loads fixltx2e.sty, which you did not want to load whithout a
> means to disable it!

At the time when I wrote this code, I read that the two packages (xunicode and 
xltxtra) should always be loaded with every XeTeX document. So I did.

But I will happily remove it if it is not really necessary.

> AFAIK, xunicode should not be used with luatex.

It isn't.

> Thanks,
> 
> Günter

Jürgen

Reply via email to