Difference between revisions of "Template:Bigmath/doc"
imported>Physikerwelt m |
imported>Physikerwelt |
||
| Line 24: | Line 24: | ||
Note that any extra spaces placed in the template will appear in the output. A long line can be split before any vertical-bar pipe ('|'). | Note that any extra spaces placed in the template will appear in the output. A long line can be split before any vertical-bar pipe ('|'). | ||
| − | In contrast, there is <code><nowiki><math display=block> | + | In contrast, there is <code><nowiki><math display=block>\frac{\part^2 f}{\part r^2} + \frac{\part f}{\part r} = 0</math></nowiki>,</code> which produces |
<math forcemathmode=mathml display=block>\frac{\part^2 f}{\part r^2} + \frac{\part f}{\part r} = 0.</math> | <math forcemathmode=mathml display=block>\frac{\part^2 f}{\part r^2} + \frac{\part f}{\part r} = 0.</math> | ||
This might be an alternative for more complex examples. If that's still to small, leave a comment on https://phabricator.wikimedia.org/T135419 please. | This might be an alternative for more complex examples. If that's still to small, leave a comment on https://phabricator.wikimedia.org/T135419 please. | ||
Revision as of 18:19, 16 May 2016
| This is a documentation subpage for Template:Bigmath. It contains usage information, categories and other content that is not part of the original template page. |
Usage
Use this template to embed stand-alone formulae in wikitext. The mathematical capabilities of this template are very limited; use tables with class="texhtml" for formulae requiring non-linear layout.
Examples
{{bigmath|{{frac|∂²<VAR >f</VAR >|∂<VAR >r</VAR >²}} + {{frac|∂<VAR >f</VAR >|<VAR >r</VAR > ∂<VAR >r</VAR >}} + {{frac|∂²<VAR >f</VAR >|<VAR >r</VAR >²∂²<VAR >θ</VAR >}} {{=}} 0}}
produces:
- ∂²f⁄∂r² + ∂f⁄r ∂r + ∂²f⁄r²∂²θ = 0
Use prefix "1=" to allow simple equals-signs. Italicize letters by double-tic (''f''):
{{bigmath|1={{frac|∂² ''f''|∂''r''²}} + {{frac
|∂''f''|''r'' ∂''r''}} = 0}}
produces:
- ∂² f⁄∂r² + ∂f⁄r ∂r = 0
Note that any extra spaces placed in the template will appear in the output. A long line can be split before any vertical-bar pipe ('|').
In contrast, there is <math display=block>\frac{\part^2 f}{\part r^2} + \frac{\part f}{\part r} = 0</math>, which produces
<math forcemathmode=mathml display=block>\frac{\part^2 f}{\part r^2} + \frac{\part f}{\part r} = 0.</math>
This might be an alternative for more complex examples. If that's still to small, leave a comment on https://phabricator.wikimedia.org/T135419 please.
Performance considerations
Template {{bigmath}} can process formulae (or equations) at rates over 220 per second. When template {{frac}} is also used, the rate drops to below 150 equations formatted per second.
See also