[Tex/LaTex] Times New Roman in LaTeX just some text

fonts

I have some text in my document in primary font what is in LaTeX but I would like to get some text in font Times New Roman but just some text between primary text, as a local command (something as \textit{}, \textbf{} etc.), an example below.

My cat has black skin. % in primary font

My second cat has white skin. % I would like to get in Times New Roman

Thanks for help.

Best Answer

Option 1: LaTeX

Select the Times font, which looks a lot like Times New Roman. More info here.

MWE

\documentclass{article}

\begin{document}
My cat has black skin. % in primary font

{\fontfamily{ptm}\selectfont
My second cat has white skin.} % I would like to get in Times New Roman
\end{document}

Result

enter image description here

Option 2: XeLaTeX/LuaLaTeX

Select fonts installed on you computer using fontspec as Johannes_B suggested. Now you have to compile using XeLaTeX or LuaLaTeX though. (thanks clemens)

MWE

\documentclass{article}
\usepackage{fontspec}
% Compile with XeLaTeX

\newfontfamily\myfont{times.ttf}
\begin{document}
My cat has black skin. % in primary font

{\myfont
My second cat has white skin.} % I would like to get in Times New Roman
\end{document}

Result

enter image description here