Template:Index-matrix

This template is not to be used alone. Please use:

The header goes in index-matrix/header : Please define N and insert as many parameters as necessary.

Maximal number of columns is 10. New columns can be easily added in template:index-matrix/header, template:index-matrix/row-predic and  template:index-matrix/row-arccap.

Every separate row goes in index-matrix/row-predic or index-matrix/row-arccap (all rows in table have to be from the same kind):

The difference comes from the default values for blank parameter. Leave it blank after the  sign and it will produce (on screen, but not in the source code) false for the   and 0 for the. Repeat as many times, as number of rows in your index matrix. Do not forget to finish with

Alternative
If you have ready index matrix in LaTeX, you can use it immediately; you only have to place the code between &lt;math>&lt;/math> in order to make the LaTeX engine recognize the source code. Note that here you cannot leave parameters blank and expect them to obtain null value (0 or false).

$$ r = \begin{array}{c|c c} & column^{1} & column^{2} \\ \hline row_{1} & cell_{1}^{1} & cell_{1}^{2}\\ row_{2} & cell_{2}^{1} & cell_{2}^{2}\\ \end{array} $$

$$ r = \begin{array}{c|c c} & column^{1} & column^{2} \\ \hline row_{1} & cell_{1}^{1} & cell_{1}^{2}\\ row_{2} & cell_{2}^{1} & cell_{2}^{2}\\ \end{array} $$