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)?
Asked
Active
Viewed 5,979 times
14
1 Answers
15
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.)
Joseph Wright
- 259,911
- 34
- 706
- 1,036
-
-
1@Dennis
mathpazois 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 bymathpazo) are addressed. The Gyre font covers text mode, so loadingmathpazofor math mode is still useful. (You could also consider usingunicode-mathand the TeX Gyre Palladio math font.) – Joseph Wright Feb 26 '14 at 06:58 -
Just tried this example, and strangely, it built with
lualatex, butxelatexfailed withfontspec error: "font-not-found"like in http://tex.stackexchange.com/questions/118944/xelatex-does-not-find-texgyreterms. I looked uptexgyrepagella-regular.otfon my system, and I could only find it in~/.fonts?! So, turns out I had totlmgr install tex-gyrebefore I could run this example. Cheers! – sdaau Oct 15 '14 at 15:22
[no-math]option of fontspec. – Ulrike Fischer Apr 03 '12 at 13:38