lout-users
[Top][All Lists]
Advanced

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

Re: Changing Chapter heading format


From: Valeriy E. Ushakov
Subject: Re: Changing Chapter heading format
Date: Mon, 16 Feb 1998 03:26:34 +0300

On Mon, Feb 16, 1998 at 09:28:52AM +1030, Robbe Stewart wrote:

> The attached bit of code (from 'mydefs') fails. If anyone can help debug
> it for me or alternatively provide a better solution, it would be much
> appreciated.

> import @DiagramPrint
> def @ReverseChapHead
>   left number
>   right title
> {
>   # @Node 17cm wide by 1.3c high
>   @Diag vsize { 1.3c } hsize { 17.0c }
>   {
>     { 0.265625 0.265625 0.265625 setrgbcolor } @SetColour
>     {
>       # 80% black box with white text
>       @Box paint { nochange }  white @Colour {2f @Font number }
>     }
>     # chapter title underneath chapter number
>     /0.5c title
>   }
> }

@Diag looks like too heavy a gunnery, especially since you are not
using any of diag features :-).  Try rewriting it like

    def @ReverseChapHead
      left number
      right title
    {
      1.3c @High 17.0c @Wide {
        { 0.265625 0.265625 0.265625 setrgbcolor } @SetColour {
          @Box paint { nochange }
              white @Colour { 2f @Font number }
        }
        //0.5c title
      }
    }

And see what happens.  Note, I rewrote it rather mechanically and
hadn't tested it.  I'll try to test it tomorrow when I'll get to my
graphic display.


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]