Document 534

The LaTeX verbatim package

Version: 3.x, 4.x, 5.x - Scientific WorkPlace & Scientific Word

The verbatim environment allows for the display of information exactly as it is entered at a terminal. The verbatim package improves that environment by handling text of arbitrary length, even an entire file, as verbatim input. The package also improves the detection of the verbatim environment's closing delimiter. You can display verbatim text with a font different from the default typewriter font.

How to display verbatim text

  1. Add the verbatim package to your document.
  2. Place the insertion point where you want the verbatim text to appear.
  3. Enter an encapsulated TeX field.
  4. In the entry area, type \begin{verbatim} and choose OK.
  5. Type the information as you want it to appear.
  6. At the end of the information, enter another encapsulated TeX field.
  7. In the entry area, type \end{verbatim} and choose OK.

How to import a verbatim file

  1. Add the verbatim package to your document.
  2. Place the insertion point where you want the file to appear.
  3. Enter an encapsulated TeX field.
  4. In the entry area, type \verbatiminput{filename} where filename is the complete path name of the file to be imported, with forward slashes substituted for backslashes.
  5. Choose OK.

The package has no options. It installs in the TCITeX/TeX/LaTeX/required/tools directory as part of the Standard LaTeX Tools Bundle.

Last revised 01/20/06

This document was created with Scientific WorkPlace.