0

This question already has an answer here:

I am using the algorithmic and algorithm2e package to write the algorithm. I want to use the chapter number in algorithm number. for example for chapter number 3 the first algorithm should be 3.1 and so on. This can be achieved in algorithm package as

\usepackage[chapter]{algorithm}

How to do this for algorithmic and algorithm2e package.

marked as duplicate by CarLaTeX, Community Jun 14 '18 at 4:24

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    See e.g. here. – marmot Jun 14 '18 at 4:02
  • @marmot: it worked. you can write it as an answer. Much thanks! – Amarjit Singh Jun 14 '18 at 4:11
  • 1
    But this is not my answer. (As long as your problem is solved, it is fine ;-) – marmot Jun 14 '18 at 4:13
1

Problem is solved by using algochapter as shown below.

\usepackage[algochapter]{algorithm2e}

Not the answer you're looking for? Browse other questions tagged or ask your own question.