doc-src/Tutorial/ttbox.sty
author wenzelm
Fri, 16 Jul 1999 22:24:42 +0200
changeset 7024 44bd3c094fd6
parent 5375 1463e182c533
permissions -rw-r--r--
tuned;

\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