The*gurus keep insisting that instead of making new
classes/packages from scratch, one should write classes/packages on
top of existing software. They therefore recommened that we do
\renewcommand and \renewenvironment instead of just putting in \defs
all over the place while redefining existing commands. I have reached
a stage where I need to redefine a counter from an existing class to
make it suit my needs without having to copy the entire class file and
then change the one line I want to change.
Q1) Why doesn't*have a \renewcounter? Is it because someone
thought that the implementation will be too hard because it will have
to remove the counter from the parent counter's reset list?
Q2) Well, given that*has no \renewcounter, any sugegstions on
how to solve this problem? I want to build a document class which has
many similarities to the report class. However, the report class uses
figure numbers as chapternumber.figurenumber. I need continuous figure
numbers across all chapters, which are not reset for every chapter.
The report class (or style) defines
What I want is
As to how to play with \thefigure, I can use \renewcommand on it (not
\def because that's not a nice method!!) to fix it.
Any sugegstions on how to write clean code that allows me to use
`figure' as my counter with the values I want in them?
Thanks in advance for any help.
: Manas Mandal Department of Computer and Information Science :
: The Ohio State University :