# Math and Times font

I am trying to use the Times font for normal text and variables, and the default math font (CMR) for math. I tried using the Times package. This partially solves the problem. But I want the text in math (by which I mean English alphabet and numbers other than greek, operators etc) to be in the Times font. How do I do this? Any comments or suggestion is appreciated.

For further clarity see this:

EDIT: There seems to be a commercial font used by many journals called MathTime. Maybe this is the one that I saw.

-
According to the attached picture you don not want CM in math mode. The second equation is typeset with CM. That contradicts your descriptions in your question. –  Thorsten Donig Jan 25 '11 at 18:26
@Thorsten Donig: I do want CM in math mode! But only for greek symbols, operators etc. I have updated the image now. –  Bernhard Heijstek Jan 25 '11 at 18:42
Math Time uses Times for all the math, even the greek, as it should (mixing Computer Modern and Times is not a good idea as they are very different in both weight and style). You can download the free "Lite" version of Math Time on PCTeX's website if you want to try it: pctex.com/mtpro2.html#MTPro2_Lite –  Philippe Goutet Jan 27 '11 at 8:26

You have to redefine the greek letters from the cmm font. It is simple because upper and lower greek letters are defined from 0..40 (decimal) in the cmmi font.

\documentclass{scrartcl}
\usepackage[T1]{fontenc}
\usepackage{mathptmx}

\DeclareSymbolFont{Letters}{OML}{cmm}{m}{it}
\DeclareMathSymbol{\Gamma}{\mathalpha}{Letters}{0}
\DeclareMathSymbol{\Delta}{\mathalpha}{Letters}{1}
\DeclareMathSymbol{\Theta}{\mathalpha}{Letters}{2}
\DeclareMathSymbol{\Lambda}{\mathalpha}{Letters}{3}
\DeclareMathSymbol{\Xi}{\mathalpha}{Letters}{4}
\DeclareMathSymbol{\Pi}{\mathalpha}{Letters}{5}
\DeclareMathSymbol{\Sigma}{\mathalpha}{Letters}{6}
\DeclareMathSymbol{\Upsilon}{\mathalpha}{Letters}{7}
\DeclareMathSymbol{\Phi}{\mathalpha}{Letters}{8}
\DeclareMathSymbol{\Psi}{\mathalpha}{Letters}{9}
\DeclareMathSymbol{\Omega}{\mathalpha}{Letters}{10}
\DeclareMathSymbol{\alpha}{\mathalpha}{Letters}{11}
\DeclareMathSymbol{\beta}{\mathalpha}{Letters}{12}
\DeclareMathSymbol{\gamma}{\mathalpha}{Letters}{13}
% [...] and the other greek letters
\begin{document}

$f(\alpha)=\beta$

\end{document}

-
That seems to work nicely. But can I map the numbers and letters instead of greek? That would be easier I think. –  Bernhard Heijstek Jan 25 '11 at 19:40
yes, no problem. Depends to that what was defined before. For a letter you can make it easier with \DeclareMathSymbol{a}{\mathalpha}{Letters}{a}. For the numbers you have to use a font with upright letters {cmm}{m}{n} –  Herbert Jan 25 '11 at 20:04

Use the mathptmx package which supersedes times and provides math support for Times.

 \usepackage{mathptmx}


Alternatively, try txfonts for Times in maths. Perhaps have a look at this contribution by frabjous.

 \usepackage{txfonts}

-
mathptmx and txfonts package doesn't seem to do the job. It renders both math and normal text in Times. And greek in Times looks ugly! –  Bernhard Heijstek Jan 25 '11 at 18:21
Mixing two different serif fonts in math seems a bit strange to me. But you could use \text of amsmath or \textrm and \mathrm. –  Stefan Kottwitz Jan 25 '11 at 18:25
yeah, it does seem strange, but it looks much more pleasing –  Bernhard Heijstek Jan 25 '11 at 18:28
Do take note that mathptmx and txfonts use different fonts for Greek, even though both use Times fonts for text and Latin letters in math. –  frabjous Jan 25 '11 at 22:30

Another solution: the very new package mathastext`, released on CTAN today, allows to use the text font in math mode, i.e. for text, letters, variables. This would allow to use Times in math mode together with Greek and other math fonts.

-
Under XeLaTeX, this has proven the most effective solution for me. It was not installed on my system (I use primarily TeXShop on Mac OS X) and I was stunned to see how many new and updated packages were installed when I ran tlmgr. –  brannerchinese May 3 '11 at 12:14

There seems to be a LaTeX style file for doing exactly the same thing. It replaces all the greek symbols, operators etc. with CMR font giving you a mixed Times+CMR font style. The package is at:

http://hea-www.harvard.edu/~alexey/emulateapj/apjfonts.sty

-