Discussion:
stretchy operators in spanned table rows.
(too old to reply)
David Carlisle
2005-01-11 13:24:44 UTC
Permalink
We wanted to generate a \bordermatrix (in TeX-speak) with labels
outside the brackets, something like

n
m - n ( R_11 )
n ( R_21 )

I believe that the natural size of the implied mrow in
<mtd rowspan="2"> is the height of two rows, so a stretchy operator in
there should stretch to (visually) surround the submatrix consisting of
the bottom right hand portion of the mtable.

mathplayer renders the document below as I expected, however mozilla
doesn't stretch the brackets so I get


n
m - n ( R_11 )
n R_21

with brackets only round the first row of the sub-matrix.

I think this is a mozilla bug, however whether or not it is a bug, I'd
be interested in a workaround that works in mozilla/netscape, if anyone
has any suggestions...

Our real examples have quite complicated/large expressions in the
entries so getting the labels to line up with the matrix columns seems
quite hard if they are not in the same mtable, and if they are in the
same mtable, I can't persuade mozilla to stretch the brackets...

David



<!--
<?xml-stylesheet type="text/xsl" href="pmathml.xsl"?>
-->

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>bordermatrix</title>
</head>
<body>

<p>hmmmmmmmm</p>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mtable columnalign="right center">
<mtr><mtd/><mtd/><mtd><mi>n</mi></mtd><mtd/></mtr>
<mtr><mtd><mi>m</mi><mo>-</mo><mi>n</mi></mtd><mtd rowspan="2"><mo>(</mo></mtd><mtd><msub><mi>R</mi><mrow><mn>1</mn><mn>1</mn></mrow></msub></mtd><mtd rowspan="2"><mo>)</mo></mtd></mtr>
<mtr><mtd><mi>n</mi></mtd><mtd><msub><mi>R</mi><mrow><mn>2</mn><mn>1</mn></mrow></msub></mtd></mtr>
</mtable>
</math>
<p>hmmmmmmmm</p>
</body>
</html>



________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
William F Hammond
2005-01-11 18:00:28 UTC
Permalink
Post by David Carlisle
We wanted to generate a \bordermatrix (in TeX-speak) with labels
outside the brackets, something like
n
m - n ( R_11 )
n ( R_21 )
. . .
Post by David Carlisle
I think this is a mozilla bug, however whether or not it is a bug, I'd
be interested in a workaround that works in mozilla/netscape, if anyone
has any suggestions...
One can do something of a workaround with nested arrays:

http://math.albany.edu:8000/math/special/bordermatrix.xhtml
(source http://math.albany.edu:8000/math/special/bordermatrix.glm)

-- Bill

Loading...