[texhax] how to typeset a matrix

Jay Belanger belanger at truman.edu
Fri Mar 16 03:54:18 CET 2007


kyanh <kyanh at o2.pl> writes:

> Hello,
>
> I have searched through google but I could typeset the following matrix:
>    http://img401.imageshack.us/img401/437/matrixxbr6.jpg
>    ( or: http://files.myopera.com/nducphuong/files/ma_tran_cheo.bmp )
>
> A member of VietTUG asked me at
> http://viettug.org/ao/component/option,com_simpleboard/func,view/catid,5/id,3313/#3313
> but I failed to help him!
>
> How can we typeset that matrix ?

Here's part of a solution using pstricks:

Jay

\documentclass[12pt]{article}

\usepackage{mathtools}
\usepackage{pst-node}
\psset{linewidth=0.6pt}
\psset{nodesepA=-10pt}
\psset{nodesepB=-15pt}

\begin{document}
\[
\begin{pmatrix}
  \Rnode{A}{a} & \Rnode{B}{b} & \Rnode{C}{c}\\
            d  &           e  &           f \\
  \Rnode{G}{g} & \Rnode{H}{h} & \Rnode{I}{i}
\end{pmatrix}
\begin{matrix}
  \Rnode{AA}{a} & \Rnode{BB}{b} \\
             d  &           e   \\
  \Rnode{GG}{g} & \Rnode{HH}{h}
\end{matrix}
\ncLine{->}{A}{I}
\ncLine{->}{B}{GG}
\ncline{->}{C}{HH}
\ncLine{->}{BB}{I}
\ncLine{->}{AA}{H}
\ncLine{->}{C}{G}
\]
\end{document}



More information about the texhax mailing list