[OS X TeX] MathTimePro2 and Xelatex

R. Vijay Krishna rvk at unc.edu
Fri Sep 17 20:16:27 EDT 2010

Hi Dennis,

The following works for me. 

%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode




\setmainfont[Mapping=tex-text,Numbers=Lining,Scale=1.0]{Arrus BT}

$\det A=3$ $\max x$ 



If I load MTPro2 before the font Arrus, det and max are in Computer Modern.  If I load it after, the operators are in the text font.  I think this is as it should be.

Hope this helps.


On Sep 17, 2010, at 12:57 PM, Dennis Kletzing wrote:

> Vijay:
> I tried loading mtpro2 after the fontspec package but it wouldn't load. The fontspec has to load after mtpro2 or it gives a clash error. But I did discover that if you put the line
> \DeclareSymbolFont{operators}   {\encodingdefault}{\rmdefault}{m}{n}
> (taken from the mtpro2 package) after all of the packages load, then everything is fine. It looks like something in the fontspec[no-math] package is turning off the font controls for the operators.
> --
> Dennis
> On Sep 16, 2010, at 11:15 PM, R. Vijay Krishna wrote:
>> On Sep 16, 2010, at 10:22 PM, Dennis Kletzing wrote:
>>> I just realized in the sample code that I forgot to load the mathtime pro fonts. It has to load before the fontspec package. The sample should read:
>>> %!TEX TS-program = xelatex
>>> %!TEX encoding = UTF-8 Unicode
>>> \begin{documentlcass}
>>> \usepackage{mtpro2}
>>> \usepackage{fontspec}
>>> \usepackage{xltxtra,xunicode}
>>> \defaultfontfeatures{Mapping=tex-text}
>>> \setromanfont[Mapping=tex-text]{Times}
>>> \setmathrm{Times}
>>> $\det A=3$ $\max x$ 
>>>  test 
>>> {\boldmath $\det A$}
>>> \end{document}
>>> --
>>> Dennis
>> I think you should load the MTPro2 fonts after declaring fonts via fontspec, which will allow MTPro2 to use the text fonts for operators (sin, log, max etc).  
>> Vijay----------- Please Consult the Following Before Posting -----------
>> TeX FAQ: http://www.tex.ac.uk/faq
>> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
>> List Archive: http://tug.org/pipermail/macostex-archives/
>> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
>> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
> <ATT00001..c>

More information about the MacOSX-TeX mailing list