doc-src/Tutorial/ttbox.sty
author berghofe
Fri, 16 Jul 1999 12:14:04 +0200
changeset 7015 85be09eb136c
parent 5375 1463e182c533
permissions -rw-r--r--
- Datatype package now also supports arbitrarily branching datatypes (using function types). - Added new simplification procedure for proving distinctness of constructors. - dtK is now a reference.

\ProvidesPackage{ttbox}[1997/06/25]
\RequirePackage{alltt}

%%%Boxed terminal sessions

%Redefines \{ and \} to be in \tt font and \| to make a BACKSLASH
\def\ttbraces{\chardef\{=`\{\chardef\}=`\}\chardef\|=`\\}

%Restores % as the comment character (especially, to suppress line breaks)
\newcommand\comments{\catcode`\%=14\relax}

%alltt* environment: like alltt but smaller, and with \{ \} and \| as in ttbox
\newenvironment{alltt*}{\begin{alltt}\footnotesize\ttbraces}{\end{alltt}}

%Indented alltt* environment with small point size
%NO LINE BREAKS are allowed unless \pagebreak appears at START of a line
\newenvironment{ttbox}{\begin{quote}\samepage\begin{alltt*}}%
                      {\end{alltt*}\end{quote}}

\endinput