doc-src/Tutorial/ttbox.sty
author wenzelm
Mon, 13 Mar 2000 13:21:39 +0100
changeset 8434 5e4bba59bfaa
parent 5375 1463e182c533
permissions -rw-r--r--
use HOLogic.Not; export indexify_names;

\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