The <ARRAY> element is used for LaTeX-like arrays. It can only be used within MATH elements. For example:
a a ... a 11 12 1n : : ... : a a ... a n1 n2 nn
This is represented in HTML math by:
<array> <row><item>a_11_<item>a_12_<item>&cdots;<item>a_1n_ <row><item>&vdots;<item>&vdots;<item>&ddots;<item>&vdots; <row><item>a_n1_<item>a_n2_<item>&cdots;<item>a_nn_ </array>
You can specify the "+", "-" or "=" characters as column separators:
a x + a x + ... + a x = b 11 1 12 2 1n n 1 a x + a x + ... + a x = b 22 1 22 2 2n n 2 ............................................. a x + a x + ... + a x = b n2 1 n2 2 nn n n
This is represented by:
<array coldef="C+C+C+C=C"> <row><item>a_11_x_1_<item>a_12_x_2_<item>&cdots;<item>a_1n_x_n_<item>b_1_ <row><item>a_21_x_1_<item>a_22_x_2_<item>&cdots;<item>a_2n_x_n_<item>b_2_ <row><item colspan=5>&dotfill; <row><item>a_n1_x_1_<item>a_n2_x_2_<item>&cdots;<item>a_nn_x_n_<item>b_n_ </array>
The number of rows and colums is left to the parser to work out for itself by counting the number of ROW elements, and the number of ITEMs on each row. This is slightly complicated by the possibility that some items may span several rows and columns. If a row has less than the expected number of items after accounting for merged items, the missing items are assumed to be on the righthandside, and should be treated as empty. The row count should be based on the ROW elements, and additional rows, implied by items spanning rows beyond the end of the array, should be ignored.
The COLDEF attribute can also be used to place a "+", "-" or "=" between the columns, e.g. coldef="C+C+C+C=C". Whitespace within the COLDEF attribute is ignored.
Example of a labelled array:
i j k a (X X X ) ( 11 21 31) <array ldelim="(" rdelim=")" labels> ( ) <row><item>dummy<item>i<item>j<item>k b (X X X ) <row><item>a<item>X_11_<item>X_21_<item>X_31_ ( 12 22 32) <row><item>b<item>X_12_<item>X_22_<item>X_32_ ( ) <row><item>c<item>X_31_<item>X_32_<item>X_33_ c (X X X ) </array> ( 13 23 33)
Note: An item is always required for the first item of the first row, although its contents will be ignored for labelled arrays. This has been emphasized above with the value "dummy".