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 know that I can put \usepackage{times} in the preamble in order to use the Times font instead of Computer Modern for my document. But this only affects the text; the math is still typeset using Computer Modern. How can I make Latex use Times also for the math?

share|improve this question
2  
The font Times itself doesn't come with any support for maths; the answers below are free maths fonts that go well with Times. –  ShreevatsaR Jul 30 '10 at 19:14
    
There several great answeers below, but just as a side-remark: The LaTeX Font Catalogue is an excellent place to look in situations like this. –  Ipsen Mar 13 '13 at 8:15
add comment

6 Answers 6

up vote 17 down vote accepted

Probably the most common solution at present using free fonts is mathptmx

\usepackage{mathptmx}

This package supersedes times and mathptm.

The commercial mathtime is available in a 'lite' version in a free (cost) package, but you need to pay for the full version. See http://www.pctex.com/mtpro2.html

As noted in the answer by mafp, the newer newtx bundle is now available and addresses issues present in mathptmx.

share|improve this answer
    
Most up to date? Isn't txfontsb considerably newer than mathptmx? –  frabjous Aug 11 '10 at 12:41
    
I can't see any mention of 'Times' in the txfontsb documentation, nor of the range of math support. (The focus seems to be on Greek.) –  Joseph Wright Aug 11 '10 at 15:47
    
It's an extension of the txfonts package, which provides Times in both text and math mode. The documentation may focus on Greek, most likely because that's what's different compared to txfonts. But load the package and you'll see. –  frabjous Aug 12 '10 at 3:03
add comment

If you don't mind using a Times-like font, a different engine, and the not yet officially released TeXLive-2010, then you can try XITS font with LuaLaTeX (my preference) or XeLaTeX:

\documentclass{article}

\usepackage{fontspec}
\usepackage{unicode-math}

\setmainfont{XITS} % you can use any other Times font if you wish
\setmathfont{XITS Math}

\begin{document}
Some text and \(\sqrt{x+y}=z\) equation
\end{document}
share|improve this answer
add comment

In the mean time, two new option for Times have emerges. The newtx package provides both text and math versions for Times via

\usepackage{newtxtext,newtxmath}

The TeX Gyre project supplies TeX Gyre Termes for text to be used with

\usepackage{tgtermes}

and a math version TeX Gyre Termes Math that currently only comes in Open Type Format, and can be used with

\usepackage{unicode-math}
\setmathfont[math-style=ISO,bold-style=ISO,vargreek-shape=TeX]{TG Termes Math}

in LuaTeX or XeTeX, and with

\starttypescript [math][times,termes][all]
    \definefontsynonym[MathRoman][file:texgyretermes-math-1010.otf][features=math\mathsizesuffix]
\stoptypescript

in ConTeXt.

share|improve this answer
add comment

With current TeXLive 2012 and lualatex or xelatex

\documentclass{article}    
\usepackage{unicode-math}
\setmainfont{TeX Gyre Termes}
\setmathfont{TeX Gyre Termes Math}

\begin{document}
Some text and \(\sqrt{x+y}=z\) equation
\end{document}

enter image description here

see package documentation of fontspec for optional arguments to the font setting.

share|improve this answer
add comment

I’ve been using the txfontsb package for Times, though generally I avoid Times. (After reading countless student papers in Times, it grates on me.)

share|improve this answer
add comment

Put

\usepackage[bigsym]{mathptm}

in your preamble. This makes LaTeX use the Times and Symbol fonts for math, except for large symbols (summation, integration, etc.) which look funny in the Postscript Symbol font.

share|improve this answer
4  
According to tug.ctan.org/tex-archive/macros/latex/required/psnfss/… mathptm is "obsolete", you should use mathptmx instead. –  Jukka Suomela Jul 30 '10 at 18:48
add comment

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.