I'm writing in the document class, and using the align environment from the amsmath package.
My align environment in chapter 2 is giving numbers as (2.2), (2.3) etc (since it's in chapter 2), where I'd like it to appear as just (2), (3) etc.
I've tried using \numberwithin{equation}{document} command, but 'document' isn't accepted.

