% problems.sty rph@ce.ucsc.edu 29 nov 94 % based on original from jes@cs.brown.edu % % Create a new counter that resets when chapter is incremented, and % make its numbering include chapter numbers. % Instead of \usecounter, do a direct \def on \@listctr and % set nmbrlisttrue to avoid zeroing the counter for % segmented problem sets. \newcounter{pc}[chapter] \def\thepc{\thechapter.\arabic{pc}} \def\problems{\list {\thepc}{\@nmbrlisttrue\def\@listctr{pc}} \setlength{\leftmargin}{\rightmargin}} \def\endproblems{\endlist}