[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: and a question
From: |
Valeriy E. Ushakov |
Subject: |
Re: and a question |
Date: |
Mon, 26 Mar 2001 06:19:51 +0400 |
User-agent: |
Mutt/1.2.5i |
On Mon, Mar 26, 2001 at 01:11:54 +0400, Dmitry Kirsanov wrote:
> Suppose I need to code the following style rule:
>
> A figure caption is centered if it would fit on one line,
> otherwise it is set ragged right.
>
> How can I do this in Lout?
This examples shows it:
@DP
@Center { rragged } @Break {
A figure caption is centered if it would fit on one line.
}
@DP
@Center { rragged } @Break {
A figure caption is centered if it would fit on one line.
A figure caption is is set ragged right if it wouldn't.
}
The contraint satisfaction engine resolves wich part of
@Center { rragged } @Break { ... }
will take effect.
For a short text no breaking is needed for { rragged } @Break { ... }
and @Center takes care of centering the result in the remaining blank
space.
For a long text { rragged } @Break { ... } will consume all the
available width (breaking paragraph as specified). And @Center will
simply has no blank space to center the result in and thus will be a
no-op.
SY, Uwe
--
address@hidden | Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen