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.

This question already has an answer here:

I need to set main font of my document using Times New Roman font. But I just found one solution that is to compile document using xelatex. But my document built since first typing using pdflatex, so when I switch the enggine to xelatex there are so many error I found. And I cannot fix that error immediately. So I need to find solution to set a font to Times New Roman in pdfLatex.

share|improve this question

marked as duplicate by egreg Apr 15 at 18:10

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
There shouldn't be so many problems. Have you checked: 1) your .tex file is utf8 encoded; 2) you don't load the inputenc not the fontenc packages. Also not all functionalities of microtype` are availablewith xelatex. Finally you'd better load polyglossia` rather than babel since the former is specifically designed for xelatex. That's about all, as far as I know. –  Bernard Apr 21 '14 at 22:47
6  
You've already asked a couple of questions about how to load packages that provide Times New Roman fonts under pdfLaTeX. Please be more specific about any problems you're encountering when following the previous suggestions. –  Mico Apr 21 '14 at 23:35
1  
@Bernard Some languages are supported by babel but not polyglossia so this is not an option for all of us! –  cfr Apr 21 '14 at 23:48
1  
@MohammadFajar With regard to your comment on Mario’s answer: I’m afraid you’re unlikely to find a pdfLaTeX package for a Times font that results in the exact same output as using Times New Roman and XeLaTeX. –  doncherry Apr 22 '14 at 8:37
    
Assuming that you really need Times New Roman, and that Times won't do, there are some instructions at this link: spacehorn.com/osx/xtra/tnr.html . I have not attempted this. Note that these instructions are for the Mac, so you may need to adjust for your system if different. –  dedded Nov 6 '14 at 14:16

1 Answer 1

If you are using pdflatex, you can try setting in your preamble:

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{mathptmx}

Something like this would be a MWE where you'll get times new roman as your font for the whole document:

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{mathptmx}

\begin{document}

Hello.  This is in Times New Roman font.

\end{document}
share|improve this answer
    
sory but when I compile my document using mathptmx package, the output was not similar to that in Times News Roman font. I get some suggestion in other post to use package \usepackage{newtxtext} but not exactly similar to Times News Roman –  Mohammad Fajar Apr 22 '14 at 1:32
1  
Perhaps get a closer look at the mathptmx documentation –  Mario S. E. Apr 22 '14 at 1:52

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