AH Formatter / XSL Formatter
Q&A



XSLT/XSL-FO/MathML Technics

Float

Top
Basic, General
About AH Formatter
About XSL Formatter
Operation
Programming
XSLT/XSL-FO/SVG/MathML Conformance
XSLT/XSL-FO/MathML Technics
Index
Q.  I suppose that a dropped capital should be possible using side-float, and I've gotten close, but I'm unable to get it 100%. In particular, I haven't figured out how to eliminate the empty space below the "H" that, if it wasn't there, would allow the 4th line to wrap under the "H" (the goal being to minimize the blank space underneath the "H"). [No.2002093012]
A. 

Your original fo is as follows:

<fo:block font-size="8pt">
<fo:float float="start">
<fo:block>
<fo:inline font-size="30pt">H</fo:inline>
</fo:block>
</fo:float>ere, we have a drop cap that should be 3-lines high.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
</fo:block>

It should be corrected as follows:

<fo:block font-size="8pt">
<fo:float float="start">
<fo:block space-after="-8pt" space-after.conditionality="retain">
<fo:inline font-size="30pt">H</fo:inline>
</fo:block>
</fo:float>ere, we have a drop cap that should be 3-lines high.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
Now is the time for all good men.
</fo:block>

Key points are space-after="-8pt" that eliminate the after space of the block object in the float. And space-after.conditionality="retain" to set the space-after effective at the after-edge of reference area. Please note that space-before/after is discarded at the before/after-edge of reference area, because the default value of space-before/after-conditionality is discard.


Copyright © 1999-2011 Antenna House, Inc. All rights reserved.
Antenna House is a trademark of Antenna House, Inc.