## \renewcounter{ctr} command?

### \renewcounter{ctr} command?

The*report document style numbers tables, figures, footnotes, etc., within
chapters.  I would like to avoid that and have consecutive numbers through the
entire report.  It would be nice to have a \renewcounter{ctr} command, but I
could not understand how to do it.

I would appreciate any suggestions.  Thanks.

Fernando Branco

### \renewcounter{ctr} command?

=>The*report document style numbers tables, figures, footnotes, etc., within
=>chapters.  I would like to avoid that and have consecutive numbers through the
=>entire report.  It would be nice to have a \renewcounter{ctr} command, but I
=>could not understand how to do it.
=>
=>I would appreciate any suggestions.  Thanks.
=>

Try this in your preamble area ...

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter
%
% Equation
%
\def\theequation{\arabic{equation}}
%
% Figures/Tables
%

% save counters

% restore counters

\refstepcounter{chapter}

\addcontentsline{toc}{chapter}{\protect
\numberline{\thechapter}#1}\else
\addcontentsline{toc}{chapter}{#1}\fi
\chaptermark{#1}
\addtocontents{lof}{\protect\addvspace{10pt}}

\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Maybe someone knows a better solution.

### \renewcounter{ctr} command?

>would be possible to implement one, but I'd much rather eat dinner
>right now...

Actually, I lied.  I much rather hack*than eat any day.

The following eyesore seems to do the job.  Any comments?

\fi}%

}

Then the solution to the original problem becomes:

\def\theequation{\arabic{equation}}

David M. Jones                              "Trifles! Trifles light as air!"

USmail: 17 Simpson Ave.; Somerville, MA 02144

### \renewcounter{ctr} command?

>=>The*report document style numbers tables, figures, footnotes,
>=>etc., within chapters.  I would like to avoid that and have
>=>consecutive numbers through the entire report.  It would be nice to
>=>have a \renewcounter{ctr} command, but I could not understand how
>=>to do it.
>=>
>=>I would appreciate any suggestions.  Thanks.
>=>

>Try this in your preamble area ...
>>\makeatletter

[lots of code to redefine counters deleted]

Well, here's a shorter and trickier way of accomplishing essentially
the same thing (I think).

\makeatletter

\def\theequation{\arabic{equation}}
\makeatother

would be possible to implement one, but I'd much rather eat dinner
right now...

Of course, I should probably add some sort of disclaimer to the effect
that things like this are better done in a style file and that, of
course, the correct way of doing is this is copying report.sty,
modifying the appropriate \newcounter commands and removing the

David M. Jones                                  "I'd suggest some kind of

USmail: 17 Simpson Ave.; Somerville, MA 02144    the time I really don't know
what I'm talking about."

### \renewcounter{ctr} command?

=>

=>            \fi}%

=>    }
=>
=>Then the solution to the original problem becomes:
=>

=>

=>        \def\theequation{\arabic{equation}}
=>

I think this is really handy -- good thinking.   The only comment I
would make is you still need \makeatletter and \makeatother around
the solution above.

Hi,
I found a few weeks ago a style file that included some command
that you could include inside your own commands that put a space
after it unless it was followed by punctuation.  Having eliminated
that command from my document, I "cleaned up" a little too much and
now have forgotten the name of the package and the command.

I was using it to do things like:
\newcommand{\html}{HTML\blah}
where \blah was the command this package supplied.

This was very useful, as I'm spreading LaTeX throughout my workplace
and it's easier to just define it like this instead of reminding
everyone
to add \  after using user-defined commands....

Please if anyone knows what package I'm talking about let me know.

-Kim.