开发者

numbering issues of using Algorithms package

开发者 https://www.devze.com 2023-01-09 03:51 出处:网络
I am using algorithms package to writing my thesis, and having a question on numbering issue. The thesis is composed of several chapters, and each chapter may include a set of algorithms, procedures a

I am using algorithms package to writing my thesis, and having a question on numbering issue. The thesis is composed of 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 Pr开发者_如何转开发ocedure 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.


You could try to define new environments for algorithms and procedures (and heuristics) alike, all calling the algorithms package and use custom counters on both. That way you could increase the two counters separately whenever either is used in your thesis.

For further help on setting custom counters read the advanced topics section of the wikibooks or the blog entry on latex matters covering counters.

0

精彩评论

暂无评论...
验证码 换一张
取 消