lout-users
[Top][All Lists]
Advanced

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

Re: Problems with aligned displays


From: Valeriy E. Ushakov
Subject: Re: Problems with aligned displays
Date: Wed, 14 Jul 1999 21:08:18 +0400

On Wed, Jul 14, 1999 at 05:09:24PM +0200, Stephan Pabst wrote:

> - Aligning does not work correctly when a non-raw display is
>   followed by a raw display
> - Numbers are shifted beyond the right margin when the first
>   equation of an aligned block is a non-numbered one

I believe that attached patch should fix this.  NOT TESTED(!) except
with your example, so I'd apprectiate if you also give it a try with
user's guide and some other documents.

The problem is as follows: compare the raw and cooked versions (with
few shorthand macros expanded):

    macro @IAD  { @DP |@DisplayIndent @APlace |  @DP  // @ADisp }
    macro @RIAD {     |@DisplayIndent @APlace |          @ADisp }


So what happens is that in raw version the @ADisp is sent to its place
and is replaced with @Null at the point of invocation, but there's no
guarding // that would eat that @Null.  (And note how we still have
guarding // in the cooked version to protect the @DP gap from being
discarded by @Null.)

Attached patch fixes raw versions to provide the guard:

    macro @IAD  { @DP |@DisplayIndent @APlace |  @DP  // @ADisp }
    macro @RIAD {     |@DisplayIndent @APlace |       // @ADisp }

Actually the symmetry introduced by the fix should be sufficient
explantion: we obtain the raw version by throwing away the @DP from
the cooked version.


Hope it helps.

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

Attachment: align.diff
Description: Text document


reply via email to

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