Technical Support
Forums and Mailing Lists
Search Mackichan Web

SWP & SW
Version 5/5.5

Installation
Word Processing
Computations
Typesetting
File Issues
Graphics
Exam Builder
Style Editor
Other
Technical Articles

Scientific Notebook
Support Information
Troubleshooting

TeXnology
BibDB

Document 622

## The LaTeX algorithmic package

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

The algorithmic package defines an environment in which you can use a number of commands for typesetting complex algorithmic constructs. Available commands include if-then-else constructs; for, while, until, and infinite loops; pre- and postconditions; and comments. Line numbering is optional. An option to suppress end statements is available. The package is designed to be used with the algorithm package, but it can be used separately. For more information, see the package documentation available through the program's online Help.

### How to use the algorithmic package

2. Place the insertion point where you want the algorithm to start and begin the algorithmic environment.

1. Enter an encapsulated TeX field.

2. In the entry area, type \begin{algorithmic} and choose OK.

3. Type the commands for the entire algorithm.

4. End the algorithmic environment:

1. Enter an encapsulated TeX field.

2. Type \end{algorithmic} and choose OK.

The file PackageSample-algorithmic.rap in the SWSamples directory of your program installation contains examples of the algorithmic package in use. The file includes instructions for modifying a style (.cst) file to add the algorithmic environment as a Section/Body tag.

The package is installed in the TCITeX/TeX/LaTeX/contrib/algorithms directory of your program installation.

Last revised 01/23/06

MacKichan Software, Inc. 19689 7th Avenue NE, Suite 183 #238 Poulsbo, WA 98370
Phone: 360-394-6033 Toll-free: 877-724-9673 Fax: 360-394-6039