Template:DisplayEquation: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{|border=" | <includeonly>{|border="0" align="center" | ||
|- | |- | ||
<!-- Spaces between braces are important in next line --> | <!-- Spaces between braces are important in next line --> | ||
Line 5: | Line 5: | ||
|align="left" width="40"|{{#if:{{{no|}}}|{{#tag:math|\left({{{no}}}\right)}}| }} | |align="left" width="40"|{{#if:{{{no|}}}|{{#tag:math|\left({{{no}}}\right)}}| }} | ||
|}</includeonly><noinclude> | |}</includeonly><noinclude> | ||
The template takes | The template takes three named parameters, ''width'', ''eqn'' and ''no'', being the | ||
the equation number respectively. | equation width (default 610 pixels), LaTeX expression and the equation number respectively. | ||
are useful: | All parameters are optional, but only two combinations of ''eqn'' and ''no'' are useful: | ||
<pre>{{DisplayEquation|eqn=a^2+b^2=c^2}}</pre> {{DisplayEquation|eqn=a^2+b^2=c^2}} | <pre>{{DisplayEquation|eqn=a^2+b^2=c^2}}</pre> {{DisplayEquation|eqn=a^2+b^2=c^2}} | ||
<pre>{{DisplayEquation|no=28|eqn=\frac{\partial\rho Y_k}{\partial t} | <pre>{{DisplayEquation|no=28|eqn=\frac{\partial\rho Y_k}{\partial t} | ||
Line 20: | Line 20: | ||
Note that equation labelling is not restricted to numbers: | Note that equation labelling is not restricted to numbers: | ||
<pre>{{DisplayEquation|no=\text{axiom }M3|eqn=\rho(a,c)\le\rho(a,b)+\rho(b,c)}}</pre> | <pre>{{DisplayEquation|no=\text{axiom }M3|width=300|eqn=\rho(a,c)\le\rho(a,b)+\rho(b,c)}}</pre> | ||
{{DisplayEquation|no=\text{axiom }M3|width=300|eqn=\rho(a,c)\le\rho(a,b)+\rho(b,c)}} | {{DisplayEquation|no=\text{axiom }M3|width=300|eqn=\rho(a,c)\le\rho(a,b)+\rho(b,c)}} | ||
</noinclude> | </noinclude> |
Revision as of 15:55, 10 May 2011
The template takes three named parameters, width, eqn and no, being the equation width (default 610 pixels), LaTeX expression and the equation number respectively. All parameters are optional, but only two combinations of eqn and no are useful:
{{DisplayEquation|eqn=a^2+b^2=c^2}}
{{DisplayEquation|no=28|eqn=\frac{\partial\rho Y_k}{\partial t} +\frac{\partial\rho u_iY_k}{\partial x_i}= \frac{\partial}{\partial x_i}\left(\rho D_k\frac{\partial Y_k}{\partial x_i}\right) +\dot{\omega}_k\qquad \text{for } k=1,2,\dots,N}}
Note that equation labelling is not restricted to numbers:
{{DisplayEquation|no=\text{axiom }M3|width=300|eqn=\rho(a,c)\le\rho(a,b)+\rho(b,c)}}