[OS X TeX] math Cambria font

Elliott Roper elliott at yrl.co.uk
Mon Oct 5 20:42:29 EDT 2020



> On 6 Oct 2020, at 01:09, juan tolosa via MacOSX-TeX <macosx-tex at email.esm.psu.edu> wrote:
> 
>> From: juan tolosa <juantolo at me.com>
>> Subject: math Cambria font
>> Date: October 5, 2020 at 7:13:54 PM EDT
>> To: "M. Tamer Özsu via MacOSX-TeX" <macosx-tex at email.esm.psu.edu>
>> Cc: juan tolosa <juantolo at me.com>
>> 
>> A student asked me about how to use the math Cambria font; she needs this as a requirement to submit a paper. I have never tried this, so I used a basic example that I googled:
>> 
>> \documentclass{article}
>> 
>> \usepackage{unicode-math} 
>> \setmathfont{Cambria Math}
>> 
>> 
>> 
>> \begin{document} 
>> 
>> 
>> $a + b$
>> 
>> 
>> \end{document}
>> 
>> Apparently, one needs to typeset this using either LuaLaTeX or XeLaTeX, which I have never used either. (You can see my ignorance here is aismal.) I tried both, but I get the message that the font CambriaMath has not been found.
>> Any advice on what I am doing wrong would be appreciated.
>> Juan
> 

Yes, to set unicode, either a LauLaTeX or XeLaTeX typestting engine is required.

Your example works fine with both.

Setting up your machine to use LuaLaTeX differs between authoring environments. I use AucTex inside Aquamacs (which is not for beginners or even people without a masochistic streak), so I won't bore you with that

TeXShop (1) is a common environment. To get it to use the LuaLaTeX engine is simple.
Open the example in TeXShop. The second item in the menubar, probably defaulting to LaTeX, when clicked displays a choice of engines. Choose LuaLaTeX.

Hit typeset to admire your work.

Your student needs to have Cambria Math somewhere on her Mac. If Font Book can find it, so can LuaLaTeX or XeTeX. It can also find all the fonts that come with TeX Live. I don't have Cambria on my machine so I checked with a commercial font {Arial Unicode MS} and with {XITS Math} which comes with TeX Live.

(1) For complete beginners, find TeXShop in Applications/TeX/TeXShop.app on any Mac that has a current MacTeX Live on it.

Elliott Roper
+44 7454 402200 mobile, facetime
01663 747334 UK landline






More information about the MacOSX-TeX mailing list