You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Willy Reinhardt <wr...@novell.com> on 2005/06/27 16:42:23 UTC
Alignment issue
Hi,
I have a problem of aligmnemt and I don't find how to solve it with FOP. I have something like:
Article 1 Title
sub-title a
sub-tiltle b
or
Article 1.1.1.1.1.1 Title
sub-title a
sub-tiltle b
Title and subtitles should be align. My problem I can't have a dynamic space between number and Title according text length use by 1 or 1.1.1.1.
I tried:
- List with attribut provisional-distance-between-starts but the space is fixed so the render isn't very nice
- Table is the same problem because table-layout accept only fixed
- A solution using <block intrusion-displace="block"> and <float> but tag and properties aren't implemented in FOP
Any suggestion how to solve that problem using FOP ?
Thanks
Willy
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Alignment issue
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Willy Reinhardt wrote:
> I have a problem of aligmnemt and I don't find how to solve it with FOP. I have something like:
>
> Article 1 Title
> sub-title a
> sub-tiltle b
>
> or
>
> Article 1.1.1.1.1.1 Title
> sub-title a
> sub-tiltle b
>
>
> Title and subtitles should be align. My problem I can't have a dynamic space between number and Title according text length use by 1 or 1.1.1.1.
> I tried:
> - List with attribut provisional-distance-between-starts but the space is fixed so the render isn't very nice
> - Table is the same problem because table-layout accept only fixed
Both a list or a table should do the trick. E.g
<fo:table table-layout="fixed">
<fo:table-column column-width="4cm"/>
<fo:table-column column-width="4cm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block>Article 1</fo:block>
<fo:table-cell>
<fo:table-cell>
<fo:block>Title</fo:block>
<fo:block>sub-title a</fo:block>
<fo:block>sub-title b</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
I'm not sure why you think you need "a dynamic space between number and
Title". Somehow your problem description is inconsistent, could you
explain again?
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org