[XeTeX] Res: from babel to polyglossia

Nicolas Vaughan nivaca at gmail.com
Sat Jul 4 06:08:37 CEST 2009


Hi,

*\newfontfamily\brazilfont[Mapping=tex-text,Numbers=OldStyle]{Minion Pro}*

That should make no difference. Your problem is with Polyglossia, not with
Xe(La)TeX.

I have run the following code with no problems:

% -*- mode: TeX -*-
> % -*- coding: utf-8 -*-
>
> \documentclass{memoir}
> \usepackage[T1]{fontenc}
> \usepackage{xltxtra}
> \PassOptionsToPackage{no-math}{fontspec}
> \usepackage{polyglossia}
> \setmainlanguage{brazil}
> \setotherlanguages{spanish,german,english}
>
> \defaultfontfeatures{Mapping=tex-text, Scale=MatchLowercase}
> \setromanfont{Times New Roman}
> \usepackage{amsmath}
>
> \begin{document}
>
> {\Huge Este é um teste: $\sqrt{x^2}$}
>
> \end{document}
>

To be sure, I get several brazil-font warnings, but nothing more. The
typeset result is as expected.

Best wishes,
Nicolas Vaughan


On Fri, Jul 3, 2009 at 10:44 PM, Flavio Costa <flaviocosta at yahoo.com.br>wrote:

>
> Hi Nikos, I tried
>
> \newfontfamily\brazilfont[Mapping=tex-text,Numbers=OldStyle]{Minion Pro}
>
> Unfrtunately it made no difference.
>
> Hi David, fontspec is loaded by polyglossia, so when I replaced babel by
> polyglossia I had to remove fontspec to avoid option clash for the package.
> Since I cannot call [no-math]{fontspec} directly, as I was doing when using
> babel, I resorted to PassOptionsToPackage, which actually works fine. The
> problem seems to be due to something else.
>
>
> Should I try asking this question on comp.text.tex?
>
> Thanks everyone,
>
> Flavio Costa
>
>
> ----- Mensagem original ----
> De: David Perry <hospes.primus at verizon.net>
> Para: Unicode-based TeX for Mac OS X and other platforms <xetex at tug.org>
> Enviadas: Sexta-feira, 3 de Julho de 2009 18:07:50
> Assunto: Re: [XeTeX] from babel to polyglossia
>
> Flavio,
>
> I assume you are loading fontspec in the preamble (if not, it needs to be).
>  Perhaps \usepackage[no-math]{fontspec} would work better than the
> PassOptionsToPackage command for some reason (I have never tried to use the
> latter with fontspec, I admit).  Also, I note that section 1.1 of the
> fontspec manual defines the command as "no-math" without the s; perhaps it
> works with the s also, but that's not stated.
>
> David
>
>
> Flavio Costa wrote:
> > Hi,
> >
> > I've replaced
> >
> >     \usepackage[spanish,german,english,brazil]{babel}
> >
> > by
> >
> >     \PassOptionsToPackage{no-math}{fontspec}
> >     \usepackage[nolocalmarks]{polyglossia}
> >     \setmainlanguage{brazil}
> >     \setotherlanguages{spanish,german,english}
> >
> > However, I'm getting "brazil at font is not defined" at \begin{document}.
> >
> > Before using \PassOptionsToPackage, I was getting many more "brazil at fontis not defined" warnings all over the document, with the code above I could
> reduce it only to \begin{document}, but I don't understand why this is still
> happening.
> >
> > Any clues?
> >
> > Thanks,
> >
> > Flavio Costa
> >
> >
> >
> ____________________________________________________________________________________
> > Veja quais são os assuntos do momento no Yahoo! +Buscados
> > ht
> aisbuscados.yahoo.com
> >
> >
>
>
>
>  ____________________________________________________________________________________
> Veja quais são os assuntos do momento no Yahoo! +Buscados
> http://br.maisbuscados.yahoo.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20090703/8ef8ac0a/attachment.html>


More information about the XeTeX mailing list