# How to change the text font without changing the font for equations

How to change the text font in a document to "Times" and keep the font for equations unchanged (i.e Computer Modern)?

-
Welcome to TeX.sx! –  texenthusiast Mar 11 '13 at 3:37
for more text and math font choices `xelatex` and `lualatex` would be well suited compared to `pdflatex` –  texenthusiast Mar 11 '13 at 4:45
As it stands this question is too vague. We assume by default you are using LaTeX, but which engine are you using? which fonts would you like to use? As wasteofspace explains below, there are many packages for fonts, some only change the text. –  Andrew Swann Mar 11 '13 at 12:44

One thing I like to do, which might be related to what you want, is to put this in my header:

``````\renewcommand{\rmdefault}{ptm}
``````

It changes all my body text to Times, but is not the same as

``````\usepackage{times}
``````

because it doesn't change the typewriter font to Courier, and it doesn't change the sans-serif font to Helvetica; it leaves both of those as the standard Computer Modern versions.

-
without a minimal example, we don't know what you are doing to cause the effect you want to avoid. note that, by default, text and maths use different fonts, anyway; some text font packages change both at the same time, but without an example we can't guess what you are after. –  wasteofspace Mar 11 '13 at 10:53
I wanted to change the font for all the text in the document to Times, except for the default font used for equations which I wanted to remain in Computer Modern. The answer by John Wickerson does exactly that. Thanks and sorry for not having been very explicit. –  Ultimabstract Mar 12 '13 at 4:57