Math & Science ⇒ numbering issues of using algorithms package
numbering issues of using algorithms package
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.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
numbering issues of using algorithms package
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.