Martin Vermeer wrote:
On Sun, Jul 15, 2007 at 09:59:32AM -0400, Paul A. Rubin wrote:
Hi,
Before I put this is in as an enhancement request, I wanted to make sure it
doesn't already exist. I know you can define counters in a layout function.
Is there a mechanism to specify, say when defining a section style, that
certain counters get reset at the start of the section? If not, I'll put it
in bugzilla.
The reason this came up is that the standard AMS document class restarts
theorem numbering in each section, but the amsart.layout does not.
Thanks,
Paul
Yes, this is possible, but I don't remember the details. Look in
stdcounters.inc the Within keyword.
HTH Martin
Thanks, Martin, it helped a lot.
I've put two zip archives on a web server, one for version 1.4.x
(http://www.msu.edu/~rubin/amsmath14.zip) and the other for version
1.5.x (http://www.msu.edu/~rubin/amsmath15.zip). They contain tweaked
copies of the various layout and include files for AMS articles. The
1.5 zip file also includes a small LyX document for testing them. The
purpose of the changes was two-fold:
1. I added the Assumption and Assumption* environments, which AMS
supports but the layouts previously did not.
2. I convinced the "standard" AMS layout to number theorem-like styles
within sections (so that the first theorem of section 3 is 3.1, not
3.<previous number + 1>).
I don't *think* I broke anything, but then I never think I'm breaking
anything.
If some kind developer would test these and then commit them if
appropriate, I would be obliged. If you'd prefer diff files, that could
probably be arranged. Sorry for the web links, but I tried posting this
through GMANE with zip attachments, and <sigh>a server at Memphis U
bounced it back to me</sigh>.
Thanks,
Paul