Skip to content


Subversion checkout URL

You can clone with
Download ZIP
The algorithms set of packages for LaTeX
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore gitignore: Add list of files to ignore.
COPYING Fix the FSF address. Fix markup of the README file.

The algorithms set of packages for LaTeX

The algorithms bundle provides two environments, algorithmic and algorithm, designed to typeset pseudo-code with LaTeX.

The algorithmic package provides an environment for the description of algorithms, step-by-step in pseudo-code, while the algorithm environment provides a float wrapper for algorithms to "feature" them in the text.

Even though the primary intention is to use them together, it is possible to just use one of them at the option of the user. The reason for two environments being provided is to allow the user maximum flexibility.


If you are not using a distribution like TeX Live or MikTeX, you can easily install the package by running (on a command line; the $ signals denotes the prompt and should not be typed):

$ tex algorithms.dtx

This should generate, among others, the files algorithm.sty and algorithmic.sty. To use them, just copy them to your texmf tree (or the local directory where the document you want to typeset resides). If you would like to generate the documentation, just use, say:

$ pdflatex algorithms.dtx
$ pdflatex algorithms.dtx

Development and Support

The source code for the bundle is currently hosted in a git repository at

The author welcomes any contribution and also tries to address any bugs or feature requests that may be filed on the issue tracker at

The License

The algorithms bundle is (currently) licensed under the Lesser GPL license, which is a Free Software license. It may, in the future, be released under the standard LaTeX license (the LaTeX Project Public License).

-- Rogério Brito Sun, 15 Nov 2010 05:01:42 -0200

Something went wrong with that request. Please try again.