# To Install Latin Modern Math font in OS X

I want to have the codes of the project GUST in my OS X. Franck indicates here that the definite way is to download those fonts from there and install. However, I would like to find some packaged version because this is so standard tool. The fonts were removed from MacTeX 2015, while they were in MacTeX 2013. I could not find the fonts in homebrew.

## Test code

\documentclass{article}
\usepackage{fontspec}
\usepackage{polyglossia} % also loads package fontspec
\usepackage{unicode-math} % if you also need maths
\setmathfont{Latin Modern Math}
\begin{document}
$\not\to$
\end{document}


giving font-not-found error. Disabling the line \setmathfont{Latin Modern Math} gives the bad arrow which I do not want to have:

## Installing fonts manually

I downloaded the fonts here from the GUST project. I added the fonts to my system by opening fontbook and adding there the fonts directly. However, there is no Latin Modern Math in the package:

How can you install Modern Latin Math font in OS X?

• Continued from first comment... I unzipped the archive and used Add Fonts... to select all 72 files and that was that. – user3439894 Sep 15 '15 at 2:56
• I added the ways to illustrate that the package does not contain Latin Modern Math font. Most others however. Can you replicate? – Léo Léopold Hertz 준영 Sep 15 '15 at 11:41
• Can't you get it at gust.org.pl/projects/e-foundry/lm-math/download/index_html – Tom Gewecke Sep 15 '15 at 12:29
• @TomGewecke I did it but it did not solve the misaligned line of the arrow. I do not understand what causes it, since the font should solve the problem. – Léo Léopold Hertz 준영 Sep 15 '15 at 13:12

I've also noticed The Latin Modern fonts are not installed to OS X with the MacTeX2015 distibution.

The LM fonts (also the math font) are installed in the tex distribution under: /usr/local/texlive/2015/texmf-dist/fonts/opentype/public/lm and /usr/local/texlive/2015/texmf-dist/fonts/opentype/public/lm-math

To use these font's throughout OS X there is no need to reinstall them, you can link these fonts to your Fonts in OS X as follows:

ln -s /usr/local/texlive/2015/texmf-dist/fonts/opentype/public/lm/ '/Library/Fonts/Latin Modern'
ln -s /usr/local/texlive/2015/texmf-dist/fonts/opentype/public/lm-math/ '/Library/Fonts/Latin Modern Math'


Note: This was inspired by the comments on this question.

• Just realised it might be even better to link them to your user fonts in ~/Library/Fonts – lab Feb 1 '16 at 15:14
• Thank you for your answer! It is logical and better than new installation. – Léo Léopold Hertz 준영 Feb 1 '16 at 15:17
• Or, import the font from the texlive location into Font Book: Click on the '+' symbol (or menu File > Add Fonts... or shortcut &#8984;-O) and then click SHIFT-CMD-G (Go to Folder) in the file selection dialog to get a text field where you can enter /usr/local/texlive/2015/texmf-dist/fonts/opentype/public/ and then select both, lm and lm-math folders. – Linda May 11 '16 at 12:55