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

From: Andy Black <andy_black@sil.org>
Date: Tue Aug 14 2007 - 08:59:41 PDT
Dave Pawson wrote:
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

  

Thanks, Dave.  It looks like that will work, but it will require the user to know not only the width of the table, but also the width of the caption in order to get things to come out right.

Unfortunately, in my case the assumption is that the user knows neither the width of the table nor the width of the caption ahead of time.  That is, I was hoping that the rendering engine would be able to calculate all of these automatically since it knows these widths.

--Andy

------------------- (*) 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 09:55:30 2007

This archive was generated by hypermail 2.1.8 : Tue Aug 14 2007 - 09:55:35 PDT