On Fri, Aug 09, 2002 at 08:09:19PM +0100, Angus Leeming wrote:
> 
> On Friday 09 August 2002 7:24 pm, Martin Vermeer wrote:
> > Float counters fail to count, but that is quite unrelated to this: I
> > believe it is due to float captions not being part of the same
> > linked list of paragraphs (as linear text with sectioning headers, or
> > even nested enumerated lists, are). I have to think of some other
> > copy-over mechanism than from previous().
> 
> Hmmmmmm. The more I look at this code, the less I follow it.
> 
> Let's start at the beginning. Why does a Paragraph own a Counters varaible 
> not a single Counter?

Because all counters have to be propagated through the paragraphs linked
list. If it is a standard layout, it should nevertheless hand though all 
sectioning counters to the sectioning headers that may follow -- of any 
level.

> I can imagine a Paragraph owning a Counter of type Section and that it could 
> ascertain the value of this Counter by interrogating the Buffer that owned a 
> Counters variable.

That could actually be better. For floats it is the solution I was
thinking of. But the logic will become a bit different then. 

So your paragraph would only touch the section counter from the buffer-wide
array, assign it to its own counter after stepping (incrementing) it.
Yes that works. 

Also the 'slave' counter (subsection) must then be reset in the Buffer array.
As the next subsection header is encountered in the text, it will be taken 
and incremented.

Hmmm yes, why not? This should work. It might even fix the floats 
problem as a side effect. But how would you set up the Buffer Counters?
I just didn't see how to do that.

> It seems daft to have a list in each paragraph when the paragraph uses only a 
> single element of the list.

Yes. But that's how it was before...
 
> No doubt I'm confused and the current design is Good.

Don't count on it. Your proposal makes sense.

> Angus
 
Martin

Attachment: msg42340/pgp00000.pgp
Description: PGP signature

Reply via email to