[OS X TeX] math Cambria font

Ross Moore ross.moore at mq.edu.au
Wed Oct 7 01:57:12 CEST 2020


Hi Ettore,

On 7 Oct 2020, at 10:46 am, Ettore Aldrovandi <ealdrov at math.fsu.edu<mailto:ealdrov at math.fsu.edu>> wrote:

Hello Ross and Juan,

I (unfortunately must) have a recent version of Microsoft Word, fully licensed through my university. The fonts, including Cambria Math, are within the application bundle. So they’re in /Applications/Microsoft Word.app/Contents/Resources/DFonts<https://protect-au.mimecast.com/s/WVk4CQnM1Wf4Q2pZSxcCQB?domain=word.app> .  It may or may not be legal to copy them elsewhere for use by another application.

You should be able to tell FontBook that this is where they are.
No copying required.
And no, I don’t think the licensing prevents you using them in other non-Microsoft applications.

Launch FontBook, and use “Add Fonts…” or whatever is the menu item.
You know the directory path, so you should be able to get there to select those (and other) fonts.


Hope this helps.

Ross


That being said, I find surprising the NSF requires math to be typeset in Cambria Math.

—Ettore

Ettore Aldrovandi
Department of Mathematics, Florida State University
1017 Academic Way                *   http://www.math.fsu.edu/~ealdrov<https://protect-au.mimecast.com/s/cTgLCRONg6sP6M1ZUNLHXm?domain=math.fsu.edu>
Tallahassee, FL 32306-4510, USA * * aldrovandi at math dot fsu dot edu

On Oct 6, 2020, at 16:43, Ross Moore <ross.moore at mq.edu.au<mailto:ross.moore at mq.edu.au>> wrote:

Hello Juan,

On 7 Oct 2020, at 7:20 am, juan tolosa via MacOSX-TeX <macosx-tex at email.esm.psu.edu<mailto:macosx-tex at email.esm.psu.edu>> wrote:

That is exactly what I did: I use TeXShop, so I chose LuaLaTeX as the typesetting tool, and I got the message that the MathCambria font could not be found. I tried XeLaTeX, also within TeXShop, and got the same message. Following other suggestions, I looked at the folder Library -> Fonts, and it seems to be empty. I use a Mac, not a PC, but I assumed that this font had been installed. How does one go about installing it?

mathCambria is a Microsoft creation, surely.

On my MacBook it is in    /Library/Fonts/Microsoft/Cambria Math.ttf .

(base) SCI-4:char200B ross$ ls -l  /Library/Fonts/Microsoft/Cambria*
-rw-rw-r--@ 1 root  admin   805864  2 Jun  2010 /Library/Fonts/Microsoft/Cambria Bold Italic.ttf
-rw-rw-r--@ 1 root  admin   763652  2 Jun  2010 /Library/Fonts/Microsoft/Cambria Bold.ttf
-rw-rw-r--@ 1 root  admin   827080  2 Jun  2010 /Library/Fonts/Microsoft/Cambria Italic.ttf
-rw-rw-r--@ 1 root  admin  1408700  2 Jun  2010 /Library/Fonts/Microsoft/Cambria Math.ttf
-rw-rw-r--@ 1 root  admin  1405752 19 Jul  2010 /Library/Fonts/Microsoft/Cambria.ttf


The student is submitting a proposal to NSF, and it appears to be one of the requisites (that mat be typeset using Cambria Math, that is).

It is practically impossible to avoid Microsoft entirely, within an academic setting.
You should be able to get a (relatively) cheap license via your institution,
or use a machine that has it installed already.


Hope this helps.

Ross


Thanks,
Juan

On Oct 5, 2020, at 8:42 PM, Elliott Roper <elliott at yrl.co.uk<mailto:elliott at yrl.co.uk>> wrote:



On 6 Oct 2020, at 01:09, juan tolosa via MacOSX-TeX <macosx-tex at email.esm.psu.edu<mailto:macosx-tex at email.esm.psu.edu>> wrote:

From: juan tolosa <juantolo at me.com<mailto: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<mailto:macosx-tex at email.esm.psu.edu>>
Cc: juan tolosa <juantolo at me.com<mailto: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




----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq<https://protect-au.mimecast.com/s/7BMDCVARmOHjJW6QCy6pTF?domain=tex.ac.uk>
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/<https://protect-au.mimecast.com/s/Hw3ZCWLVn6iwEMKounaCgD?domain=sites.esm.psu.edu/>
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx<https://protect-au.mimecast.com/s/G5_RCXLW6Di7Q8RrImDfK9?domain=dir.gmane.org>
               https://email.esm.psu.edu/pipermail/macosx-tex/<https://protect-au.mimecast.com/s/FCrcCYW86Eso7nqBIZrSGc?domain=email.esm.psu.edu/>
TeX on Mac OS X Website: http://mactex-wiki.tug.org/<https://protect-au.mimecast.com/s/ZGlzCZY146sn6kLBcX7PTW?domain=mactex-wiki.tug.org/>
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex<https://protect-au.mimecast.com/s/jVA7C1WLjwsw4PoWuOdsX0?domain=email.esm.psu.edu>

----------- Please Consult the Following Before Posting -----------
TeX FAQ: https://protect-au.mimecast.com/s/hSQLCQnM1Wf4QK0XIxiQ4g?domain=tex.ac.uk<https://protect-au.mimecast.com/s/7BMDCVARmOHjJW6QCy6pTF?domain=tex.ac.uk>
List Reminders and Etiquette: https://protect-au.mimecast.com/s/O6K-CRONg6sP6p2GsN6yFG?domain=sites.esm.psu.edu/<https://protect-au.mimecast.com/s/Hw3ZCWLVn6iwEMKounaCgD?domain=sites.esm.psu.edu/>
List Archives: https://protect-au.mimecast.com/s/ze__CVARmOHjJEG2uyK5jE?domain=dir.gmane.org<https://protect-au.mimecast.com/s/G5_RCXLW6Di7Q8RrImDfK9?domain=dir.gmane.org>
               https://protect-au.mimecast.com/s/z1uCCWLVn6iwEQJ6Hn3nPR?domain=email.esm.psu.edu/<https://protect-au.mimecast.com/s/FCrcCYW86Eso7nqBIZrSGc?domain=email.esm.psu.edu/>
TeX on Mac OS X Website: https://protect-au.mimecast.com/s/sdLGCXLW6Di7Qgw4tmYsPu?domain=mactex-wiki.tug.org/<https://protect-au.mimecast.com/s/ZGlzCZY146sn6kLBcX7PTW?domain=mactex-wiki.tug.org/>
List Info: https://protect-au.mimecast.com/s/7l0WCYW86Eso7vrDtZtul7?domain=email.esm.psu.edu<https://protect-au.mimecast.com/s/jVA7C1WLjwsw4PoWuOdsX0?domain=email.esm.psu.edu>


Dr Ross Moore
Department of Mathematics and Statistics
12 Wally’s Walk, Level 7, Room 734
Macquarie University, NSW 2109, Australia
T: +61 2 9850 8955  |  F: +61 2 9850 8114
M:+61 407 288 255  |  E: ross.moore at mq.edu.au<mailto:ross.moore at mq.edu.au>
http://www.maths.mq.edu.au<http://www.maths.mq.edu.au/>
<image001.png>
CRICOS Provider Number 00002J. Think before you print.
Please consider the environment before printing this email.

This message is intended for the addressee named and may
contain confidential information. If you are not the intended
recipient, please delete it and notify the sender. Views expressed
in this message are those of the individual sender, and are not
necessarily the views of Macquarie University.<http://mq.edu.au/>
<http://mq.edu.au/>

----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq<https://protect-au.mimecast.com/s/7BMDCVARmOHjJW6QCy6pTF?domain=tex.ac.uk>
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/<https://protect-au.mimecast.com/s/Hw3ZCWLVn6iwEMKounaCgD?domain=sites.esm.psu.edu/>
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx<https://protect-au.mimecast.com/s/G5_RCXLW6Di7Q8RrImDfK9?domain=dir.gmane.org>
               https://email.esm.psu.edu/pipermail/macosx-tex/<https://protect-au.mimecast.com/s/FCrcCYW86Eso7nqBIZrSGc?domain=email.esm.psu.edu/>
TeX on Mac OS X Website: http://mactex-wiki.tug.org/<https://protect-au.mimecast.com/s/ZGlzCZY146sn6kLBcX7PTW?domain=mactex-wiki.tug.org/>
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex<https://protect-au.mimecast.com/s/jVA7C1WLjwsw4PoWuOdsX0?domain=email.esm.psu.edu>

----------- Please Consult the Following Before Posting -----------
TeX FAQ: https://protect-au.mimecast.com/s/7BMDCVARmOHjJW6QCy6pTF?domain=tex.ac.uk
List Reminders and Etiquette: https://protect-au.mimecast.com/s/Hw3ZCWLVn6iwEMKounaCgD?domain=sites.esm.psu.edu/
List Archives: https://protect-au.mimecast.com/s/G5_RCXLW6Di7Q8RrImDfK9?domain=dir.gmane.org
               https://protect-au.mimecast.com/s/FCrcCYW86Eso7nqBIZrSGc?domain=email.esm.psu.edu/
TeX on Mac OS X Website: https://protect-au.mimecast.com/s/ZGlzCZY146sn6kLBcX7PTW?domain=mactex-wiki.tug.org/
List Info: https://protect-au.mimecast.com/s/jVA7C1WLjwsw4PoWuOdsX0?domain=email.esm.psu.edu


Dr Ross Moore
Department of Mathematics and Statistics
12 Wally’s Walk, Level 7, Room 734
Macquarie University, NSW 2109, Australia
T: +61 2 9850 8955  |  F: +61 2 9850 8114
M:+61 407 288 255  |  E: ross.moore at mq.edu.au<mailto:ross.moore at mq.edu.au>
http://www.maths.mq.edu.au
[cid:image001.png at 01D030BE.D37A46F0]
CRICOS Provider Number 00002J. Think before you print.
Please consider the environment before printing this email.

This message is intended for the addressee named and may
contain confidential information. If you are not the intended
recipient, please delete it and notify the sender. Views expressed
in this message are those of the individual sender, and are not
necessarily the views of Macquarie University. <http://mq.edu.au/>
<http://mq.edu.au/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/macostex-archives/attachments/20201006/76e85272/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 4605 bytes
Desc: image001.png
URL: <https://tug.org/pipermail/macostex-archives/attachments/20201006/76e85272/attachment-0001.png>
-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex


More information about the macostex-archives mailing list.