[Tex/LaTex] How to use standard TeX fonts in XeLaTeX


How do I use the inbuilt LaTeX standard fonts (in this case Times for roman, Helvetica for sans serif and Courier for mono) when using XeLaTeX and fontspec?

I have tried:

\documentclass[journal, a4paper]{IEEEtran}


     “Touché,” \textsf{he} \texttt{said}.

without success. Note that I want to be able to type utf8, non-English characters directly and therefore I use fontspec.

Best Answer

The document @Sverre wrote, but with LuaLaTeX gives a correct output. However, as @UlrikeFischer said, it seems to be “wrong” in many ways.

%!TEX TS-program = lualatex
\usepackage{mathptmx} % Times font
\usepackage{helvet} % Helvetica font
\usepackage{courier} % Courier font
“Touché,” \textsf{he} \texttt{said}

enter image description here


If you want to be able to compile in pdfLaTeX without changing input you can

\usepackage[utf8]{\ifluatex lua\fi inputenc}

PS: I added the fontenc package that I missed before, and the document seems to work the same way as with OT1.