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.

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

share|improve this question
2  
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
add comment

1 Answer

up vote 0 down vote accepted

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.

share|improve this answer
2  
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
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.