Help:Formula

From EVOCD
(Difference between revisions)
Jump to: navigation, search
Line 3: Line 3:
 
Here is a very brief introduction:  
 
Here is a very brief introduction:  
 
===Syntax===
 
===Syntax===
Traditionally, math markup goes inside the [[Help:XML-style tags|XML-style tag]] math: <code><nowiki><math> ... </math></nowiki></code>. The old [[Help:Edit toolbar|edit toolbar]] has a button for this: [[Image:Math icon.png|{{MediaWiki:Math tip}}]].
+
The Math markup goes inside the XML-style tag math: <code><nowiki><math> ... </math></nowiki></code>.  
 
+
However, one can also use parser function #tag: <code><nowiki>{{#tag:math|...}}</nowiki></code>; this is more versatile: the wikitext at the dots is first expanded before interpreting the result as TeX code. Thus it can contain parameters, variables, parser functions and templates. Note however that with this syntax double braces in the TeX code must have a space in between, to avoid confusion with their use in template calls etc. Similar to HTML, in TeX extra spaces and newlines are ignored.
However, one can also use parser function [[mw:Help:Magic_words#Miscellaneous|#tag]]: <code><nowiki>{{#tag:math|...}}</nowiki></code>; this is more versatile: the wikitext at the dots is first [[Help:Expansion|expanded]] before interpreting the result as TeX code. Thus it can contain parameters, variables, parser functions and templates. Note however that with this syntax double braces in the TeX code must have a space in between, to avoid confusion with their use in template calls etc. Also, to produce the character "|" inside the TeX code, use <nowiki>{{!}}</nowiki>.<ref>This requires the wiki to have the [[Template:!]] containing "|", as many wikis do, see e.g. also [[w:Template:!]].</ref>
+
 
+
Similar to HTML, in TeX extra spaces and newlines are ignored.
+
  
  
 
[[Help:Contents|back to Help]]
 
[[Help:Contents|back to Help]]

Revision as of 13:09, 2 February 2011

Please refer to the WikiMedia documentation for detailed instructions on displaying a formula in your pages.

Here is a very brief introduction:

Syntax

The Math markup goes inside the XML-style tag math: <math> ... </math>. However, one can also use parser function #tag: {{#tag:math|...}}; this is more versatile: the wikitext at the dots is first expanded before interpreting the result as TeX code. Thus it can contain parameters, variables, parser functions and templates. Note however that with this syntax double braces in the TeX code must have a space in between, to avoid confusion with their use in template calls etc. Similar to HTML, in TeX extra spaces and newlines are ignored.


back to Help

Personal tools
Namespaces

Variants
Actions
home
Materials
Material Models
Design
Resources
Projects
Education
Toolbox