lout-users
[Top][All Lists]
Advanced

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

Re: @CP


From: Valeriy E. Ushakov
Subject: Re: @CP
Date: Fri, 5 Dec 1997 14:44:50 +0300

On Thu, Dec 04, 1997 at 09:57:39PM -0800, Terrence Brannon wrote:

> 1- It would be nice if you could simply specify the filename instead
> of including the text from the .cpp file

The following works just fine for me:

  @CP { @Include { myprog.cpp } } 


> 2- Apparently this mode does not support pagebreaks. A small c
> fragment was included fine. A larger one yielded: 
> 
>  244,1: 18.354c object horizontally scaled by factor 0.87 (too wide for 
> 15.989c paragraph)

[...]

> @SubSection 
>       @Title {The Lateral Inhibition Program}
> @Begin
> @PP
> 
> @CP 
>   style {varying}

Attn: FAQ compiler!  This is a variation of common mistake.

    macro @PP { //@ParaGap @ParaIndent @Wide &{0i} }

So what you are asking for is:

    //@ParaGap
    { @ParaIndent @Wide {} } &0i @CP {...}

You concatenate horizontally a @ParaIndent wide blank object and the
whole formatted source of your program.

Read expert's guide for deatails (pp25-27, section 2.7 "Galleys and
targets").  The problem is that since the '&' operator is used (not
'|') the vertical concatenations inside the @CP will not be considered
as potential split points.  If '|' is used (e.g. @ID @CP {...}), Lout
will find the split points (see last paragraph on p26).

Use '//' vertical concatenation operator.  Or use @DP or @LP both of
which expands to '//'.  Or put your @CP into a display.

Lout concatenates rectangular objects.  So when something doesn't work
as expected think which objects are concatenated and how.

Hope it helps.

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]