Please check our Instructions to Authors and send your manuscripts to nifs.journal@gmail.com.
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 s/header/start , s/footer/end |
||
| 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>[[template:index-matrix/ | <nowiki>{{</nowiki>[[template:index-matrix/end|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 89: | Line 89: | ||
|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 109: | Line 109: | ||
|2 = cell<sub>2</sub><sup>2</sup> | |2 = cell<sub>2</sub><sup>2</sup> | ||
}} | }} | ||
{{index-matrix/ | {{index-matrix/end}} | ||
|} | |} | ||
| Line 115: | Line 115: | ||
{| 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 132: | Line 132: | ||
|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 152: | Line 152: | ||
|2 = cell<sub>2</sub><sup>2</sup> | |2 = cell<sub>2</sub><sup>2</sup> | ||
}} | }} | ||
{{index-matrix/ | {{index-matrix/end}} | ||
|} | |} | ||
Revision as of 17:09, 14 October 2008
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]