The HOL tutorial.
1 \ProvidesPackage{ttbox}[1997/06/25]
4 %%%Boxed terminal sessions
6 %Redefines \{ and \} to be in \tt font and \| to make a BACKSLASH
7 \def\ttbraces{\chardef\{=`\{\chardef\}=`\}\chardef\|=`\\}
9 %Restores % as the comment character (especially, to suppress line breaks)
10 \newcommand\comments{\catcode`\%=14\relax}
12 %alltt* environment: like alltt but smaller, and with \{ \} and \| as in ttbox
13 \newenvironment{alltt*}{\begin{alltt}\footnotesize\ttbraces}{\end{alltt}}
15 %Indented alltt* environment with small point size
16 %NO LINE BREAKS are allowed unless \pagebreak appears at START of a line
17 \newenvironment{ttbox}{\begin{quote}\samepage\begin{alltt*}}%
18 {\end{alltt*}\end{quote}}