[XeTeX] XeTeX and math packages -- was: Unexpected quotation marks

Axel E. Retif axretif at igo.com.mx
Thu Jun 14 17:54:05 CEST 2007


On  13 Jun, 2007, at 10:31, Will Robertson wrote:

> On 10/06/2007, at 9:23 , Bruno Voisin wrote:
>
>> What you need is a switch to disactivate these lines, but I don't
>> have the time to look into this right now. I'm cc'ing the fontspec
>> author, Will Robertson.
>
> Thanks heaps for that, Bruno. I think I knew in the back of my mind
> that I needed to do that, but I hadn't got around to it yet. There's
> a pre-release version of fontspec that should fix this problem
> automatically for most maths font packages that exist:
>    <http://scripts.sil.org/svn-public/xetex/TRUNK/texmf/tex/xelatex/
> fontspec/>
>
> The [no-math] package option can be used in exceptional circumstances
> if fontspec does the wrong thing.
>
> If you could relay this link to the OS X TeX list, I'd be
> appreciative if a couple of people could test it for the original
> problem and for any other documents containing maths to ensure I
> haven't messed up. It's past my bed time!

Wow! It's as simple as

\usepackage[minionint,mathlf]{MinionPro}% <- MinionPro loads MnSymbol
\usepackage[no-math]{fontspec}
\usepackage{xltxtra}
\defaultfontfeatures{Mapping=tex-text}
\setmainfont[Numbers=Lowercase]{Minion Pro}

and everything is in MnSymbol and Minion Pro!

(For lucbmath, though, it's better \usepackage[cm-default]{fontspec};  
otherwise, mathrm and numerals come out in Computer Modern.)

Thank you very much! And thanks to Bruno Voisin for his findings!


Best,

Axel



More information about the XeTeX mailing list