Zulip Chat Archive

Stream: FLT

Topic: Local LaTeX installation issues


Pietro Monticone (May 01 2024 at 20:17):

I've tried to locally compile print.tex and it returns the following error:

! Package fontspec Error: The font "Latin Modern Math" cannot be found.

For PR FLT#36, in order to take a look at the print.pdf, I had to temporarily comment out the font specifications in print.tex as follows:

% [...]

\usepackage[warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math}
\usepackage{fontspec}
% \setmathfont{Latin Modern Math}
% \setmathfont[range=\varnothing]{Asana-Math.otf}
% \setmathfont[range=\pitchfork]{Asana-Math.otf}
% \setmathfont[range=\intprod]{Asana-Math.otf}
% \setmathfont[range=\int]{Latin Modern Math}

% [...]

Does anybody know how to solve this problem?

Pietro Monticone (May 01 2024 at 20:23):

I had the same problem for the blueprints of other projects of course. I've opened related issue at FLT#37, but maybe I'm just missing something trivial here.

I've already checked if the font package is properly installed with

tlmgr info lm-math

and, as expected, it returned the usual:

package:     lm-math
category:    Package
shortdesc:   OpenType maths fonts for Latin Modern
longdesc:    Latin Modern Math is a maths companion for the Latin Modern family of fonts, in OpenType format. For use with LuaLaTeX or XeLaTeX, support is available from the unicode-math package.
installed:   Yes
revision:    67718
sizes:       doc: 149k, run: 721k
relocatable: No
cat-version: 1.959
cat-license: gfl
cat-topics:  font font-maths font-otf
cat-contact-home: https://www.gust.org.pl/projects/e-foundry/latin-modern
collection:  collection-fontsrecommended

Mauricio Collares (May 01 2024 at 20:32):

The following works for me in another repo: If it doesn't exist, create an empty print directory alongside the src directory. Then, in the src directory, run latexmk.

Pietro Monticone (May 01 2024 at 20:39):

Mauricio Collares said:

The following works for me in another repo: If it doesn't exist, create an empty print directory alongside the src directory. Then, in the src directory, run latexmk.

Thank you for your reply. I've done what you have suggested, but it still returns the same error.

Patrick Massot (May 01 2024 at 21:34):

This is clearly a LaTeX installation issue that has nothing to do with leanblueprint.

Eric Wieser (May 01 2024 at 21:37):

Perhaps setting up a gitpod environment that includes a suitable set of latex tools would be useful to the project in the longer run, if the expectation is that contributors modify the blueprint.

Utensil Song (May 01 2024 at 22:57):

I had the similar issue on Mac with brew-installed texlive, I used the workaround \setmainfont{latinmodern-math.otf}.

Pietro Monticone (May 01 2024 at 23:11):

Utensil Song said:

I had the similar issue on Mac with brew-installed texlive, I used the workaround \setmainfont{latinmodern-math.otf}.

It worked! Thank you very much.


Last updated: May 02 2025 at 03:31 UTC