[Tex/LaTex] which texlive package has times new roman for xelatex

fontspectexlivetimesxetex

I have following in my latex header:

\usepackage{fontspec}
\setmainfont[Mapping=tex-text]{Times New Roman}

This results in "font not found" error when compiled with xetex.
I installed all packages related to times but the problem still persists.

Thanks for taking a look.

Best Answer

\usepackage{fontspec}
\setmainfont[Mapping=tex-text]{Times New Roman}

These settings require you to have the font Times New Roman installed for your system. Since this is a proprietary font, it is not distributed with TeX Live at all.

If you simply need something which looks like TNR, try TeX Gyre Termes which is a clone of Times/Times New Roman. This font is distributed in both type1 and opentype formats with TeX Live and other current TeX distributions, or can be downloaded and installed for your operating system independently.

If you have a copy of Times New Roman, you can install it for your OS and use it. How to install a font depends on your operating system. On some systems, opening the font file will trigger an offer to install the font for you. For example, OS X should do this. Otherwise, the steps required are OS-dependent. OS X uses Font Book to manage fonts. (Or it did - I think it still does.) On a GNU/Linux system, you put the font in ~/.fonts or /usr/local/share/fonts and then update the fontconfig cache to make it available to your system. For a common, free font such as TeX Gyre Termes, you can almost certainly simply install it using your distro's package manager.