Pre-Formatted Text

A sequence of lines of text can be incorporated unaltered into a LaTeX document (in a fixed-width `typewriter' font) using the verbatim environment. The lines should be enclosed between \begin{verbatim} and \end{verbatim}. This provides a useful way of listing all or part of a computer program.

The control sequence \verb can be used to incorporate a string of characters unaltered into a paragraph of text (in a `typewriter' font). The string of characters should be enclosed between two instances of some character that is not included in the string. The whole should then be preceded by the control sequence \verb. For example, \verb/\alpha/ produces \alpha.