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

Dave Pawson dave.pawson at gmail.com
Tue Aug 14 00:31:57 PDT 2007


On 13/08/07, Andy Black <andy_black at 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 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