is the term used for a "monospaced" font, that is, a font in which all characters have the same width.

This style of type is typically used to set examples.

The LaTeX command to set a text string in the typewriter font is \texttt{...}. The corresponding plain TeX command is {\tt ...}. \mathtt also exists for use in (LaTeX) math environments, but its use is rare. Note that "special characters" (e.g., backslash) are not by default set in the tt font; if that style is needed, [verbatim] mode is probably more appropriate.

history | show excerpt | excerpt history