Article View: comp.text.tex
Article #2570Re: Algorithm env. like "figure"? List of Algorithms?
From: hank
Date: Fri, 11 Sep 1992 14:22
Date: Fri, 11 Sep 1992 14:22
32 lines
2230 bytes
2230 bytes
In article <1992Sep11.124638.6992@maths.tcd.ie>, jorice@maths.tcd.ie (Jonathan Rice) writes:
> Does anyone know of an environment which would let me number and float
> algorithms in a similar way to the "figure" environment? It would be
> very desirable, also, if I could produce a "List of Algorithms" at the start of my document, similar to what happens with \listoffigures and \listoftables.
> I have checked out the obvious contenders: algorithm.sty and program.sty.
> algorithm.sty provides numbering but its format can't be changed (as far as
> I know) since it is defined with \newtheorem. program.sty doesn't do anything
> I need. Neither styles float nor produce a list of algorithms.
You didn't check the definitive source for macros: DM Jones' tex-index,
available at niord.shsu.edu (in [.tex-faq] ?). You will find:
Name: float.sty (.doc)
Description: This style option improves the interface for defining
floating objects such as figures and tables in LaTeX. It adds the
notion of a loat style' that governs appearance of floats. New
kinds of floats may be defined using a \newfloat command analogous
to \newtheorem.
Keywords: LaTeX, float
Author: Anselm Lingnau <lingnau@math.uni-frankfurt.de>
Supported: yes
Latest Version: v1.0c, 25 Feb 1992
Archives: stuttgart, shsu
Note: Documentation requires Mittelbach's doc.sty (q.v.). Package
includes a driver file for the documentation (float.tex), a driver
file for the docstrip (q.v.) program, an example file (fltest.tex)
and a README file.
The sample file uses 'algorithm' as an example. It has a '\listof'
command. I have not tested.
--darrel hankerson hank@ducvax.auburn.edu
Technical Details
Message-ID:
<1992Sep11.092239.1@news.duc.auburn.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!pmafire!news.dell.com!swrinde!sdd.hp.com!spool.mu.edu!darwin.sura.net!news.duc.auburn.edu!news.duc.auburn.edu!hankReferences:
<1992Sep11.124638.6992@maths.tcd.ie>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pmafire!news.dell.com!swrinde!sdd.hp.com!spool.mu.edu!darwin.sura.net!news.duc.auburn.edu!news.duc.auburn.edu!hank From: hank@news.duc.auburn.edu Newsgroups: comp.text.tex Subject: Re: Algorithm env. like "figure"? List of Algorithms? Message-ID: <1992Sep11.092239.1@news.duc.auburn.edu> Date: 11 Sep 92 14:22:39 GMT References: <1992Sep11.124638.6992@maths.tcd.ie> Sender: usenet@news.duc.auburn.edu (News Account) Organization: Auburn University, AL Lines: 32 Nntp-Posting-Host: ducvax