On Mon, Aug 12, 2002 at 05:34:50PM +0300, Dekel Tsur wrote: > On Mon, Aug 12, 2002 at 05:20:35PM +0300, Martin Vermeer wrote: > > > > Only that it assumes that the counters for the paragraphs *up to that > > point* are in order. If you use per-buffer counters, you will find that > > this doesn't work anymore. The routine just continues counting on from > > the last figure in the buffer... not good. That's why you have to > > reset the counters and re-run the count over the *whole* buffer from the > > start. > > I still don't understand. > The current code works correctly for section counters.
Yes, because it is based on per-paragraph counters. I can get section counters work also correctly for per-buffer counters, but only if I modify updateCounters. > Why doesn't it work with figure float counters ? That's a long and blood-dripping tale, full of murder (the victim being whoever wrote the paragraph/text/buffer stuff, and the perpetrator me). I have been able to get the figure floats counting, but not to reset them only at the start of the buffer and nowhere else. It's a nightmare :-/ But feel free to try for yourself. The patch posted below (other mail) is a good starting point. Martin
msg42479/pgp00000.pgp
Description: PGP signature