\renewcounter{ctr} command?

\renewcounter{ctr} command?

Post by Fernando M Bran » Tue, 13 Aug 1991 07:00:53



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?

Post by Anita Marie Hoov » Sun, 18 Aug 1991 00:09:54



=>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?

Post by David M. Jon » Sun, 18 Aug 1991 08:39:46




>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?

Post by David M. Jon » Sun, 18 Aug 1991 07:34:31





>=>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?

Post by Anita Marie Hoov » Tue, 20 Aug 1991 22:19:03



=>







=>            \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.

 
 
 

1. space following command without \command{} or \command\

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.

2. @pophost:user@host problem

3. \Roman{ctr} in LaTeX, Forcing expansions of tokens in TeX

4. Template for Email Stationary

5. How can I do a "renewcounter" in latex

6. Modem can't Dial out

7. renewcounter

8. need USR Modem Docs V.everything

9. Why doesn't LaTeX2e have a \renewcounter?

10. \renewcounter

11. index command in selfdefined command

12. Command that defines commands?