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.

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?

share|improve this question
1  
Short answer: no, no short way to use them with pdflatex. –  egreg Oct 27 '12 at 22:04
add comment

1 Answer 1

up vote 7 down vote accepted

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

share|improve this answer
    
So new fonts....designed for academic use (who else needs that many math symbols?)...that you can't publish as journals demand pdftex. sigh –  Canageek Oct 27 '12 at 22:12
    
@Canageek Journals either use TeX + CM or Times, or non-TeX solutions, for which TeX-only fonts don't help anyway :-) Think time-scale: these fonts will be around a long time, and there is a lot of interest in math typesetting beyond the TeX world. –  Joseph Wright Oct 27 '12 at 22:18
    
@jfbu There is no concept of a bold version of a math font - bold is used to alter meaning, so is quite intentionally available on a per-symbol basis only. (See also question about sanserif math fonts.) –  Joseph Wright Oct 27 '12 at 22:20
    
@JosephWright: Bold math fonts can be of use in all bold situation e.g. in titles or theorems (last year I had a math book typeset with metal type in Russia where all theorems were set in bold including math), XITS and Lucida Math has bold fonts for that reason. –  Khaled Hosny Oct 27 '12 at 22:45
    
If you install the fonts system wide, you can load them by font name. I hope at some point to make XeTeX able to load fonts installed in TeX tree by font name too, LuaLaTeX already do. –  Khaled Hosny Oct 27 '12 at 22:47
show 8 more comments

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.