# [XeTeX] Res: from babel to polyglossia

Flavio Costa flaviocosta at yahoo.com.br
Sat Jul 4 05:44:36 CEST 2009

Hi Nikos, I tried

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

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 font is 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