doc-src/Tutorial/ttbox.sty
author paulson
Fri, 27 Nov 1998 13:13:22 +0100
changeset 5980 2e9314c07146
parent 5375 1463e182c533
permissions -rw-r--r--
added Real/Hyperreal
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5375
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
     1
\ProvidesPackage{ttbox}[1997/06/25]
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
     2
\RequirePackage{alltt}
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
     3
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
     4
%%%Boxed terminal sessions
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
     5
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
     6
%Redefines \{ and \} to be in \tt font and \| to make a BACKSLASH
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
     7
\def\ttbraces{\chardef\{=`\{\chardef\}=`\}\chardef\|=`\\}
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
     8
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
     9
%Restores % as the comment character (especially, to suppress line breaks)
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    10
\newcommand\comments{\catcode`\%=14\relax}
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    11
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    12
%alltt* environment: like alltt but smaller, and with \{ \} and \| as in ttbox
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    13
\newenvironment{alltt*}{\begin{alltt}\footnotesize\ttbraces}{\end{alltt}}
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    14
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    15
%Indented alltt* environment with small point size
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    16
%NO LINE BREAKS are allowed unless \pagebreak appears at START of a line
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    17
\newenvironment{ttbox}{\begin{quote}\samepage\begin{alltt*}}%
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    18
                      {\end{alltt*}\end{quote}}
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    19
1463e182c533 The HOL tutorial.
nipkow
parents:
diff changeset
    20
\endinput