lout-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: odd @FullWidthRule behaviour


From: Valeriy E. Ushakov
Subject: Re: odd @FullWidthRule behaviour
Date: Sun, 6 Feb 2000 18:54:52 +0300

On Sun, Feb 06, 2000 at 05:24:19PM +0300, Mikko Huhtala wrote:
> @SysInclude { doc }
> def @LineWidth
>       { 0.05c }
> @Doc
> @Text @Begin
> @FullWidthRule linewidth { @LineWidth }
> @End @Text
> 
> 
> is processed without complaint by Lout 3.17. However,
> Ghostscript/Ghostview will not process the resulting ps, but dump out
> error messages instead. Am I doing something silly or is this a bug in
> Lout or ghostscript? I'm using ghostscript 5.10 and gv 3.5.8 on Linux.

If you look at the definition of @FullWidthRule, you'll see that the
"linewidth" parameter imports the @LengthUnits symbol, that takes care
of converting 0.05c into appropriate PS or PDF code (see "include/bsf").

Since Lout is statically scoped, your @LineWidth is evaluated in its
lexical scope, and so is unaffected by the exports of @LengthUnits
imported into the scope of "linewidth" paramter.

Make it

     import @LengthUnits def @LineWidth { 0.05c }


SY, Uwe
-- 
address@hidden                         |       Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/            |       Ist zu Grunde gehen


reply via email to

[Prev in Thread] Current Thread [Next in Thread]