[OS X TeX] Re: [XeTeX] XeTeX and math packages -- was: Unexpected quotation marks

Bruno Voisin bvoisin at mac.com
Thu Jun 14 18:33:43 CEST 2007


Le 14 juin 07 à 17:54, Axel E. Retif a écrit :

> 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!

Beware though: the [no-math] option may have some side effects. The  
redefinitions it eliminates, namely:

       \DeclareMathSymbol{0}{\mathalpha}{legacymaths}{`0}
       \DeclareMathSymbol{1}{\mathalpha}{legacymaths}{`1}
       \DeclareMathSymbol{2}{\mathalpha}{legacymaths}{`2}
       \DeclareMathSymbol{3}{\mathalpha}{legacymaths}{`3}
       \DeclareMathSymbol{4}{\mathalpha}{legacymaths}{`4}
       \DeclareMathSymbol{5}{\mathalpha}{legacymaths}{`5}
       \DeclareMathSymbol{6}{\mathalpha}{legacymaths}{`6}
       \DeclareMathSymbol{7}{\mathalpha}{legacymaths}{`7}
       \DeclareMathSymbol{8}{\mathalpha}{legacymaths}{`8}
       \DeclareMathSymbol{9}{\mathalpha}{legacymaths}{`9}
       \DeclareMathSymbol{\Gamma}{\mathalpha}{legacymaths}{0}
       \DeclareMathSymbol{\Delta}{\mathalpha}{legacymaths}{1}
       \DeclareMathSymbol{\Theta}{\mathalpha}{legacymaths}{2}
       \DeclareMathSymbol{\Lambda}{\mathalpha}{legacymaths}{3}
       \DeclareMathSymbol{\Xi}{\mathalpha}{legacymaths}{4}
       \DeclareMathSymbol{\Pi}{\mathalpha}{legacymaths}{5}
       \DeclareMathSymbol{\Sigma}{\mathalpha}{legacymaths}{6}
       \DeclareMathSymbol{\Upsilon}{\mathalpha}{legacymaths}{7}
       \DeclareMathSymbol{\Phi}{\mathalpha}{legacymaths}{8}
       \DeclareMathSymbol{\Psi}{\mathalpha}{legacymaths}{9}
       \DeclareMathSymbol{\Omega}{\mathalpha}{legacymaths}{10}
       \DeclareMathSymbol{+}{\mathbin}{legacymaths}{43}
       \DeclareMathSymbol{=}{\mathrel}{legacymaths}{61}
       \DeclareMathDelimiter{(}{\mathopen} {legacymaths}{40} 
{largesymbols}{0}
       \DeclareMathDelimiter{)}{\mathclose}{legacymaths}{41} 
{largesymbols}{1}
       \DeclareMathDelimiter{[}{\mathopen} {legacymaths}{91} 
{largesymbols}{2}
       \DeclareMathDelimiter{]}{\mathclose}{legacymaths}{93} 
{largesymbols}{3}
       \DeclareMathDelimiter{/}{\mathord}{legacymaths}{47} 
{largesymbols}{14}
       \DeclareMathSymbol{\mathdollar}{\mathord}{legacymaths}{36}

were done because LaTeX expects to find some characters in maths at  
specific code points, corresponding to the position of these  
characters in the Computer Modern math fonts. Common TrueType or  
OpenType fonts are likely to have the same characters at different  
positions, which may yield unexpected results, such as a "(" in input  
not producing a "(" in output, and requires that you redefine  
yourself these characters to correspond to the appropriate code points.

I don't know where the situation stands right now. I seem to remember  
Will was working on a new package, doing for math fonts what fontspec  
does for text fonts. The problem, though, as I remember it, was that  
this was sort of unsolvable until a decent Unicode math fonts  
existed, and I think Will was waiting for the STIX fonts to come out  
before finishing and releasing the package.

At least that's what I remember vaguely, it haven't looked at the  
problem for a long time. It seems the package is what's now called  
unicode-math, with a link from Will's page <http:// 
www.mecheng.adelaide.edu.au/~will/>.

Bruno Voisin
------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the macostex-archives mailing list