[Xy-pic] Typesetting row operations in matrices

Ross Moore ross at ics.mq.edu.au
Sun Mar 26 23:55:31 CEST 2006


On 26/03/2006, at 9:33 AM, Ross Moore wrote:

> Try this:
>
> \[
> \begin{xy}
> *!C\xybox{\xymatrix{
> 1 & 1 & 1 & 1 & 0 \\ 0 & 1 & -1 & 0 & 0 \\ 0 & 0 & 0 & 1 & 0
> }\POS="matrix"
> ,"matrix"!L*\frm{(},"matrix"!R*\frm{)}
> ,"3,5"+/r.5cm/,\ar@/_3ex/"1,5"+/r.5cm/_{-1}}
> \end{xy}
> \]

This is perhaps a nicer way to do it:


\newcommand{\circled}[1]{\xybox{*+[Fo]{\scriptstyle#1}}}
\newcommand{\labelrow}[1]{%
     \POS"#1,1"!L!D(.6),*+++{},\ar@{.}+/l1.5cm/*+!R!D(.4){\circled{#1}}}

\[
\begin{xy}
*!C\xybox{\xymatrix{%
1 & 1 & 1 & 1 & 0 \\ 0 & 1 & -1 & 0 & 0 \\ 0 & 0 & 0 & 1 & 0}%
\POS!C,*+<6pt,0pt>\frm{(},*\frm{)}
,"3,5"+/r.5cm/,\ar@/_3ex/"1,5"+/r.5cm/_{\circled{1}\,-\,\circled{3}}%
\labelrow{1}\labelrow{2}\labelrow{3}%
}\end{xy}
\]


>
>>
>> TIA,
>> Matt

Cheers,

	Ross

------------------------------------------------------------------------
Ross Moore                                         ross at maths.mq.edu.au
Mathematics Department                             office: E7A-419
Macquarie University                               tel: +61 +2 9850 8955
Sydney, Australia  2109                            fax: +61 +2 9850 8114
------------------------------------------------------------------------




More information about the xy-pic mailing list