I need to add some text to my LaTeX document, I need to use Times New Roman
font, and that text contains cyrillic characters.
I tried using times
package:
\usepackage{times}
but that simply omits cyrillic chars.
I tried using fontspec:
\usepackage{fontspec}
\setmainfont[Mapping=tex-text]{Times New Roman}
but that gives me error:
kpathsea: Invalid fontname `Times New Roman', contains ' '
! Font EU1/TimesNewRoman(0)/m/n/24.88="Times New Roman:mapping=tex-text;" at 24
.88pt not loadable: Metric (TFM) file or installed font not found.
What am I doing wrong? How do I fix it?
Best Answer
As others have suggested, it's crucial to update your TeX distribution first (some people would even say: don't even think about asking a question without having updated your distribution first).
As you seem to be using XeLaTeX, loading fonts via packages made for pdfTeX isn't the best option in most cases. You should really be using
fontspec
IMHO.I'm sure your operating system already includes Times New Roman -- not necessarily under that name, though, and not necessarily a version that includes Cyrillic. One version that definitely does is the one shipped with Windows. Here's how to install it, in case it's not available on your machine yet. Once it is, something like this should work without any problems (unless something more fundamental is wrong with your TeX system):
A few other Cyrillic-aware fonts that can be used with
fontspec
are listed here.