The algorithms set of packages for LaTeX
Latest commit c75e9c1 Oct 10, 2015 @rbrito Merge pull request #2 from filipesaraiva/patch-1
Add 'Filipe Saraiva' to THANKS file.
Failed to load latest commit information.
.gitignore gitignore: Add list of files to ignore. Jul 16, 2011
COPYING Fix the FSF address. Apr 27, 2010
THANKS Add 'Filipe Saraiva' to THANKS file Oct 10, 2015
algorithms.dtx Add 'end repeat' command Oct 10, 2015

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