"Ignacio García" <[email protected]> írta:
>Csikos Bela, wrote on Sun, 11 Mar 2012>I would like to align to the right 
>margin a block of text in the following way:>
> - The end of the longest line in the block aligned to the right margin>
> - The beginnings of the other lines in the block aligned to the beginning of>
>   the longest line in the block.You can try with Insert>Box, then 
> Insert>Formatting>Horizontal Space>Horizontal Filland then another Box.You 
> have to manually adjust the width of the boxes, especially the second to 
> adjust the margin>


Thank you all for replying.
I did exactly the same, I used two minipages,  one on the left and one on
the right. What problematic is the width of the right minipage.
It should be exactly the length of the longest line it contains,
but it can not be set like that. Setting the width manually is not a
real solution since by changing font type or size might require
resetting its width.
I guess the same applies to tables.
I found \makebox command; its width can be set exactly to the
width of its content with the \width parameter. Unfortunately
\makebox command works only with one line boxes. It can not
have new lines.
All in all there is no good solution so far.

Thanks,

bcsikos

Reply via email to