Article View: comp.text.tex
Article #11086Re: row vector times matrix alignment
From: David Carlisle
Date: Fri, 08 Jan 1993 09:56
Date: Fri, 08 Jan 1993 09:56
60 lines
2677 bytes
2677 bytes
In article <9985180@MVB.SAIC.COM> DL24794%UAFSYSB.BITNET@SHSU.edu (Daniel H. Luecking) writes:
> From: mclean@math.tamu.edu (Robert Mclean)
.......
> Unfortunately, this produces:
>
> ( )
> ( )
> ( )
> (x,y,z) (a1,a2,a3)
> (a4,a5,a6)
> (a7,a8,a9)
>
> Aack! Any suggestions.
>
Yes. The problem is that the delimiters are constructed to be
symmetric above and below the math axis. Putting the array in a
\vtop causes the math axis of the whole matrix to be in the top
row. This is correct for aligning the two matrices at their
top rows, but not for the variable delimiters.
The following macro works by putting the array in a \vtop, then
unboxing it into a \vcenter with the parenthesis and spacing
added. This is done inside math mode with \displaystyle set,
inside an \hbox inside a \vbox to the height of the original
\vtop. This worked in simple examples, but can probably be
defeated by more complicated ones. Two successive \tpmatrix's
will align at their first rows.
......
[plain tex macro deleted]
LaTeX users can get matrices with any kind of delimiters aligned at
the top or bottom by going
\begin{array}[t]({...}) % ( ) aligned on top row
\begin{array}[b]\{{...}\} % { } aligned on bottom row
etc
This mechanism is defined in delarray.sty part of Frank Mittelbach's
ARRAY package. available from all good servers. (Frank isn't to blame
for delarray.sty though :-)
David
PS: if you are using my newarray.sty, which used to offer this feature,
please throw it array, and get the new ARRAY package instead.
--
David Carlisle
JANET: carlisle@uk.ac.man.cs
Computer Science Department
Manchester University
Oxford Road
Manchester
England
M13 9PL
Technical Details
Message-ID:
<CARLISLE.93Jan8095610@r8d.cs.man.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!gatech!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!uknet!mucs!m1!carlisleReferences:
<9985180@MVB.SAIC.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!uknet!mucs!m1!carlisle From: carlisle@cs.man.ac.uk (David Carlisle) Newsgroups: comp.text.tex Subject: Re: row vector times matrix alignment Message-ID: <CARLISLE.93Jan8095610@r8d.cs.man.ac.uk> Date: 8 Jan 93 09:56:10 GMT References: <9985180@MVB.SAIC.COM> Sender: news@cs.man.ac.uk Organization: Department of Computer Science, University of Manchester Lines: 60 In-reply-to: DL24794%UAFSYSB.BITNET@SHSU.edu's message of 7 Jan 93 22:47:44 GMT