I am seeking for a way to number each equation based on the chapter numbers. The number should be placed at the right side of the equation and the equation should be center-aligned. Something like this:

(The bounding box around `2.3`

is not necessary).

I found this article that do this in a tricky way. Sadly it has some problems when I use multilevel numbering for Headings.

To conclude, I am looking for a way to numbers equations that:

- The numbering is formatted as N-M that N is chapter number and M is equation number.
- equation is placed in center-aligned
- number is placed in the right side of equation
- There should be a way to cross-reference each numbered equation.

Thanks!