Home > fonts > Migration from Computer Modern to Times New Roman fonts

Migration from Computer Modern to Times New Roman fonts

July 23Hits:2
Advertisement

I had typed my LaTeX article using Computer Modern fonts. Now I want Times New Roman and double spacing. I'm getting so many errors regarding font packages. Please help.

\documentclass[11pt,a4paper]{article}  \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amsthm} \usepackage{amssymb} \usepackage[doublespacing]{setspace} \usepackage[auth-sc]{authblk}  \usepackage{fontspec} \setmainfont{Times New Roman}  \textwidth=13cm 

Answers

For the sake of closing this question, here is a summary of the comments:

fontenc and inputenc are incompatible with fontspec.

fontspec with xe- / lualatex

fontspec lets you use any TrueType and OpenType font easily (with commands like \setmainsfont that just need the name of the font you want to use), but require you to compile your document with a modern TeX engine such as xelatex or lualatex. These two engines in return forces you to use utf8 encoding, and are therefore incompatible with \inputenc. Also, as fontspec is a kinda upgrade to fontenc, you shouldn't load fontenc either.
For more information on xelatex / lualatex vs pdflatex, read these questions:

  • Frequently loaded packages: Differences between pdfLaTeX and XeLaTeX
  • Frequently loaded packages: Differences between pdfLaTeX and LuaLaTeX

fontenc with pdflatex

If for some reason you want or need to compile with the legacy pdflatex, you will need to find a font that is available in Type1 format, and load it "the old way".

The best option seem to be TeX Gyre Termes, loaded by the tgtermes package. Part of the modern TeX Gyre collection of fonts, an initiative aimed at providing high quality versions of standard fonts for TeX and in OpenType format, it is a replacement for the older URW Nimbus Roman font, that can be loaded by the mathptmx package (AFAIK, mathptmx is nimbus with math support added, but I might be wrong).

Another option is the New TX font, loaded by the newtxtext and newtxmath packages (you need to load both).

Note that for both these options you should also switch to Cork font encoding, i.e. \usepackage[T1]{fontenc}.

For more about Times replacement, you can read What is going on with all these Times clones?

Related Articles

  • Migration from Computer Modern to Times New Roman fontsJuly 23

    I had typed my LaTeX article using Computer Modern fonts. Now I want Times New Roman and double spacing. I'm getting so many errors regarding font packages. Please help. \documentclass[11pt,a4paper]{article} \usepackage[T1]{fontenc} \usepackage[utf8]

  • Did the "Computer Modern" font families become a default because they're well tested and proven, or chance?October 7

    I'm deciding on the Font Families to use in LyX for a planned novel. Computer Modern is the default (Roman, Sans and Typewriter). I'm interested in the number of font faces and the versatility in styling of text. The number one priority is the ease o

  • Keep Computer Modern as bold font

    Keep Computer Modern as bold fontDecember 23

    I want to use Gentium as my mainfont and that is done by the command \usepackage{Gentium}. But I want "Computer Modern" to be my Bold font. Any idea of how to do it? --------------Solutions------------- There's no Gentium package, but gentium; u

  • Why do I get a warning about computer modern even though I'm using lmodern?April 28

    I would like to use KOMA script with a fontsize of 13pt (see very much related question here: Koma Script and real 13pt). Consider the following document: \documentclass[fontsize=13pt,DIV=12]{scrartcl} \usepackage{lmodern} \usepackage[T1]{fontenc} \b

  • Which Unicode fonts are available with grades/optical sizes comparable to Donald Knuth's awesome eight grades in Computer Modern Roman?

    Which Unicode fonts are available with grades/optical sizes comparable to Donald Knuth's awesome eight grades in Computer Modern Roman?June 3

    Which Unicode fonts are available with grades/optical sizes comparable to Donald Knuth's awesome eight grades in Computer Modern Roman? It would be great to get at least 3 options! This question is a logical follow-up question to this popular questio

  • Using a unicode-math font that looks like computer modern roman

    Using a unicode-math font that looks like computer modern romanOctober 26

    I'm looking for a math font that works with the unicode-math package that looks just like computer modern roman. I found the latin modern roman font quite good, but they have a ℝ symbol which looks really ugly imo. Is there a unicode math font that l

  • Computer Modern Roman in Mathematica 8.0

    Computer Modern Roman in Mathematica 8.0March 2

    What should be command for font style "Computer Modern Roman" in Mathematica, as the default font style of LaTeX is "Computer Modern Roman". Tried this Plot[z^2, {z, 0, 1}, PlotLabel -> StyleForm[z^y, FontFamily -> "CMUSerif

  • set the font in a beamer presentation to Computer Modern Roman

    set the font in a beamer presentation to Computer Modern RomanSeptember 19

    How can I set the default beamer font to the Computer Modern Roman font? --------------Solutions------------- You can use \usefonttheme{serif} to get the default serif fonts. \documentclass{beamer} \usefonttheme{serif} \usepackage{lipsum} \begin{docu

  • Computer Modern Unicode + OpenType for XeTeX / fontspec

    Computer Modern Unicode + OpenType for XeTeX / fontspecMay 9

    I'd like to use the most modern version of the Computer Modern fonts for XeTeX [or anything newer, of course] with the FontSpec package. Currently, I'm using \setromanfont{CMU Serif} However, this produces odd results with certain characters, e.g. --

  • Switching back to Computer Modern within XeLaTeX

    Switching back to Computer Modern within XeLaTeXAugust 5

    Until I select a font using \fontspec{ ... }, XeLaTeX uses the default of Computer Modern. Once I select some font, I have no idea how to re-select Computer Modern. Can anyone help? --------------Solutions------------- XeLaTeX (via fontspec) actually

  • Fatter Computer Modern

    Fatter Computer ModernMarch 2

    I very much like the design of the Computer Modern fonts, except that the strokes (mostly the hairlines) are too thin and "spindly", so not well suited to low-resolution devices like computer screens. I guess I'm not alone -- I often see complai

  • Computer Modern fonts and Cyrillic letters

    Computer Modern fonts and Cyrillic lettersNovember 26

    I am trying to typeset a multi-language unicode document (English, German, Spanish, Russian and there are more languages to come) in XeLaTeX and I am struggling with Cyrillic letters. Consider the following example: \documentclass{article} \usepackag

  • Computer Modern with ChromeApril 25

    When using Chrome, I'd like to enable the Computer Modern Roman to be displayed when I view math in, for example, physics.stackexchange or other sites that use MathJax. Is there a simple way to do this? Currently, my browswer displays such math in an

  • Computer Modern Serif for both linux and windowsSeptember 22

    There's a high probability that my question was asked before, but I couldn't find a good answer to it, so I'm going to pose the question again, hoping that I will get the accurate answer to my question. I use both linux and windows with my personal c

  • Computer Modern with fontspec in XeLateX (package mod)December 11

    I'd like to type my CV/resume form Friggeri's template (http://www.latextemplates.com/template/friggeri-resume-cv) that is based on Helvetica Neue fonts which I do not have on my computer and the package 'fontspec'. In the class file friggeri-cv.cls,

  • Is Computer Modern a high-quality font?

    Is Computer Modern a high-quality font?January 31

    Computer Modern, a font created by a computer scientist for use with his own typesetting system TeX, has become one of the most frequently used fonts of all time, precisely because of the popularity of TeX. But the question remains whether this font,

  • What is the history of the ß (Eszett) in the T1 encoding of Computer modern?

    What is the history of the ß (Eszett) in the T1 encoding of Computer modern?November 28

    In the default font (Computer modern) the ß looks ugly to me. It really sticks out on a page as if it would come from a different font. Here's an image: What is the history of this character? Why is there a vertical bar sticking out on the left? Why

  • Can we have Computer Modern Font in LibreOffice? July 26

    For some complicated diagrams, I need to use something like Adobe Illustrator or Inkscape, and would like to include nicely typeset labels. (I'm aware of post-processing solutions, such as pinlabel.) One way to do this is to use a closely-matching fo

  • How to enforce pslatex to use Computer Modern font for math?December 23

    How can I enforce pslatex to use Computer Modern font for math? (I know, it would be much easier to use pdflatex, but my publisher uses pslatex.) EDIT: Example: \documentclass[twoside,11pt]{article} \usepackage{amssymb} \begin{document} ${\cal P} = {

  • Why aren't there well-hinted Type1 Computer Modern fonts supporting the T1 encoding yet?January 21

    Given the popularity of PDF, the pain that is OT1, and the bad on-screen rendering of bitmapped fonts in Adobe's software, I would have expected that someone would have undertaken conversion/extension of the BlueSky fonts to the T1 encoding while mai

Copyright (C) 2018 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.552 s.