# How to get global equation numbers in scrrprt? [duplicate]

When I insert an equation in whatever environment I like in my scrrprt document I get a numbering like (1.1). But I have very few numbered equations in my document so I'd like to get a numbering like (1). How do I change this?

-

## marked as duplicate by lockstep, Gonzalo Medina, Jake, Ian Thompson, Torbjørn T.Apr 24 '12 at 15:46

Use the chngcntr package.

\documentclass{scrreprt}
\usepackage{chngcntr}
\counterwithout{equation}{chapter}
\begin{document}
\chapter{a chapter}
$$a = b$$
\chapter{another chapter}
$$a = b$$
\end{document}

-
But this resets the counter with every chapter and this is not desirable. –  Gonzalo Medina Apr 24 '12 at 15:15
@GonzaloMedina --- indeed. I should have checked more carefully! I've fixed it now. –  Ian Thompson Apr 24 '12 at 15:21
@IanThompson: While this answers the question, there's already a very detailed answer at the duplicate question that's been linked to. In general, it's preferable to vote to close in a case like this, instead of duplicating information. That will make it easier to keep information up to date. –  Jake Apr 24 '12 at 15:25
@Jake --- I'm aware of that, but I didn't see the comment pointing to the duplicate. I was in the process of editing my answer. –  Ian Thompson Apr 24 '12 at 15:28