Article View: comp.text.tex
Article #11083Re: row vector times matrix alignment
From: Robert Mclean
Date: Fri, 08 Jan 1993 23:55
Date: Fri, 08 Jan 1993 23:55
29 lines
1234 bytes
1234 bytes
Many thanks to the respondents of my query on how to get tex to output
( x y z ) ( a b c )
( d e f )
( g h i )
Two solutions presented themselves. One due to Donald Arseneau who
did it "right" by modifying TeX's matrix code. See the his posting.
The "slick and quick" solution is as follows:
this is another method using vphantoms (boo!):
$$
\matrix{ \vec x= \cr
\vphantom{ 0 } \cr
\vphantom{ 0 } \cr}
\matrix{ \pmatrix{a & b & c\cr} \cr
\vphantom{ 0 } \cr
\vphantom{ 0 } \cr}
\pmatrix{ 1 & 0 & 0 \cr
0 & 1 & 0 \cr
0 & 0 & 1 \cr}
$$
and this solution is due to Bruce Ikenaga of Case Western
\bye
Possibly, one should use \mathstrut's instead of the \vphantom's.
Also, the later method actually does a better job of aligning the rows.
Technical Details
Message-ID:
<1il48kINNsp3@tamsun.tamu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!tamsun.tamu.edu!mcleanReferences:
<9985180@MVB.SAIC.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!tamsun.tamu.edu!mclean From: mclean@math.tamu.edu (Robert Mclean) Newsgroups: comp.text.tex Subject: Re: row vector times matrix alignment Date: 8 Jan 1993 23:55:00 GMT Organization: Dept of Mathematics, Texas A&M University Lines: 30 Message-ID: <1il48kINNsp3@tamsun.tamu.edu> References: <9985180@MVB.SAIC.COM> NNTP-Posting-Host: math.tamu.edu