start Fri Jul 4 08:26:21 2008 Faculty of Information Technology, UTS
UTS Home | Faculty of IT | Faculty Contacts | PDF | Documentation | Feedback

Documentation > LaTeX > verbatim.html

back...

Verbatim environments

Verbatim environments

Alltt (Companion, p66)

The alltt package typesets text and control characters like verbatim, but does not ignore commands (the meaning of \, { and } is unchanged).

Its syntax is \begin{alltt} ... \end{alltt}

Program (Companion, p104)

An environment designed for typesetting computer programs, specifically Pascal. Click here for documentation.

Verbatim (Companion, p66)

LaTeX2e verbatim extends the LaTeX original. It includes a comment environment; all text is skipped between \begin{comment} and \end{comment}. Its version of the \verb command is more likely to work. And there is no length limit on quoted text.

Moreverb (Companion, pp. 66-70)

This package adds new verbatim environments and commands.

Verbatimwrite

This environment outputs text to a file.
\begin{verbatimwrite}{file.out}
Blah
        Blah    Blah
Blah
\end{verbatimwrite}
will write the three lines between the delimiters to the file file.out.

Verbatimtab

This environment expands TAB spacings. The syntax is
\begin{verbatimtab}[spacing] text  \end{verbatimtab}. 
If spacing is not specified, tab stops are 8 characters wide by default.

Verbatiminput

The command \verbatiminput[spacing]{filename} will input file filename. Spacing is an optional argument that defines the tab width.

Boxedverbatim

This environment places a box around the verbatim text.

Verbatimcmd

This is moreverb's equivalent of the alltt environment.

Listing, listingcont

These environments are used to number lines of verbatim output. The syntax of listing is
\begin{listing}[step]{firstline}
Firstline declares the first line to be numbered. Step is an optional argument. It specifies the step between numbered lines: eg, \begin{listing}[3]{4} will number every third line from line 4.

The listingcont environment continues a previous listing; if the last listing environment ended with line number 47, listingcont will number lines from 48. Its syntax is \begin{listingcont} ....

Listing and listingcont expand tabs to eight space characters.

Listing*, listingcont*

These environments function like their unasterisked equivalents, but replace each space character with a bucket. Also, listing* and listingcont* do not expand tabs.

listinginput

The command
\listinginput[step]{firstline}{filename}
inputs file filename into a listing environment.

Last modified: Thu Jun 30 14:09:31 1994

detail...

Messages posted in the last 4 weeks.

· Special Project on Wireless Sensor Networks 30/6-30/7 ( 2 )
· Call for applications - CMCRC Honours Scholarships 26/6-15/7
· 2008 Realise Your Dream award 24/6
· World Gamemaster Tournament 2008 23/6
· Job: Render Wrangler -- Animal Logic 19/6
· Job: Data Services Technician – Animal Logic 19/6
· 6cp Graphics Project @ Games Studio 19/6
· Google Code Jam Now Open 19/6
· iPhone and Google Mashup Projects in the Magic Lab Spring Semester 2008 18/6
· Australian Youth Climate Co-ordination 18/6-31/7
· UNIQUE OPPORTUNITY EXISTS FOR COMPUTER SCIENCE & I.T STUDENTS 16/6
· Country Careers Fair 8th August 6/6-9/8
· 32517 Commerce on the Internet - Now 32120 Introduction to eBusiness Technology 10/8-30/7