Please check our Instructions to Authors and send your manuscripts to nifs.journal@gmail.com. Next issue: September/October 2024.
Deadline for submissions: 16 November 2024.
Template:Index-matrix: Difference between revisions
New page: __NOTOC__ This template is not to be used alone. Please use: {| | this scheme if you draw IM of predicates <nowiki>{{</nowiki>index-matrix/header}} <now... |
m Protected "Template:Index-matrix": no need to change [edit=sysop:move=sysop] |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
{| | {| | ||
| this scheme if you draw IM of predicates | | this scheme if you draw IM of predicates | ||
<nowiki>{{</nowiki>[[template:index-matrix/ | <nowiki>{{</nowiki>[[template:index-matrix/start|index-matrix/start]]}} | ||
<nowiki>{{</nowiki>[[template:index-matrix/row-predic|index-matrix/'''row-predic''']]}} | <nowiki>{{</nowiki>[[template:index-matrix/row-predic|index-matrix/'''row-predic''']]}} | ||
... | ... | ||
<nowiki>{{</nowiki>[[template:index-matrix/row-predic|index-matrix/'''row-predic''']]}} | <nowiki>{{</nowiki>[[template:index-matrix/row-predic|index-matrix/'''row-predic''']]}} | ||
<nowiki>{{</nowiki>[[template:index-matrix/ | <nowiki>{{</nowiki>[[template:index-matrix/end|index-matrix/end]]}} | ||
| OR | | OR | ||
| this scheme if you draw IM of arc capacities | | this scheme if you draw IM of arc capacities | ||
<nowiki>{{</nowiki>[[template:index-matrix/ | <nowiki>{{</nowiki>[[template:index-matrix/start|index-matrix/start]]}} | ||
<nowiki>{{</nowiki>[[template:index-matrix/row-arccap|index-matrix/'''row-arccap''']]}} | <nowiki>{{</nowiki>[[template:index-matrix/row-arccap|index-matrix/'''row-arccap''']]}} | ||
... | ... | ||
<nowiki>{{</nowiki>[[template:index-matrix/row-arccap|index-matrix/'''row-arccap''']]}} | <nowiki>{{</nowiki>[[template:index-matrix/row-arccap|index-matrix/'''row-arccap''']]}} | ||
<nowiki>{{</nowiki>[[template:index-matrix/ | <nowiki>{{</nowiki>[[template:index-matrix/end|index-matrix/end]]}} | ||
|} | |} | ||
The | The column definitions go in [[template:index-matrix/start|index-matrix/start]] : | ||
Please define N and insert as many parameters as necessary. | Please define N (number of columns) and insert as many parameters as necessary. | ||
<pre> | <pre> | ||
{{index-matrix/ | {{index-matrix/start | ||
|matrix-id = | |matrix-id = | ||
|columns = N | |columns = N | ||
Line 33: | Line 33: | ||
</pre> | </pre> | ||
Maximal number of columns is 10. New columns can be easily added in [[template:index-matrix/ | Maximal number of columns is 10. New columns can be easily added in [[template:index-matrix/start]], [[template:index-matrix/row-predic]] and [[template:index-matrix/row-arccap]]. | ||
Every separate row goes in [[template:index-matrix/row-predic|index-matrix/row-predic]] or [[template:index-matrix/row-arccap|index-matrix/row-arccap]] (all rows in table have to be from the same kind): | Every separate row goes in [[template:index-matrix/row-predic|index-matrix/row-predic]] or [[template:index-matrix/row-arccap|index-matrix/row-arccap]] (all rows in table have to be from the same kind): | ||
Line 65: | Line 65: | ||
The difference comes from the default values for blank parameter <code>1,...,N</code>. Leave it blank after the <code>=</code> sign and it will produce (on screen, but not in the source code) ''false'' for the <code>/row-predic</code> and 0 for the <code>/row-arccap</code>. | The difference comes from the default values for blank parameter <code>1,...,N</code>. Leave it blank after the <code>=</code> sign and it will produce (on screen, but not in the source code) ''false'' for the <code>/row-predic</code> and 0 for the <code>/row-arccap</code>. | ||
Repeat as many times, as number of rows in your index matrix. Do not forget to finish with | Repeat as many times, as number of rows in your index matrix. Do not forget to finish with | ||
<nowiki>{{</nowiki> | <nowiki>{{</nowiki>index-matrix/end}} | ||
== Example == | == Example == | ||
Line 72: | Line 72: | ||
{| width="100%" | {| width="100%" | ||
| width="50%" |<pre> | | width="50%" |<pre> | ||
{{index-matrix/ | {{index-matrix/start | ||
|matrix-id = IM<sub>P</sub> | |matrix-id = IM<sub>P</sub> | ||
|columns = 2 | |columns = 2 | ||
Line 83: | Line 83: | ||
|1 = | |1 = | ||
|2 = cell<sub>1</sub><sup>2</sup> | |2 = cell<sub>1</sub><sup>2</sup> | ||
}}{{index-matrix/row-predic | }} | ||
{{index-matrix/row-predic | |||
|columns= 2 | |columns= 2 | ||
|row-id = row<sub>2</sub> | |row-id = row<sub>2</sub> | ||
Line 89: | Line 90: | ||
|2 = cell<sub>2</sub><sup>2</sup> | |2 = cell<sub>2</sub><sup>2</sup> | ||
}} | }} | ||
{{index-matrix/ | {{index-matrix/end}} | ||
</pre> | </pre> | ||
|| | || | ||
{{index-matrix/ | {{index-matrix/start | ||
|matrix-id = IM<sub>P</sub> | |matrix-id = IM<sub>P</sub> | ||
|columns = 2 | |columns = 2 | ||
Line 103: | Line 104: | ||
|1 = | |1 = | ||
|2 = cell<sub>1</sub><sup>2</sup> | |2 = cell<sub>1</sub><sup>2</sup> | ||
}}{{index-matrix/row-predic | }} | ||
{{index-matrix/row-predic | |||
|columns= 2 | |columns= 2 | ||
|row-id = row<sub>2</sub> | |row-id = row<sub>2</sub> | ||
Line 109: | Line 111: | ||
|2 = cell<sub>2</sub><sup>2</sup> | |2 = cell<sub>2</sub><sup>2</sup> | ||
}} | }} | ||
{{index-matrix/ | {{index-matrix/end}} | ||
|} | |} | ||
Line 115: | Line 117: | ||
{| width="100%" | {| width="100%" | ||
| width="50%" |<pre> | | width="50%" |<pre> | ||
{{index-matrix/ | {{index-matrix/start | ||
|matrix-id = IM<sub>AC</sub> | |matrix-id = IM<sub>AC</sub> | ||
|columns = 2 | |columns = 2 | ||
Line 126: | Line 128: | ||
|1 = | |1 = | ||
|2 = cell<sub>1</sub><sup>2</sup> | |2 = cell<sub>1</sub><sup>2</sup> | ||
}}{{index-matrix/row-arccap | }} | ||
{{index-matrix/row-arccap | |||
|columns= 2 | |columns= 2 | ||
|row-id = row<sub>2</sub> | |row-id = row<sub>2</sub> | ||
Line 132: | Line 135: | ||
|2 = cell<sub>2</sub><sup>2</sup> | |2 = cell<sub>2</sub><sup>2</sup> | ||
}} | }} | ||
{{index-matrix/ | {{index-matrix/end}} | ||
</pre> | </pre> | ||
|| | || | ||
{{index-matrix/ | {{index-matrix/start | ||
|matrix-id = IM<sub>AC</sub> | |matrix-id = IM<sub>AC</sub> | ||
|columns = 2 | |columns = 2 | ||
Line 146: | Line 149: | ||
|1 = | |1 = | ||
|2 = cell<sub>1</sub><sup>2</sup> | |2 = cell<sub>1</sub><sup>2</sup> | ||
}}{{index-matrix/row-arccap | }} | ||
{{index-matrix/row-arccap | |||
|columns= 2 | |columns= 2 | ||
|row-id = row<sub>2</sub> | |row-id = row<sub>2</sub> | ||
Line 152: | Line 156: | ||
|2 = cell<sub>2</sub><sup>2</sup> | |2 = cell<sub>2</sub><sup>2</sup> | ||
}} | }} | ||
{{index-matrix/ | {{index-matrix/end}} | ||
|} | |} | ||
Latest revision as of 08:01, 7 October 2009
This template is not to be used alone. Please use:
this scheme if you draw IM of predicates
{{index-matrix/start}} {{index-matrix/row-predic}} ... {{index-matrix/row-predic}} {{index-matrix/end}} |
OR | this scheme if you draw IM of arc capacities
{{index-matrix/start}} {{index-matrix/row-arccap}} ... {{index-matrix/row-arccap}} {{index-matrix/end}} |
The column definitions go in index-matrix/start : Please define N (number of columns) and insert as many parameters as necessary.
{{index-matrix/start |matrix-id = |columns = N |1 = |2 = ... |N-1 = |N = }}
Maximal number of columns is 10. New columns can be easily added in template:index-matrix/start, 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):
{{index-matrix/row-predic |columns= N |row-id = |1 = |2 = ... |N-1 = |N = }} |
OR | {{index-matrix/row-arccap |columns= N |row-id = |1 = |2 = ... |N-1 = |N = }} |
The difference comes from the default values for blank parameter 1,...,N
. Leave it blank after the =
sign and it will produce (on screen, but not in the source code) false for the /row-predic
and 0 for the /row-arccap
.
Repeat as many times, as number of rows in your index matrix. Do not forget to finish with
{{index-matrix/end}}
Example
Predicate
{{index-matrix/start |matrix-id = IM<sub>P</sub> |columns = 2 |1 = column<sup>1</sup> |2 = column<sup>2</sup> }} {{index-matrix/row-predic |columns= 2 |row-id = row<sub>1</sub> |1 = |2 = cell<sub>1</sub><sup>2</sup> }} {{index-matrix/row-predic |columns= 2 |row-id = row<sub>2</sub> |1 = cell<sub>2</sub><sup>1</sup> |2 = cell<sub>2</sub><sup>2</sup> }} {{index-matrix/end}} |
|
Arccapacity
{{index-matrix/start |matrix-id = IM<sub>AC</sub> |columns = 2 |1 = column<sup>1</sup> |2 = column<sup>2</sup> }} {{index-matrix/row-arccap |columns= 2 |row-id = row<sub>1</sub> |1 = |2 = cell<sub>1</sub><sup>2</sup> }} {{index-matrix/row-arccap |columns= 2 |row-id = row<sub>2</sub> |1 = cell<sub>2</sub><sup>1</sup> |2 = cell<sub>2</sub><sup>2</sup> }} {{index-matrix/end}} |
|
Alternative
If you have ready index matrix in LaTeX, you can use it immediately; you only have to place the code between <math></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).
<math> 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} </math>
[math]\displaystyle{ 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} }[/math]