1

I want to use the palatino package in XeLaTeX but I often use accented letters so I also load the package fontspec. However, after loading the fontspec package I get the error:

LaTeX Font Warning: Font shape 'EU1/ppl/m/n' undefined using 'EU1/lmr/m/n' instead on input line 10.

And even without the fontspec package the math symbols are in not in the desired palatino font.

Thanks for any suggestions.

1
  • You need to use Unicode math
    – Thruston
    Commented Apr 25, 2016 at 18:50

1 Answer 1

3

If you don't already have them, then install Tex Gyre Pagella and TeX Gyre Pagella Math from the TeX Gyre project and then you can do this:

\documentclass{article}
\usepackage{unicode-math}
\setmainfont{TeX Gyre Pagella}
\setmathfont{TeX Gyre Pagella Math}
\begin{document}
Some Unicode maths: $x ∈ ℕ$ in a Palatino-like font.
\end{document}

Run with xelatex to get:

enter image description here

Note that unicode-math package loads fontspec automatically.

5
  • Is there an easy way to install these fonts?
    – David
    Commented Apr 25, 2016 at 19:18
  • Sure - it depends on your platform - for OSX just open the downloaded OTF files in Font Book and click on the little button at the bottom of the preview that says "Install Font". For Linux try this answer. For Windows, I'm afraid I no longer know.
    – Thruston
    Commented Apr 25, 2016 at 22:24
  • @David You don't need to install them if you have a current TeX installation and fontconfig is setup to recognise the relevant TeX font directories. (Typically Linux systems are set up like this. I don't know about OS X or other Unix-type systems, but they mostly use fontconfig so it should be easy to make any required change. No idea about Windows even if it uses fontconfig.)
    – cfr
    Commented Apr 26, 2016 at 1:24
  • And how to use the ams package with the unicode-math?
    – David
    Commented Apr 26, 2016 at 11:06
  • @David add \usepackage{mathtools} before \usepackage{unicode-math}.
    – Thruston
    Commented Apr 26, 2016 at 11:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .