1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/doc-src/ttbox.sty Mon Aug 28 13:48:25 2000 +0200
1.3 @@ -0,0 +1,38 @@
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 +{\obeylines\gdef\ttbreak
1.24 +{\allowbreak}}
1.25 +
1.26 +%%%% more \tt things
1.27 +
1.28 +\def\ttdescriptionlabel#1{\hspace\labelsep \tt #1}
1.29 +\def\ttdescription{\list{}{\labelwidth\z@ \itemindent-\leftmargin
1.30 + \let\makelabel\ttdescriptionlabel}}
1.31 +
1.32 +\let\endttdescription\endlist
1.33 +
1.34 +\chardef\ttilde=`\~ % A tilde for \tt font
1.35 +\chardef\ttback=`\\ % A backslash for \tt font
1.36 +\chardef\ttlbrace=`\{ % A left brace for \tt font
1.37 +\chardef\ttrbrace=`\} % A right brace for \tt font
1.38 +
1.39 +\newcommand\out{\ \ttfamily\slshape} %% for output from terminal sessions
1.40 +
1.41 +\endinput