Re: alignment question
Koes, Derrick wrote: If my image is centered, how do I get the next line (of text) to start at the left edge of the image? That's a though one. I suggest using a table for centering, and put the text in another row, roughly: fo:table table-layout=fixed width=100% fo:table-column column-width=proportional-column-width(1)/ fo:table-column column-width={$your-image-width}/ fo:table-column column-width=proportional-column-width(1)/ fo:table-body fo:table-row fo:table-cell/ fo:table-cell fo:block fo:external-image src=.../ /fo:block /fo:table-cell fo:table-cell/ /fo:table-row fo:table-row fo:table-cell/ fo:table-cell number-of columns spanned=2 fo:blocktext.../fo:block /fo:table-cell fo:table-cell/ /fo:table-row /fo:table-body /fo:table J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Alignment question
Hi, This could be done with fo:leader with space. You can use the default lengths which will exapnd to fill the space. I'm not sure if this is implemented properly yet. On Mon, 2002-11-18 at 14:05, Ries Spruit wrote: Hello, Im a trying to achieve something like this: -- |This is price text in a normal paragraph $ 250,00| | | | | or -- |This is a very long price text which will force the price to the next line but | |it should still be on the right. $ 250,00| From this element structure: priceText descriptionThis is a price text in a normal paragraph/description price$ 250,00/price /priceText The trick is that I want to allow the description to be as long as necessary. The price should be appended to the description but aligned to the right of the block that the priceText element is used in. Does anyone know of anyway of doing this without tables? Kind regards, Ries Spruit
RE: Alignment question
Thanks! Ofcourse this is the function I need. I can't really get it to behave right though. If I use this: fo:blockA Pricefo:leader leader-pattern=dots / 250/fo:block the result is this: |A | |Price..$| | 250| The block is a child element of another block and then fo:flow. No alignment properties are set on the flow region or the block regions. Setting alignment to left or start does not make any difference. Is there another special setting required or might it just be the implementation? I can imagine the algorithm for the leader length just calculating its length based on the last word on the left and the first word on the right instead of the endposition on the left and length of the text on the right. Ries Spruit -Original Message- From: Keiron Liddle [mailto:[EMAIL PROTECTED] Sent: maandag 18 november 2002 14:20 To: [EMAIL PROTECTED] Subject: Re: Alignment question Hi, This could be done with fo:leader with space. You can use the default lengths which will exapnd to fill the space. I'm not sure if this is implemented properly yet. On Mon, 2002-11-18 at 14:05, Ries Spruit wrote: Hello, Im a trying to achieve something like this: -- -- -- |This is price text in a normal paragraph $ 250,00| | | | | or -- -- -- |This is a very long price text which will force the price to the next line but | |it should still be on the right. $ 250,00| From this element structure: priceText descriptionThis is a price text in a normal paragraph/description price$ 250,00/price /priceText The trick is that I want to allow the description to be as long as necessary. The price should be appended to the description but aligned to the right of the block that the priceText element is used in. Does anyone know of anyway of doing this without tables? Kind regards, Ries Spruit
Re: Alignment question
Ries Spruit wrote: Ofcourse this is the function I need. I can't really get it to behave right though. If I use this: fo:blockA Pricefo:leader leader-pattern=dots / 250/fo:block the result is this: |A | |Price..$| | 250| There is a bug in line breaking implementation preventing using leader in such a situation, see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7490 and http://marc.theaimsgroup.com/?l=fop-devm=101870987823875w=2. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel