[xep-support] outside/inside without floats?

Kevin Brown kevin at renderx.com
Wed Sep 2 10:05:05 PDT 2009


All:

After looking at a sample of what is trying to be accomplished, I believe
the following is what you are trying to achieve:

****************************

caption  picture


caption  picture


****************************

		picture  caption


		picture  caption


****************************


This can be done using two floats:

<fo:block space-after="6pt">
	<fo:float float="inside"><fo:block-container width="2in"
height="3in" background-color="red"><fo:block>I am a
caption</fo:block></fo:block-container></fo:float>

	<fo:float float="inside"><fo:block-container width="2in"
height="3in" background-color="green"><fo:block>I am a
picture</fo:block></fo:block-container></fo:float>
</fo:block>

<fo:block space-after="6pt">
	<fo:float float="inside"><fo:block-container width="2in"
height="3in" background-color="red"><fo:block>I am a
caption</fo:block></fo:block-container></fo:float>

	<fo:float float="inside"><fo:block-container width="2in"
height="3in" background-color="green"><fo:block>I am a
picture</fo:block></fo:block-container></fo:float>
</fo:block>

There is no need to nest floats. The floats will stack together properly as
encountered in the FO to the specified boundary (in this case the "inside"
(left on odd page). Or depending on the book, you can use "outside" (right
on odd page).

Kevin Brown
RenderX, Inc.


-----Original Message-----
From: owner-xep-support at renderx.com [mailto:owner-xep-support at renderx.com]
On Behalf Of Michael Sulyaev
Sent: Tuesday, September 01, 2009 2:17 PM
To: xep-support at renderx.com
Subject: Re: [xep-support] outside/inside without floats?

Kirch Fritz wrote:
> On a right page, the legend should be on the right side of the picture.
> On a left page, the legend should be on the left side of the picture.

Hello Friedrich,

I do not see any way to achieve this in FO (although the requirement is 
perfectly legal). You may try to hack it around in XEPOUT. If your 
pictures and legends are easily recognizable there, it should be quite 
simple to swap pictures with legends on e.g. odd pages with the help of 
XSLT.

Regards,
Michael Sulyaev
RenderX

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service
http://www.renderx.com/terms-of-service.html

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html



More information about the Xep-support mailing list