8

Consider the following code:

\documentclass{report}
\usepackage[utf8]{inputenc} 
\usepackage{fontspec} %compile with xelatex
%\setmainfont{Times New Roman}                                                                                                                                                                              
\begin{document}
\textsc{Small Caps}
\end{document}

No small caps are obtained when I uncomment the line \setmainfont{Times New Roman}. There is a warning:

LaTeX Font Warning: Font shape `TU/TimesNewRoman(0)/m/sc' undefined
(Font)              using `TU/TimesNewRoman(0)/m/n' instead on input line 6.

How to both have Times New Roman font style and small caps?

14
  • 4
    The line \usepackage[utf8]{inputenc} %compile with xelatex seems strange, you should never use inputenc with xelatex (it does nothing other than give a warning that it should not be used) Commented Jan 16, 2019 at 16:44
  • 1
    On windows it works fine (without the inputenc which is wrong). times.ttf has small caps. Commented Jan 16, 2019 at 16:45
  • It works on windows as Ulrike says, or you could use a clone font such as TeX Gyre Termes Commented Jan 16, 2019 at 16:49
  • @UlrikeFischer, I work in Ubuntu. I downloaded separately the Times New Roman font. Perhaps, I need to do a special download of small caps?
    – Viesturs
    Commented Jan 16, 2019 at 16:49
  • @DavidCarlisle what is meant by a clone font? How to use the Tex Gyre Termes?
    – Viesturs
    Commented Jan 16, 2019 at 16:50

1 Answer 1

15

This is a problem on Macs as well as Linux. Newer versions of Times New Roman have small capitals as well as lowercase/old-style numerals as OpenType features. Unfortunately, other operating systems still tend to distribute older versions. The version of Times New Roman bundled with macOS, 5.01.3x, doesn't include small caps; but Office for Mac has version 7.00, which includes the newer OpenType features.

Alternatively, as already suggested in the comments, you could use the TeX Gyre Termes clone of Times:

\documentclass{report}
\usepackage{fontspec}
\setmainfont{TeX Gyre Termes}

\begin{document}
\textsc{Small Caps}
\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .