"Bo Peng" <[EMAIL PROTECTED]> writes: >> from what I understand, it looks pretty well done and >> works, too. > > Thank you for testing. A polished patch has been submitted to trunk, > and a patch for branch is attached.
I have to say that I do no like much the principle of this patch (post-processing of latex output by regexs). While I cannot point at a particular bug and do not have a better solution for our current code base, I think it should be changed later (and not be generalized). We should maybe reconsider the label-as-an-inset strategy and make the label a paragraph property. This will loose some flexibility for the 1% of people who know that their label should be at position 47 of the paragraph (for a pageref?), but makes more sense and is more flexible in the long run. JMarc PS: this patch also shows how painful it is to work with package which find it funny to entirely redefine how latex code should look like.