# How to use Palatino-like math fonts in XeLaTeX?

After some fighting with Asana Math, I thought that I could give a Palatino-like math font a chance. So the questions are: (1) what exactly is the difference between pxfonts and mathpazo and (2) how to enable these in XeLaTeX (\usepackage{mathpazo} seemed to break text font, which is Linux Libertine using fontspec; in case this is relevant, I can provide a MWE)?

-
Load fontspec after mathpazo or pxfonts. In the second case you probably will have to use the [no-math] option of fontspec. –  Ulrike Fischer Apr 3 '12 at 13:38

If you want to load 'traditional' font packages and fontspec, load the latter first as it automatically loads either Latin Modern or Computers Modern, depending on the package options given.

\usepackage{fontspec}
\usepackage{mathpazo}

However, I would favour loading mathpazo purely for the math bits-and-pieces, and load TeX Gyre Pagella (their Palatino clone) as an OTF

\documentclass{article}
\usepackage{fontspec}
\usepackage{mathpazo}
\setmainfont
[ BoldFont       = texgyrepagella-bold.otf ,
ItalicFont     = texgyrepagella-italic.otf ,
BoldItalicFont = texgyrepagella-bolditalic.otf ]
{texgyrepagella-regular.otf}
\begin{document}
The quick brown fox jumps over the lazy dog.
$y = mx + c$
\end{document}

(I've taken a 'defensive' position with the font, and loaded using the file names as installed by TeX Live in the texmf tree. If you have the font installed for general use in your system font folder, it should load fine by name.)

-
Late comment, but why would you prefer Gyre Pagella to mathpazo? –  Dennis Feb 26 at 0:08
@Dennis mathpazo is a 'virtual font', built up from various bits and pieces to give (reasonably) good coverage of glyphs. The TeX Gyre project have worked to have a more 'consistent' font where various gaps/issues in the URW Palatino clone (used by mathpazo) are addressed. The Gyre font covers text mode, so loading mathpazo for math mode is still useful. (You could also consider using unicode-math and the TeX Gyre Palladio math font.) –  Joseph Wright Feb 26 at 6:58