lout-users
[Top][All Lists]
Advanced

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

reversed vertical stacking of objects


From: Oliver Bandel
Subject: reversed vertical stacking of objects
Date: Fri, 21 Sep 2001 23:13:52 +0200 (MET DST)

hello,

I'm looking for a possibility to stack up objects
vertical and to do this in reversed order.

Another thing I need is to correlate this stacked objects
hight with positions of rotated objects' position.


Example:

The Line

90d @Rotate { a b c d e f g h i j k l m n o p q r s t u v w x y z }

creates the rotated stuff.
  
Then there is another line, maybe containing the same text:

 a b c d e f g h i j k l m n o p q r s t u v w x y z 

Needed is "a" command/macro, that puts the a of the second
text on a vertical position of the middle of the rotated
"a", the b of the second text at hte position of the "b"
of the rotated text and so on.

How can I produce such layout?

Do I need to use tzhe graphics-commands (@Diag or such stuff)?

I tried this one:

@Box{
90d @Rotate { a b c d e f g h i j k l m n o p q r s t u v w x y z }
} ^|| @Box {  a / b // c ^/ d // e // f // g // h }

This yields in non-matching vertical distances and the wrong
direction of the unrotated stuff.

if it were possible to use a command like

   @Reverse { list of objects unreversed }

which would be replaced by

    unreversed objects of list

and if therer would be a @Foreach -command,
or a @Map command (like in perl or Haskell (Lisp?))

It would be possible to write
 @Foreach {list of objects unreversed } { @Box }

or

       @Map @Box { list of objects unreversed }

which would create an output, equivalent to

       @Box { unreversed } @Box { objects } @Box { of } @Box { list } 



Or an       @Map { / @Box } { list of objects unreversed }
would yield in 

       / @Box { unreversed } / @Box { objects } / @Box { of } / @Box { list } 




Because I can't find such, I tried an other way of
concatenation:

@Box { 90d @Rotate a a }
/ @Box { 90d @Rotate b b }
/ @Box {  90d @Rotate c c }
/ @Box {  90d @Rotate d d }
/ @Box {  90d @Rotate e e }

But an

@Reverse {
@Box { 90d @Rotate a a }
/ @Box { 90d @Rotate b b }
/ @Box {  90d @Rotate c c }
/ @Box {  90d @Rotate d d }
/ @Box {  90d @Rotate e e }
}

would be more what I want.
But I dislike, that the boxes are not of same wide,
and the characters which are vertical stacked are not
lined up in *one* vertical line (there are more
than one column mark and this looks ugly.

So how to produce the right layout?

Las I tried now:

@Box { 90d @Rotate 2m @High a |5m 2m @Wide a }
/ @Box { 90d @Rotate 2m @High b |5m 2m @Wide b }
/ @Box {  90d @Rotate 2m @High c |5m 2m @Wide c }
/ @Box {  90d @Rotate 2m @High d |5m 2m @Wide d }
/ @Box {  90d @Rotate 2m @High e |5m 2m @Wide e }



But now the rotated letters are not centered
vertically.

How can I achieve this?

TIA,
   Oliver


reply via email to

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