Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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)?

share|improve this question
    
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

1 Answer 1

up vote 6 down vote accepted

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.)

share|improve this answer
    
Late comment, but why would you prefer Gyre Pagella to mathpazo? –  Dennis Feb 26 at 0:08
1  
@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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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