[Tex/LaTex] Should I worry about the new math fonts when using pdfLaTeX

computer-modernfontstex-gyre-math

I watch the CTAN Announcement RSS feed as a way of finding out about cool new packages. Recently I saw two announcements; The release of lm-math and tex-gyre-math. I use both Latin Modern (via lmodern or cfr-lm ) and Times (via loading mathptmx followed by tgtermes) quite a lot. Do these new packages contain anything useful for me? Should I be loading my fonts in a different way now? An older question seems to imply that these are for XeLaTeX and LuaTeX, since they are in OTF format, not Type 1. Is there an easy way I can use these updated fonts with PDFLaTeX (Or should I refer to my old question?) If there is, should I worry about trying to use them?

Best Answer

The tex-gyre-math release contains only OpenType fonts:

Description:

TeX-Gyre-Math is to be a collection of maths fonts to match the text fonts of the TeX-Gyre collection. The collection will be made available in OpenType format, only; fonts will conform to the developing standards for OpenType maths fonts. At present, TeX-Gyre-Math-Pagella and TeX-Gyre-Math-Termes are available.

So they are only (directly) usable with XeLaTeX or LuaLatex (and require the package unicode-math). I tried them this morning with the following, and here is what I do to load the fonts (I also load the TeX Gyre Termes font for text):

\documentclass{article}
\usepackage{ifluatex}
\usepackage{unicode-math} 
\ifluatex
\setmainfont[Ligatures=TeX]{TeX Gyre Termes}
\setmathfont{TG Termes Math}
\else 
% xetex
\setmainfont[ExternalLocation,
             Mapping=tex-text,
             BoldFont=texgyretermes-bold,
             ItalicFont=texgyretermes-italic,
             BoldItalicFont=texgyretermes-bolditalic]{texgyretermes-regular}
\setmathfont[ExternalLocation]{texgyretermes-math}
\fi
\begin{document}
$\cos(x)=\sin(x)$
\end{document}

Perhaps there is a simpler way to let XeTeX find the fonts.

Note that there are no bold versions of the math fonts (as far as I can tell).

Related Question