How can I revert the action of \numberwithin{mycounter}{section} so that mycounter does not reset with a new section?
Example: (This is not exactly my case but this is easy to understand.) I would like to have equation numbered within a section in the first part of the document, so I use \numberwithin{equation}{section}. But in the next part to number it directly. Like
Section 1
equation (1.1)
equation (1.2)
Section 2
equation (2.1)
equation (2.2)
equation (2.3)
\SomeCommandToPutHere{equation}
Section 3
equation (1)
equation (2)
equation (3)