Georg Baum wrote:
Am Samstag, 27. Januar 2007 15:44 schrieb Enrico Forestieri:
On Fri, Jan 26, 2007 at 11:58:02PM +0100, Abdelrazak Younes wrote:

Abdelrazak Younes wrote:
Georg Baum wrote:
I just tried to view the dvi. There's some problem here:

1) LateX doesn't accept multiple lines caption so we might have to forbid that I guess.

2) If you put multiple captions inside a same float, they are
numbered
sequentially even though they refer to the same float. I guess I
should
update my patch accordingly... What do you think?
I think that you should not try to fix what is not broken ;-)

I agree.

+       // All caption within this inset will have the same label and number.
+       ParagraphList & pars = inset.getText(0)->paragraphs();
+       if (pars.empty())
+               return;
This is wrong and will break many documents. I can put several images
in the same float, each having their own caption and label.

Indeed, see [FINAL PATCH].


That works here with the last version of the patch: Each caption gets a new number. Abdel, does that mean that your code is bnroken, or did you not implement that, and we only need to remove the comments?

Yes, I just forgot to modify the comment. You can modify that to:
+       // All caption within this inset will have the same label
+       // but not the same number.

Abdel.

Reply via email to