Floating figures do not work

7 views
Skip to first unread message

Vladimir Kulev

unread,
Nov 8, 2012, 3:44:02 PM11/8/12
to wikipu...@googlegroups.com
Just tried to render http://www.wikipublisher.org/wiki/Examples/LfloatRfloat and it seems to be broken. Is it supposed to work?

JR

unread,
Nov 8, 2012, 4:26:59 PM11/8/12
to wikipu...@googlegroups.com
Try it now. Wikipublisher can interpret floating images in various ways.

By default, all images float, rather than, as in this case, have text wrap around them. This is because if a document mixes floating and wrapping images, the figure numbers can get out of sequence (figure 1 floated may print after figure 2 wrapped).

So Wikipublisher interprets left and right floats (%lfloat% and %rfloat%) as images with side captions. This is the behaviour shown originally in the example page.

What if an author wants to wrap text around a figure? We make use of %lframe% and %rframe% styles *and* let the author turn wrapping on and off with a print metadata option. With wrapfloat=on (as shown on the example page), lframe wraps around the inside margin and rframe wraps around the outside margin. This produces mirrored even and odd pages. It also lets outside margin images span the margin space (as in the example). If duplex is off, lframe goes to the left margin and rframe goes to the right margin on every page.

An author can mix [lr]float and [lr]frame, but there is a risk that figure numbers will be out of sequence. When wrapfloat=off (the default) [lr]float and [lr]frame produce the same output.

So the short answer is, not broken, works as designed, but perhaps not as expected.

Hope this helps,
JR

Vladimir Kulev

unread,
Nov 8, 2012, 4:39:21 PM11/8/12
to wikipu...@googlegroups.com
OK, thanks for explanation and recipe! Side captions look just weird for me.

Vladimir Kulev

unread,
Nov 8, 2012, 4:37:36 PM11/8/12
to wikipu...@googlegroups.com
Thanks for explanation and recipe!


On Friday, November 9, 2012 1:26:59 AM UTC+4, JR wrote:
Reply all
Reply to author
Forward
0 new messages