10

Is there any way to change main font to times new roman in Pdf Latex. I search over internet. And what I saw was how to change font with xelatex or lualatex, not pdflatex.

doncherry
  • 54,637
  • 6
    Try adding \usepackage{newtxtext} to your document preamble. It won't be Times New Roman though, but a similarly looking version. – Werner Apr 02 '14 at 19:05
  • 2
    \usepackage{times} (for pure text) or \usepackage{mathptmx} (for text and math font) will also work. – Mico Apr 02 '14 at 19:11
  • 1
    To expand on what @Werner says, the glyphs will be 'right' but the font name won't be: names can be legally protected. – Joseph Wright Apr 02 '14 at 19:11
  • Further expansion on @Werner's comment: Also do \usepackage{newtxmath} for matching mathematical symbols if your document contains math. – Paul Gessler Apr 02 '14 at 19:12
  • @mico times is deprecated and should not be used. See l2tabu. – cfr Apr 02 '14 at 19:29
  • @cfr - All that the times package really does is to run \renewcommand{\rmdefault}{ptm}, and similar commands to set the sans serif default to Helvetica and the teletype default to Courier. As I tried to indicate in the initial comment, the times package is OK if (and only if...) if the document is pure text, no math. – Mico Apr 02 '14 at 19:36
  • @Mico It does not scale the fonts appropriately. So it is not equivalent to the recommended settings even for documents which contain no maths. The recommendation is to scale Helvetica at .90 to match Times and Courier. – cfr Apr 02 '14 at 20:40
  • @cfr I know times is deprecated, but in my case I need only the text to be in Times, while the math still in CMR. How to do that with a non-obsolete package? – Jim Raynor Feb 27 '15 at 16:55
  • @JimRaynor That will look very odd.... But you would be best advised to ask a new question. You can do it if you really must do it by scaling Helvetica and loading Times and Courier by hand. But it is still going to look peculiar with maths in CM. – cfr Feb 28 '15 at 15:52
  • Not strange at all, I'm familiar with IEEE style, which they use Times for text and CMR for math. For my question, simply use \renewcommand{\rmdefault}{ptm} – Jim Raynor Feb 28 '15 at 20:44

1 Answers1

12

\usepackage{times} it works for me.

Update:

It is better to use \usepackage{mathptmx} because times is obsolete according CTAN:

The pack­age is now ob­so­lete, re­placed by the math­ptmx pack­age, which sup­ports Times Ro­man text and (mostly) match­ing math­e­mat­ics.

omar
  • 272
  • 3
    From CTAN's times package page: The pack­age is now ob­so­lete, re­placed by the math­ptmx pack­age, which sup­ports Times Ro­man text and (mostly) match­ing math­e­mat­ics. – Paul Gessler Apr 02 '14 at 19:13
  • 1
    @PaulGessler great! I am using an old version of Ubuntu and I was using an old version of TexLive. I will update the answer. – omar Apr 02 '14 at 19:17
  • Unfortunately, mathptmx doesn't have bold (italic) math fonts. To have bold mathfonts, one must use newtxfonts or the commercial Math Times Pro2. – Bernard Apr 02 '14 at 20:51
  • 1
    Sorry but I already change my font from default miktex font. But I forget the step. What I remember is I uncomment some line in a file under miktex directory. – Mohammad Fajar Apr 02 '14 at 20:56
  • Strange. I love the text to be in Times (as required by faculty) but the math stays in computer modern. mathptmx changes everything to Times... – Jim Raynor Feb 27 '15 at 16:48
  • 3
    Apparently mathptmx is also obsolete. Now newtxtext is the one to go with it seems. – The V Feb 02 '17 at 19:22