I have a simple question about LaTeX. What does it mean when you write
\usepackage[OT1,EU1]{fontenc}
and where can I find the description?
\documentclass{article}
\usepackage{fontspec}
\newfontfamily\xits{XITS}
\newfontfamily\cursor{TeX Gyre Cursor}
\usepackage[OT1]{fontenc}
\renewcommand\rmdefault{cmr}
\renewcommand\sfdefault{cmss}
\renewcommand\ttdefault{cmtt}
\begin{document}
This is Computer Modern Roman.
\textsf{This is Computer Modern Sans.}
\texttt{This is Computer Modern Typewriter.}
{\xits This is Times-like XITS font.}
{\cursor This is Courier-like TeX Gyre Cursor.}
\end{document}
Now I have one more question to find a description of shortcuts for each font, like here? I think it cmr, cmss, cmtt.
fontencis a general LaTeX package, not a XeTeX one. However, you should not be using it with XeTeX (other than the rather specific internal use byfontspec). – Joseph Wright Dec 22 '15 at 09:10EU1directly (in particular) is a bad plan. – Joseph Wright Dec 22 '15 at 09:28\rmdefaultetc. – Ulrike Fischer Dec 22 '15 at 11:27