# The clrscode and clrscode3e packages for LaTeX2e

## The clrscode3e package

The clrscode package for LaTeX2e allows you to typeset pseudocode just as we do in Introduction to Algorithms, Third edition.

Download clrscode3e.sty to get the package, and clrscode3e.pdf for a PDF of documentation.

### Revisions

• 1.1: 23 March 2009 Initial revision.

## The clrscode package

The clrscode package for LaTeX2e allows you to typeset pseudocode just as we do in Introduction to Algorithms, Second edition.

Download clrscode.sty to get the package, and either clrscode.ps or clrscode.pdf for documentation (in PostScript and PDF, respectively).

### Revisions

• 1.1: 11 June 2003. Initial revision.
• 1.2: 19 June 2003. Fixed a bug that caused this package to interact badly with the color package. Thanks to Janne Rinta-Mänty for reporting this bug and suggesting the fix.
• 1.3: 26 Sept 2003. Changed \codeboxwidth from \textwidth to \linewidth so that the package works in twocolumn mode. Thanks to David Etherington for reporting this bug and suggesting the fix.
• 1.4: 7 November 2003. Fixed a bug that caused incorrect behavior when the \zi command is used for lines beginning with \Until, \Else, \ElseIf, or \ElseNoIf. Thanks for Oliver Ernst for reporting this bug.
• 1.5: 11 November 2003. Removed a macro that is no longer needed.
• 1.6: 14 July 2005. Added a definition for the \numref macro, which is needed for \setlinenumber and \setlinenumberplus. Thanks to Matt Suder(?) and Johan Gade.

Thomas H. Cormen <thc@cs.dartmouth.edu>