Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Possible Duplicate:
Continuous v. per-chapter/section numbering of figures, tables, and other document elements

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?

share|improve this question
add comment

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

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 Answer

Use the chngcntr package.

\documentclass{scrreprt}
\usepackage{chngcntr}
\counterwithout{equation}{chapter}
\begin{document}
\chapter{a chapter}
\begin{equation}
a = b
\end{equation}
\chapter{another chapter}
\begin{equation}
a = b
\end{equation}
\end{document}
share|improve this answer
1  
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
1  
@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
add comment

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