Re: [xep-support] How to get a table caption to center over the table (and not the page)

From: Dave Pawson <dave.pawson@gmail.com>
Date: Tue Aug 14 2007 - 00:31:57 PDT

On 13/08/07, Andy Black <andy_black@sil.org> wrote:
>
> Hello,
>
> I'm wondering if there is a way to get a table caption to center over the
> width of the (left-aligned) table that it is the caption for. I've only
> been able to get a table caption to center within the page width itself.

 <fo:table-and-caption width="4in">
    <fo:table-caption>
      <fo:block font-weight="bold" start-indent="1in"
                display-align="auto"
                space-after=".3em"
                keep-with-next.within-page="10">This is the caption</fo:block>
    </fo:table-caption>

I.e. fix the width of the table,
then estimate 'center' for the table,
then indent that far?

HTH

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
-------------------
(*) 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/terms-of-service.html
Received on Tue Aug 14 01:21:17 2007

This archive was generated by hypermail 2.1.8 : Tue Aug 14 2007 - 01:21:22 PDT