2

I'm using TeXLive 2016 (under OS X). If I run XeLaTeX on the following file (which just modifies the distributed TeX Gyre file test-xelatex-texgyre_pagella_math.tex, I get error

... fontspec error: "Font-not-found"
the font "TeX Gyre Pagella Math" cannot be found.

The source file:

%% This is a test file for LaTeX/Unicode-Math for both LuaLaTeX and XeLaTeX
\documentclass[12pt,a4paper]{article}
\usepackage{amstext}

\usepackage{fontspec}
\setromanfont[Ligatures=TeX]{TeX Gyre Pagella}
\usepackage{unicode-math}

\setmathfont[math-style=ISO,bold-style=ISO,vargreek-shape=TeX]{TeX Gyre Pagella Math}

\begin{document}

\[
\int_{0}^{\infty} e^{-\frac{1}{2} \xi^{2}} d \xi % added by me
\]
%\input math-test.tex % was in original

\end{document}

The system updmap.cfg file does include entry qpl.map.

What else need I do to enable the TeX Gyre Pagella Math font? Is there some additional map file I need to add?

What works so far:

Omitting the options, etc., in the preamble now does allow the Pagella Math font to work:

\documentclass[a4paper, 12pt]{article}

\usepackage{unicode-math}
\setmainfont{TeX Gyre Pagella}
\setmathfont{TeX Gyre Pagella Math}

\begin{document}

\[
\int_{0}^{\infty} e^{-\frac{1}{2} \pi \xi^{2}} d \xi% added by me
\]

\end{document}
  • 1
    updmap is not relevant here. You probably will have to add your texmf tree to your fontconfig configuration tug.org/texlive/doc/texlive-en/texlive-en.html#x1-340003.4.4 or load the font by file name. – Ulrike Fischer Jul 25 '16 at 15:22
  • 1
    You could also make TL fonts visible systemwide with sudo cp $(kpsewhich -var-value TEXMFSYSVAR)/fonts/conf/texlive-fontconfig.conf /etc/fonts/conf.d/09-texlive.conf and sudo fc-cache -fsv. – Paulo Cereda Jul 25 '16 at 16:07
  • 1
    Can you see the fonts in Font Book? If not try opening the source .otf files with Font Book and pressing the "install" button. – Thruston Jul 25 '16 at 16:36
  • In Font Book I see TeX Gyre Pagella Regular, Italic, Bold, and Bold Italic -- each with 2 copies: ` /Users/murray/Library/Fonts/texgyrepagella-regular.otf (active copy)` and /Library/Fonts/TeX Gyre/texgyrepagella-regular.otf (inactive copy). But I do not see any font identified as "TeX Gyre Pagella Math". The text TeX Gyre Pagella fonts are working under XeLaTeX; it's only the corresponding math fonts that are not. – murray Jul 25 '16 at 17:04
  • 1
    Can you try \setmathfont[math-style=ISO,bold-style=ISO,vargreek-shape=TeX]{texgyrepagella-math.otf}? – egreg Jul 25 '16 at 17:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.