Richard Heck <[EMAIL PROTECTED]> writes:

> So the main thing is the counter handling, which I know nothing about.
> JMarc, can you deal with that and apply to trunk?

I think the main thing is to modify ams classes to remove theorems and
put them in a proper module. This means:

1/ theorems-ams should be updated to latest ams classes changes

2/ does it really need to be called *ams? It does not really rely on
amsmath's version of newtheorem, does it?

3/ all the other classes should be modified to use the new theorems
modules if possible. The goal (if we are serious with this modules
idea) is to remove all home-made theorems entries.

4/ it /should/ be possible to obtain have two separate modules:
  * numberallastheorem.module: when loaded, every theorem-like uses the
    theorem counter, otherwise everyone has its own
  * nonumbering.module: as the name says.
  * numberinsection.module: when loaded,  all counters are reset at
  section change (otherwise numbering is continuous).

  Note that I am not 100% sure that this thing is possible, but
  otherwise we need 5 different modules to account for all
  possibilities.

  All this cries for being able to declare options in modules or
  classes, and have 'If numberinsection Then' in the module file.
  However, I do not see how to implement this cheaply.

I like the modules idea, but we have to provide a very clean set of
default modules, since we are going to support them for a long time.
We also need to evaluate how/whether lyx2lyx should fix the files to
use the new modules (add a module entry for ams files since we remove
the theorems layouts by default?).

JMarc

Reply via email to