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.

  • You need to use Unicode math – Thruston Apr 25 '16 at 18:50
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.

  • Is there an easy way to install these fonts? – David Apr 25 '16 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 Apr 25 '16 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 Apr 26 '16 at 1:24
  • And how to use the ams package with the unicode-math? – David Apr 26 '16 at 11:06
  • @David add \usepackage{mathtools} before \usepackage{unicode-math}. – Thruston Apr 26 '16 at 11:15

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.