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?
\usepackage[utf8]{inputenc} %compile with xelatex
seems strange, you should never useinputenc
with xelatex (it does nothing other than give a warning that it should not be used)