Difference between revisions of "Template:Bigmath/doc"

From blackwiki
Jump to navigation Jump to search
imported>Kri
(→‎See also: bigmath -> mvar)
imported>Wikid77
(added example with double-tic italics; +section "Performance considerations" noting can process over 220 formulae per second.)
Line 5: Line 5:
 
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.
 
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.
  
=== Example ===
+
=== Examples ===
<code><nowiki>
+
* <code><nowiki>
{{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}}
+
{{bigmath|{{frac|&amp;part;&amp;sup2;<VAR >f</VAR >|&amp;part;<VAR >r</VAR >&amp;sup2;}} + {{frac|&amp;part;<VAR >f</VAR >|<VAR >r</VAR > &amp;part;<VAR >r</VAR >}} + {{frac|&amp;part;&amp;sup2;<VAR >f</VAR >|<VAR >r</VAR >&amp;sup2;&amp;part;&amp;sup2;<VAR >&amp;theta;</VAR >}} {{=}} 0}}
 
</nowiki> </code>
 
</nowiki> </code>
 
produces:
 
produces:
  
: {{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}}
+
* {{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}}
 +
 
 +
Use prefix "1=" to allow simple equals-signs. Italicize letters by double-tic (<code><nowiki>''f''</nowiki></code>):
 +
* <code><nowiki>
 +
{{bigmath|1={{frac|&amp;part;&amp;sup2; ''f''|&amp;part;''r''&amp;sup2;}} + {{frac</nowiki><br><nowiki>|&amp;part;''f''|''r'' &amp;part;''r''}} = 0}}
 +
</nowiki></code>
 +
produces:
 +
 
 +
* {{bigmath|1={{frac|&part;&sup2; ''f''|&part;''r''&sup2;}} + {{frac
 +
|&part;''f''|''r'' &part;''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 ('|').
 +
 
 +
=== Performance considerations ===
 +
Template {<nowiki/>{bigmath}} can process formulae (or equations) at rates over 220 per second. When template {{[[Template:frac|frac]]}} is also used, the rate drops to below 150 equations formatted per second.
  
 
=== See also ===
 
=== See also ===
* {{tl|math}}
+
* {{tl|math}} - shows the symbols in a smaller font to fit within text lines.
 
* {{tl|mvar}}
 
* {{tl|mvar}}
* {{tl|tmath}} wraps a [[TeX|{{TeX}}]] math expression in <tt><nowiki><math></nowiki></tt> tags
+
* {{tl|tmath}} - wraps a [[TeX|{{TeX}}]] math expression in <tt><nowiki><math></nowiki></tt> tags
  
 
<includeonly>
 
<includeonly>

Revision as of 22:06, 7 March 2013

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}}
  • {{tmath}} - wraps a [[TeX|Template:TeX]] math expression in <math> tags