Template:Bigmath

维基百科,自由的百科全书
跳转至: 导航搜索
Documentation icon 模板文档[查看] [编辑] [页面历史] [清除]


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

produces:

  • ∂²fr² + frr + ∂²fr²∂²θ = 0

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

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

produces:

  • ∂² fr² + frr = 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 ('|').

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[编辑]

  • {{math}} - shows the symbols in a smaller font to fit within text lines.
  • {{mvar}} - is a short form to refer to individual italicized maths variables in normal text.
  • {{tmath}} - wraps a TeX math expression in <math> tags