Re: [xep-support] text-align attribute in fo:external-graphic

From: Nikolai Grigoriev (grig@renderx.com)
Date: Sun Jan 12 2003 - 00:22:28 PST

  • Next message: Paul A. Hoadley: "Re: [xep-support] text-align attribute in fo:external-graphic"

    Hi Paul,

    > <fo:external-graphic src="url(\../images/eqn1.eps)" width="auto"
    > height="auto" content-width="auto" content-height="auto"
    > text-align="center"/>
    >
    > The figure comes out left justified -- should XEP be honouring
    > 'text-align="center"', or should the Docbook stylesheets be generating
    > something else.

    'text-align' attribute on fo:external-graphics has a different semantics: it
    aligns image (a rectangle 'content-width' x 'content-height') inside the
    viewport (a rectangle 'width' x 'height'). Both rectangles coincide in your
    case, so 'text-align' would have had no effect however. (But yes, XEP does
    not support 'text-align' in this context :-)).

    > The <fo:block> elements surrounding the
    > <fo:external-graphic> are attributeless: is this where the Docbook
    > stylesheets should be specifying alignment?

    Yes, they should. To align an image wrt its surrounding fo:block,
    'text-align' must be specified on the block. There's no difference with text
    alignment: fo:external-image is an inline object like any character, and
    should be positioned using the same rules.

    Best regards,
    Nikolai Grigoriev
    RenderX

    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@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/tos.html



    This archive was generated by hypermail 2.1.5 : Sun Jan 12 2003 - 00:22:38 PST