Difference between revisions of "Template:Bigmath/doc"
imported>Texvc2LaTeXBot m (Replacing deprecated latex syntax mw:Extension:Math/Roadmap) |
imported>WOSlinker (change source to syntaxhighlight) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 6: | Line 6: | ||
=== Examples === | === Examples === | ||
| − | < | + | <syntaxhighlight lang="html"> |
{{bigmath|{{sfrac|∂²<var>f</var>|∂<var>r</var>²}} + {{sfrac|∂<var>f</var>|<var>r</var> ∂<var>r</var>}} + {{sfrac|∂²<var>f</var>|<var>r</var>²∂²<var>θ</var>}} {{=}} 0}} | {{bigmath|{{sfrac|∂²<var>f</var>|∂<var>r</var>²}} + {{sfrac|∂<var>f</var>|<var>r</var> ∂<var>r</var>}} + {{sfrac|∂²<var>f</var>|<var>r</var>²∂²<var>θ</var>}} {{=}} 0}} | ||
| − | </ | + | </syntaxhighlight> |
produces: | produces: | ||
| Line 14: | Line 14: | ||
Use prefix "1=" to allow simple equals-signs. Italicize letters by double-tic (<code><nowiki>''f''</nowiki></code>): | Use prefix "1=" to allow simple equals-signs. Italicize letters by double-tic (<code><nowiki>''f''</nowiki></code>): | ||
| − | < | + | <syntaxhighlight lang="html"> |
{{bigmath|1={{sfrac|∂² ''f''|∂''r''²}} + {{sfrac | {{bigmath|1={{sfrac|∂² ''f''|∂''r''²}} + {{sfrac | ||
|∂''f''|''r'' ∂''r''}} = 0}} | |∂''f''|''r'' ∂''r''}} = 0}} | ||
| − | </ | + | </syntaxhighlight> |
produces: | produces: | ||
| Line 26: | Line 26: | ||
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 < | + | In contrast, there is <syntaxhighlight lang="tex"><math display=block>\frac{\part^2 f}{\part r^2} + \frac{\part f}{\part r} = 0</math></syntaxhighlight> which produces |
<math forcemathmode=mathml display=block>\frac{\partial^2 f}{\partial r^2} + \frac{\partial f}{\partial r} = 0.</math> | <math forcemathmode=mathml display=block>\frac{\partial^2 f}{\partial r^2} + \frac{\partial f}{\partial r} = 0.</math> | ||
This might be an alternative for more complex examples. If that's still too small, leave a comment on https://phabricator.wikimedia.org/T135419 please. | This might be an alternative for more complex examples. If that's still too small, leave a comment on https://phabricator.wikimedia.org/T135419 please. | ||
| Line 33: | Line 33: | ||
{{Math templates |notation}} | {{Math templates |notation}} | ||
| − | <includeonly> | + | <includeonly>{{Sandbox other|| |
<!-- CATEGORIES HERE, THANKS --> | <!-- CATEGORIES HERE, THANKS --> | ||
[[Category:Mathematical formatting templates]] | [[Category:Mathematical formatting templates]] | ||
| − | </includeonly> | + | }}</includeonly> |
Latest revision as of 07:37, 7 July 2020
| 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|{{sfrac|∂²<var>f</var>|∂<var>r</var>²}} + {{sfrac|∂<var>f</var>|<var>r</var> ∂<var>r</var>}} + {{sfrac|∂²<var>f</var>|<var>r</var>²∂²<var>θ</var>}} {{=}} 0}}
produces:
Use prefix "1=" to allow simple equals-signs. Italicize letters by double-tic (''f''):
{{bigmath|1={{sfrac|∂² ''f''|∂''r''²}} + {{sfrac
|∂''f''|''r'' ∂''r''}} = 0}}
produces:
- Template:Sfrac + Template:Sfrac = 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{\partial^2 f}{\partial r^2} + \frac{\partial f}{\partial r} = 0.</math> This might be an alternative for more complex examples. If that's still too small, leave a comment on https://phabricator.wikimedia.org/T135419 please.
See also