I am using algorithms package to writing my thesis, and having a question on numbering issue.
The thesis is composed several chapters, and each chapter may include a set of algorithms, procedures and heuristics, and each of which is presented using algorithms package. After using \floatname to customize the captions, I now have
Algorithm 1.1, Algorithm 1.2, Procedure 1.3 Procedure 1.4, Algorithm 2.1, Algorithm 2.2, Procedure 2.3 Procedure 2.4
This is not the numbering scheme what I want, which should look like
Algorithm 1.1, Algorithm 1.2, Procedure 1.1 Procedure 1.2, Algorithm 2.1, Algorithm 2.2, Procedure 2.1 Procedure 2.2
Can you let me know any hint for doing this? Thanks.
Math & Science ⇒ numbering issues of using algorithms package
NEW: TikZ book now 40% off at Amazon.com for a short time.

numbering issues of using algorithms package
It seems that you need two kinds of floats, algorithms and procedures, with independent numbering. The first ones are already provided by the algorithm package. Use the float package to get the second ones. So, add this to the preamble:
Read the manual of float for details on syntax. Add this line where you want the list of procedures:
Write procedures inside of a procedure environment instead of an algorithm environment. That's all.
Code: Select all
\usepackage{float}
\newfloat{procedure}{tbp}{lop}[chapter]
\floatname{procedure}{Procedure}
Code: Select all
\listof{procedure}{List of procedures}
Write procedures inside of a procedure environment instead of an algorithm environment. That's all.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.