docbook-apps

Caption spacing in mediaobject

  • 1.  Caption spacing in mediaobject

    Posted 02-12-2007 22:04

    Hi,

    How do I control the spacing between an imageobject and a caption in
    PDF output? The default spacing puts a caption closer to a following
    figure than to the figure it belongs to. Also, is there a way to keep
    the image and caption on the same page? I see some reference that FOP
    0.93 supports keeps but don't understand how they work.

    This is an example of what I have in my source file:

    <mediaobject>
    <imageobject>
    <imagedata fileref="test.png" format="PNG" align="center"/>
    </imageobject>
    <textobject>
    <phrase>Test</phrase>
    </textobject>

    <para>
    The caption.
    </para>

    </mediaobject>
    <mediaobject>
    ...

    I am using FOP SVN and docbook-xsl-snapshot.

    Thanks,

    Tav