[XeTeX] Res: Res: from babel to polyglossia

Flavio Costa flaviocosta at yahoo.com.br
Sat Jul 4 13:30:13 CEST 2009


Nicolas,

Thank you for the effort. My document is generated as expected too, I raised this question because of the warnings.

I thought that I was doing something wrong, something that would make the warning dissapear when it's fixed. So it seems there is no evident error in my code, maybe I'll just have to live with this misterious warning.

Best regards,

Flavio Costa




________________________________
De: Nicolas Vaughan <nivaca at gmail.com>
Para: Unicode-based TeX for Mac OS X and other platforms <xetex at tug.org>
Enviadas: Sábado, 4 de Julho de 2009 1:08:37
Assunto: Re: [XeTeX] Res: from babel to polyglossia

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 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
>aisbuscados.yahoo.com
>
>>
>>>
>
>
>>      ____________________________________________________________________________________
>>Veja quais são os assuntos do momento no Yahoo! +Buscados
>http://br.maisbuscados.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/20090704/4734e3ca/attachment.html>


More information about the XeTeX mailing list