How to use Times New Roman font in LaTeX
In this tutorial, I will show you how to use Times New Roman font in LaTeX without using fontspec
.
Using fontspec you can customize fonts a lot more. But if you are looking for a simple solution to use Times New Roman font in your whole article, you can use mathptmx
package.
Times New Roman Font using mathptmx in LaTeX
\documentclass{article} \usepackage{mathptmx} % Times New Roman font \begin{document} You can check this font is now in Times New Roman without using fontspec \end{document}
If you want your math symbols and equations to be in Times New Roman Font, then this mathptmx
package is the best choice for you.
Output:
Other solutions:
There are a few more packages out there to do the task, but those are very similar to that font. (Not exactly the same)
\documentclass{article} \usepackage{newtxtext,newtxmath} \begin{document} This is text in a Times-like font. \[ E = mc^2 \] \end{document}
Output:
Another package we can use is tgtermes
. But this package only works with normal texts and won’t work with math symbols and equations. Take a look:
\documentclass{article} \usepackage{tgtermes} \usepackage{amsmath} \begin{document} This is text in a font very similar to Times New Roman. \[ E = mc^2 \] \end{document}
Output:
You can see, the equation fonts are not changed.
Leave a Reply