6

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.

3

OT1, EU1 are names of TeX font encoding schemes:

  • OT1 is the original text encoding scheme used by TeX, it stands for "Old (Original) Text 1", more information can be found here: encguide.
  • EU1 is an experimental encoding scheme for Unicode fonts used by XeTeX, it stands for, what else, "Experimental Unicode 1" (U in LaTeX framework refers to "Unknown" though), more information can be found here: EUenc.

cmr, cmss, cmtt are names of typefaces available in the Computer Modern family:

  • cmr stands for "Computer Modern Roman".
  • cmss stands for "Computer Modern Sans Serif".
  • cmtt stands for "Computer Modern Typewriter".

Information regarding these typefaces can be found in The TeXbook and The METAFONTbook.

There are also plenty of interest read available on TeX Users Group, like this: Surviving the TeX font encoding mess.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.