1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/doc-src/TutorialI/ttbox.sty Wed Apr 19 11:54:39 2000 +0200
1.3 @@ -0,0 +1,20 @@
1.4 +\ProvidesPackage{ttbox}[1997/06/25]
1.5 +\RequirePackage{alltt}
1.6 +
1.7 +%%%Boxed terminal sessions
1.8 +
1.9 +%Redefines \{ and \} to be in \tt font and \| to make a BACKSLASH
1.10 +\def\ttbraces{\chardef\{=`\{\chardef\}=`\}\chardef\|=`\\}
1.11 +
1.12 +%Restores % as the comment character (especially, to suppress line breaks)
1.13 +\newcommand\comments{\catcode`\%=14\relax}
1.14 +
1.15 +%alltt* environment: like alltt but smaller, and with \{ \} and \| as in ttbox
1.16 +\newenvironment{alltt*}{\begin{alltt}\footnotesize\ttbraces}{\end{alltt}}
1.17 +
1.18 +%Indented alltt* environment with small point size
1.19 +%NO LINE BREAKS are allowed unless \pagebreak appears at START of a line
1.20 +\newenvironment{ttbox}{\begin{quote}\samepage\begin{alltt*}}%
1.21 + {\end{alltt*}\end{quote}}
1.22 +
1.23 +\endinput