模板:Bigmath/doc:修订间差异

来自决策链云智库
(创建页面,内容为“{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> === Usage === Use this template to embed stand-alone formulae in wikitext. The mathematical capabilities of this template are very limited; use tables with <code>class="texhtml"</code> for formulae requiring non-linear layout. === Examples === <syntaxhighlight lang="wikitext"> {{bigmath|{{sfrac|∂²<var>f</var>|∂<var>r</var>²}} + {{sfrac|&part…”)
 
无编辑摘要
 
第26行: 第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 <syntaxhighlight lang="tex" inline><math display=block>\frac{\part^2 f}{\part r^2} + \frac{\part f}{\part r} = 0</math></syntaxhighlight> which produces
In contrast, there is <syntaxhighlight lang="tex" inline><math>\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>\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.



2024年1月21日 (日) 23:10的最新版本

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|&part;&sup2;<var>f</var>|&part;<var>r</var>&sup2;}} + {{sfrac|&part;<var>f</var>|<var>r</var> &part;<var>r</var>}} + {{sfrac|&part;&sup2;<var>f</var>|<var>r</var>&sup2;&part;&sup2;<var>&theta;</var>}} {{=}} 0}}

produces:

∂²f/r² + f/rr + ∂²f/r²∂²θ = 0

Use prefix "1=" to allow simple equals-signs. Italicize letters by double-tic (''f''):

{{bigmath|1={{sfrac|&part;&sup2; ''f''|&part;''r''&sup2;}} + {{sfrac
|&part;''f''|''r'' &part;''r''}} = 0}}

produces:

∂² f/r² + f/rr = 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>\frac{\part^2 f}{\part r^2} + \frac{\part f}{\part r} = 0[/math] which produces <math>\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