Hi,

>>>>>> "Martin" == Martin Vonwald <[EMAIL PROTECTED]> writes:
>
>Martin> Hi there! I am writing a document with book (koma-script)
>Martin> style and I need the equations numbered continous across
>Martin> different chapters (1, 2, 3, 4, ... instead of 1.1, 1.2, 2.1,
>Martin> 2.2, ..). I added
>Martin> \renewcommand{\theequation}{\thesection.\arabic{equation}} to
>Martin> the preamble, but then I get something like 1, 2, 1, 2, 3, 1,
>Martin> 2, ... What do I have to add to the preamble so that the
>Martin> equation counter is NOT reset at each chapter?

I found the following in the german TeX-FAQ at
        http://www.dante.de/faq/de-tex-faq/html/makros4.html#91:

8.5.5 Wie kann ich erreichen, daß ein Zähler bei Erhöhung eines anderen
Zählers zurückgesetzt bzw. nicht zurückgesetzt wird?

Mit der Deklaration \@addtoreset{equation}{section} kann man erreichen, daß der 
Gleichungszähler immer dann
auf Null zurückgesetzt wird, wenn der Abschnittszähler erhöht wird. Diese Deklaration 
wird implizit aufgerufen, wenn man in
der Deklaration des Gleichungszählers das optionale Argument verwendet, also 
\newcounter{equation}[section].
Soll das Gegenteil erreicht werden, so wird das Paket ,remreset' benötigt, das die 
Deklaration \@removefromreset
implementiert, mit der man durch \@removefromreset{equation}{section} obiges 
nachträglich wieder rückgängig
machen kann. 
 remreset:  
          CTAN: macros/latex/contrib/supported/carlisle/remreset.sty


The same in english (with the help of babelfish):

        8.5.5  How can I achieve that a counter is reset with the
        increase of another counter or is not reset? 

            With the declaration \@addtoreset{equation}{section} one can
        achieve that the equation counter is reset to zero whenever the
        paragraph counter is increased. This declaration is implicitly
        called, if one uses the optional argument in the declaration of                
        the equation counter, thus \newcounter{equation}[section]. If the
        opposite is to be achieved, then the package 'remreset' is
        needed, which implements the declaration \@removefromreset,
        with which one can cancel the above subsequently using
        \@removefromreset{equation}{section}. 


So all you have to do is to install the attached package and to insert the
following in the Latex preamble:
        \usepackage{remreset}
        \@removefromreset{equation}{chapter}


Regards,
Ingo

% remreset package
%%%%%%%%%%%%%%%%%%

% Copyright 1997 David carlisle
% This file may be distributed under the terms of the LPPL.
% See 00readme.txt for details.

% 1997/09/28  David Carlisle

% LaTeX includes a command \@addtoreset that is used to declare that
% a counter should be reset every time a second counter is incremented.

% For example the book class has a line
% \@addtoreset{footnote}{chapter}
% So that the footnote counter is reset each chapter.

% If you wish to bas a new class on book, but without this counter
% being reset, then standard LaTeX gives no simple mechanism to do
% this.

% This package defines |\@removefromreset| which just undoes the effect
% of \@addtorest. So for example a class file may be defined by

% \LoadClass{book}
% \@removefromreset{footnote}{chapter}


\def\@removefromreset#1#2{{%
  \expandafter\let\csname c@#1\endcsname\@removefromreset
  \def\@elt##1{%
    \expandafter\ifx\csname c@##1\endcsname\@removefromreset
    \else
      \noexpand\@elt{##1}%
    \fi}%
  \expandafter\xdef\csname cl@#2\endcsname{%
    \csname cl@#2\endcsname}}}


Reply via email to