Return-Path:<rms@cmu-cs-speech.arpa>
Received: from CMU-CS-SPEECH.ARPA by CMU-CS-A.ARPA; 23 May 85 21:17:22 EDT
Received: from CMU-CS-IUS.ARPA by CMU-CS-SPEECH.ARPA;  8 Jan 85 12:06:42 EST
Date: 8 Jan 1985 11:50-EST
From: Ellen.Walker@CMU-CS-IUS.ARPA
Subject: Re: Scribe macros for matrices?
To: Richard.Stern@CMU-CS-SPEECH  
Message-Id: <474051029/elw@CMU-CS-IUS>
In-Reply-To: Richard.Stern@CMU-CS-SPEECH's bboard message of 08-Jan-85 10:13    
Resent-To: bovik
Resent-From: Richard.Stern@cmu-cs-speech.arpa
Resent-Date: Thursday, 23 May 1985 21:17:18 EDT

Try the macros in [i]/usr/elw/lib/scribe/stack.lib .  They will allow
you to create column vectors 2, 3, and 4 elements high.
The 4-element high vector takes about 3 lines of space, and fits nicely
with the brackets @lbr3 and @rbr3.  The macros are named 
"stacknx" where n is either 1, 2, or 3, and x is a symbol which
determines which element of the vector is the widest.  (For example,
@stack4t creates a stack of 4 elements with the top one being the
widest.)  One bug I have not been able to fix is that there cannot
be two "widest" symbols.  The way to get around this is to surround
one of them by 1/2 spaces (#) and treat that one as the widest.  Here
is an example:

@begin(m)
T@ =@ @lbr3@~
@stack4b(t=<1>,mt=<0>,mb=<0>,b=<#0#>)@~
@stack4t(t=<#0#>,mt=<1>,mb=<0>,b=<0>)@~
@stack4t(t=<#0#>,mt=<0>,mb=<1>,b=<0>)@~
@stack4t(t=<#x@down(t)#>,mt=<y@down(t)>,mb=<z@down(t)>,b=<1>)@~
@rbr3
@end(m)

The matrix created by this is:
1 0 0 xt
0 1 0 yt
0 0 1 zt
0 0 0 1

inside large versions of the brackets [ ] .

I hope this helps.  If you decide to use these and have any further
questions, please let me know.

Ellen
