alignment question
If my image is centered, how do I get the next line (of text) to start at the left edge of the image? Thanks, Derrick This electronic transmission is strictly confidential to Smith & Nephew and intended solely for the addressee. It may contain information which is covered by legal, professional or other privilege. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message.
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]
Alignment question
Title: Message 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 theprice 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
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
Vertical alignment question
Hello - I have a question about vertical alignment within a block. I have a fixed-height block with a variable number of short lines, and I want the first (n - 1) lines grouped together at the top of the block, and line (n) aligned to the bottom of the block - something like this: --- Top of block Line 1 Line 2 Line 3 Line 4 --- Bottom of block This is produced with FO something like this fo:block height=30mm id=OUTER fo:block id=A fo:blockLine 1/fo:block fo:blockLine 2/fo:block fo:blockLine 3/fo:block /fo:block fo:block id=B fo:blockLine 4/fo:block /fo:block /fo:block (the id attributes are only for illustration here). Basically I want block A to be aligned to the top of block OUTER, and block B to be aligned to the bottom of block OUTER. This is subject to the constraint that block A (and also probably eventually block B) could have variable numbers of rows in them - otherwise I would just use fixed-height rows in a table, or something like that. Thanks in advance for any assistance. - Jonathan