Lars Gullik Bjønnes wrote: > But I am the only one able to counter your counter with a counter > counter patch.
Don't push your luck (or give up the day job ;-) >>> I guess ok. > | Aughhhhh. Thanks Lars. > > and now you must have a look again. Don't build in your source tree: Index: po/POTFILES.in +src/support/path_defines.C Initialise itemdepth when constructing it. Paragraph::Paragraph() : y(0), pimpl_(new Paragraph::Pimpl(this)) { - enumdepth = 0; itemdepth = 0; params().clear(); } I think you should add a decent comment about itemdepth in the deader file. Will this approach continue to work for (say) figure counters, or would they have their own counter? Be nice to people following after you: if (type == LABEL_ENUMERATE) + // Maybe we have to increment the enumeration depth. + incrementItemDepth(pit, ownerParagraphs().begin(), + LABEL_ENUMERATE); else if (type == LABEL_ITEMIZE) + // Maybe we have to increment the itemization depth. + incrementItemDepth(pit, ownerParagraphs().begin(), + LABEL_ITEMIZE); Alternatively, I don't think you need to pass LABEL_ENUMERATE, LABEL_ITEMIZE here at all. It can be extracted as pit->layout()->labeltype within incrementItemDepth. Nonetheless, it looks good. -- Angus