[comp.text.tex] UPLOAD: program.sty--Typeset program fragments in LaTeX

DHOSEK@HMCVAX.CLAREMONT.EDU (Don Hosek--ymir archive) (05/31/91)

I have just uploaded program.sty and program-example.tex to
ymir.claremont.edu:[anonymous.tex.inputs.latex-contrib]
The files were obtained from fileserv@shsu on 23-May-1991.

The following was excerpted from the internal documentation:

% This is the "program" style option which sets up the
% program and programbox environments,
% keywords for programs and a few goodies.
% NOTE: Within the program environment:
% (1) Newlines are significant.
% (2) Each line is in math mode, so for example spaces in the input
%     file are not significant.
% (3) \\ within a line causes a linebreak in the output.
%
% We also define a "programbox" environment which typesets a program in a box.
% Useful for keeping a piece of code on one page or for typesetting small
% programs in running text.
% We also redefine \( and \) as \begin{programbox} and \end{programbox}.
% The \tab and \untab commands are defined to have no effect while outside
% a program environment, hence a single-line program can be typeset in
% maths mode without the overhead associated with programbox.

-dh

Don Hosek                  | To retrieve files from ymir via the mailserver,
dhosek@ymir.claremont.edu  | send a message to mailserv@ymir.claremont.edu
Quixote Digital Typography | with a line saying send [DIRECTORY]FILENAME
714-625-0147               | where DIRECTORY is the FTP directory (sans
---------------------------+ "anonymous") and FILENAME is the filename, e.g.
"send [tex]00readme.txt". There is a list of files in each directory under the
name 00files.txt. Binary files are not available by this technique.