[XeTeX] Res: Res: from babel to polyglossia

Nicolas Vaughan nivaca at gmail.com
Sat Jul 4 18:47:42 CEST 2009


Flavio,
I'm glad for you. Remember that fontenc's "no-math" option is used to direct
fontenc to leave alone the fonts used in math mode (in general, to leave CM
as the default math font); so, unless you're typesetting math (and you want
CM or other non-fontspect-managed font) you could turn that option off.
Likewise, the nolocalmarks from polyglossia is used only in case you want to
redefine the "local marks" (viz., the page footers and headers). If you
don't want to, I recommend also to leave that option out.
Best wishes,
Nicolas


On Sat, Jul 4, 2009 at 6:30 AM, Flavio Costa <flaviocosta at yahoo.com.br>wrote:

> 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 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
>>
>
>
> ------------------------------
> Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10<http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/>-
> Celebridades<http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/celebridades/>-
> Música<http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/m%C3%BAsica/>-
> Esportes<http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/esportes/>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20090704/f4d4cf60/attachment-0001.html>


More information about the XeTeX mailing list