Hi,<br><br><i>\newfontfamily\brazilfont[Mapping=tex-text,Numbers=OldStyle]{Minion Pro}</i><br><br>That should make no difference. Your problem is with Polyglossia, not with Xe(La)TeX.<br><br>I have run the following code with no problems:<br>
<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">% -*- mode: TeX -*-<br>% -*- coding: utf-8 -*-<br><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">\documentclass{memoir}</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">\usepackage[T1]{fontenc}</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">\usepackage{xltxtra}</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">\PassOptionsToPackage{no-math}{fontspec}</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">\usepackage{polyglossia}</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">\setmainlanguage{brazil}</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">\setotherlanguages{spanish,german,english}</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">\defaultfontfeatures{Mapping=tex-text, Scale=MatchLowercase}</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">\setromanfont{Times New Roman}</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">\usepackage{amsmath}</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">\begin{document}</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">{\Huge Este é um teste: $\sqrt{x^2}$}</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">\end{document} </span><br></blockquote><br>To be sure, I get several brazil-font warnings, but nothing more. The typeset result is as expected.<br>
<br>Best wishes,<br clear="all">Nicolas Vaughan<br>
<br><br><div class="gmail_quote">On Fri, Jul 3, 2009 at 10:44 PM, Flavio Costa <span dir="ltr"><<a href="mailto:flaviocosta@yahoo.com.br">flaviocosta@yahoo.com.br</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi Nikos, I tried<br>
<br>
\newfontfamily\brazilfont[Mapping=tex-text,Numbers=OldStyle]{Minion Pro}<br>
<br>
Unfrtunately it made no difference.<br>
<br>
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.<br>
<br>
<br>
Should I try asking this question on comp.text.tex?<br>
<br>
Thanks everyone,<br>
<br>
Flavio Costa<br>
<br>
<br>
----- Mensagem original ----<br>
De: David Perry <<a href="mailto:hospes.primus@verizon.net">hospes.primus@verizon.net</a>><br>
Para: Unicode-based TeX for Mac OS X and other platforms <<a href="mailto:xetex@tug.org">xetex@tug.org</a>><br>
Enviadas: Sexta-feira, 3 de Julho de 2009 18:07:50<br>
Assunto: Re: [XeTeX] from babel to polyglossia<br>
<div><div></div><div class="h5"><br>
Flavio,<br>
<br>
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.<br>
<br>
David<br>
<br>
<br>
Flavio Costa wrote:<br>
> Hi,<br>
><br>
> I've replaced<br>
><br>
> \usepackage[spanish,german,english,brazil]{babel}<br>
><br>
> by<br>
><br>
> \PassOptionsToPackage{no-math}{fontspec}<br>
> \usepackage[nolocalmarks]{polyglossia}<br>
> \setmainlanguage{brazil}<br>
> \setotherlanguages{spanish,german,english}<br>
><br>
> However, I'm getting "brazil@font is not defined" at \begin{document}.<br>
><br>
> Before using \PassOptionsToPackage, I was getting many more "brazil@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.<br>
><br>
> Any clues?<br>
><br>
> Thanks,<br>
><br>
> Flavio Costa<br>
><br>
><br>
> ____________________________________________________________________________________<br>
> Veja quais são os assuntos do momento no Yahoo! +Buscados<br>
> ht<br>
</div></div><a href="http://aisbuscados.yahoo.com" target="_blank">aisbuscados.yahoo.com</a><br>
<div><div></div><div class="h5">><br>
><br>
<br>
<br>
____________________________________________________________________________________<br>
Veja quais são os assuntos do momento no Yahoo! +Buscados<br>
<a href="http://br.maisbuscados.yahoo.com" target="_blank">http://br.maisbuscados.yahoo.com</a><br>
</div></div></blockquote></div><br>