[Tugindia] Matrix Column alignments

Radhakrishnan CV cvr at river-valley.org
Sat Jul 26 06:39:19 CEST 2003


>>>>> "Ashis" == Ashis Kumar Mal <akmal at ece.iitkgp.ernet.in> writes:

    Ashis> Dear All, I am writing matrices through \begin{matrix}
    Ashis> \end{matix}, using amsmath.  I would like to align the
    Ashis> columns like this.

    Ashis> |-0.32  0.32| 
    Ashis> | 0.32 -0.32|

    Ashis> Could someone please help me to align the columns so that
    Ashis> elements will be right aligned.  [I don't want to use
    Ashis> arrays here.]


$$\begin{vmatrix}
 -0.32           & \phantom{-}0.32\\
 \phantom{-}0.32 & -0.32
\end{vmatrix}$$

will solve your problem. There might be more elegant ways too.

Radhakrishnan


More information about the tugindia mailing list