44

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?

2
  • 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. Jul 30, 2010 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. Mar 13, 2013 at 8:15

6 Answers 6

39

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.

3
  • Most up to date? Isn't txfontsb considerably newer than mathptmx?
    – frabjous
    Aug 11, 2010 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, 2010 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, 2010 at 3:03
29

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.

2
  • This caused an error "! LaTeX Error: Command \openbox already defined. Or name \end... illegal, see p.192 of the manual."
    – Jeff
    Jan 13, 2015 at 19:47
  • @Jeff What exactly, i.e., do you have an MWE?
    – mafp
    Jan 13, 2015 at 23:12
9

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}
1
9

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.

4

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

0

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.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.