Re: Writing letters

Mark Summerfield <[email protected]>
Newsgroups gmane.comp.type-setting.lout
Message-ID <[email protected]>
On 2008-09-30, Robert Riebisch wrote:
> Hi all!
>
> When writing a letter is there a smart way to always make the
> recipient's address start at, e.g., 6.0cm to make it fit to a window
> envelope? Here's what I currently have.
> ***
> @SysInclude { tbl }
> @SysInclude { xrgb }
> @Include { cv_style.lt }
> @Doc @Text @Begin
> @RightDisplay 10p @Font { 0.85vx rlines } @Break {
>   Street No
>   Zip Town
>   Phone: 123456789
>   E-Mail: invalid"@"invalid.invalid
> }
> @Box
>   linewidth { none }
>   paint { @Xrgb grey90 }
>   @HExpand 1.5f @Font @B @S { Robert Riebisch }
> ***

You could use something like this (untested):

    @SysInclude { tbl }
    @SysInclude { xrgb }
    @Include { cv_style.lt }
    @Doc @Text @Begin
	@Place x{?}y{6c}{10p @Font { 0.85vx rlines } @Break {
	Street No
	Zip Town
	Phone: 123456789
	E-Mail: invalid"@"invalid.invalid
	}
	}
    @Box
    linewidth { none }
    paint { @Xrgb grey90 }
    @HExpand 1.5f @Font @B @S { Robert Riebisch }
    ***
    
Note that @Place objects are on top of everything else and don't take up
any space. The user guide does describe them and you can use relative x
and y coords.

-- 
Mark Summerfield, Qtrac Ltd, www.qtrac.eu
    C++, Python, Qt, PyQt - training and consultancy
        "C++ GUI Programming with Qt 4" - ISBN 0132354160
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.