diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-08-16 08:07:35 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-08-16 08:07:35 +0000 |
commit | b37c1c700bcdab17f336263b833516190953d2f3 (patch) | |
tree | 60f15b06d3dc2fe6fb1dfaae811640edde731f03 | |
parent | 832727a81eed129fd66e4860023176cc2c2669bc (diff) | |
download | xmlgraphics-fop-b37c1c700bcdab17f336263b833516190953d2f3.tar.gz xmlgraphics-fop-b37c1c700bcdab17f336263b833516190953d2f3.zip |
Fix centering table example not to use empty table-cells which is forbidden. Use column-number instead! Works for both FOP 0.20.5 and Trunk.
Added note about right-aligning tables.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@232959 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/documentation/content/xdocs/fo.xml | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/documentation/content/xdocs/fo.xml b/src/documentation/content/xdocs/fo.xml index d1cd9d02a..4601988d3 100644 --- a/src/documentation/content/xdocs/fo.xml +++ b/src/documentation/content/xdocs/fo.xml @@ -1,6 +1,6 @@ <?xml version="1.0" standalone="no"?> <!-- - Copyright 1999-2004 The Apache Software Foundation + Copyright 1999-2005 The Apache Software Foundation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -175,11 +175,9 @@ Here is a small, self-contained document centering an image on a page: <fo:table-column column-width="proportional-column-width(1)"/> <fo:table-body> <fo:table-row> - <fo:table-cell/> - <fo:table-cell> + <fo:table-cell column-number="2"> <fo:block>foo</fo:block> </fo:table-cell> - <fo:table-cell/> </fo:table-row> </fo:table-body> </fo:table> @@ -190,6 +188,15 @@ Here is a small, self-contained document centering an image on a page: If your table is more complicated, or if defining borders on individual cells becomes too much work, use the code above and nest your table within the middle cell. </p> </section> + <section id="fo-right-align-table-horizon"> + <title>Right-Aligning (Tables)</title> + <p> + To right-align a table, you can use the same approach as above for centering tables. + Just remove the last table-column element which causes all the left-over space not + used by the columns with a fixed column-width to be assigned to the first column which + effectively right-aligns the table. + </p> + </section> <section id="fo-oddeven"> <title>Recto/Verso Static Content Differences</title> <p> |