Help:Formula

From EVOCD
(Difference between revisions)
Jump to: navigation, search
Line 2: Line 2:
  
 
Here is a very brief introduction:  
 
Here is a very brief introduction:  
 +
===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}}]].
  
''Note'': There is a difference between creating links to pages in this Wiki and external pages.
+
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>
  
'''1.''' To create a '''link to a page in this Wiki''' use the following syntax:
+
Similar to HTML, in TeX extra spaces and newlines are ignored.
* <font color="red"><nowiki>[[Page Name]]</nowiki></font> or
+
* <font color="red"><nowiki>[[Page Name|Displayed text]]</nowiki></font>.  
+
  
For example, if you want to create link to "Test Page" use <nowiki>[[Test Page]]</nowiki> or <nowiki>[[Test Page| this is a link to my test page]]</nowiki>, which will appear as [[Test Page]] or [[Test Page| this is a link to my test page]]. (Click on Edit tab to see the source code).
 
 
'''2.''' To create a '''link to an external page''' use the following syntax:
 
* <font color="red"><nowiki>http://server.com/myPage</nowiki></font> or
 
* <font color="red"><nowiki>[http://server.com/myPage]</nowiki></font> or
 
* <font color="red"><nowiki>[http://server.com/myPage link description]</nowiki></font>.
 
 
For example, http://www.google.com, [http://www.google.com] or [http://www.google.com search Google], respectively.
 
 
''Note'': For the external links use single brackets [], use the protocol name, typically <nowiki>http://</nowiki>, and the optional link description is not separated by the "pipe" character | (this is not a capital i, it is a vertical line often referred to by computer guys as a "pipe"). For external links, you do '''not''' need to use the pipe character because the valid URLs, i.e., page addresses, cannot use spaces, thus the first space serves as the deliminator between the address and the description.
 
 
'''3.''' To create a '''link to an email address''' use the following syntax:
 
* <font color="red"><nowiki> John Doe ([mailto:email@server.com email@server.com])</nowiki></font> or
 
* <font color="red"><nowiki>John Doe [mailto:email@server.com]</nowiki></font> or
 
* <font color="red"><nowiki>[mailto:email@server.com John Doe]</nowiki></font>.
 
 
For example, <nowiki>John Doe ([mailto:johndoe@cavs.msstate.edu johndoe@cavs.msstate.edu])</nowiki>, <nowiki>[mailto:johndoe@cavs.msstate.edu]</nowiki> or <nowiki>[mailto: johndoe@cavs.msstate.edu John Doe]</nowiki>, will appear as John Doe ([mailto:johndoe@cavs.msstate.edu johndoe@cavs.msstate.edu]), as John Doe [mailto:johndoe@cavs.msstate.edu] or as [mailto:johndoe@cavs.msstate.edu John Doe].
 
  
 
[[Help:Contents|back to Help]]
 
[[Help:Contents|back to Help]]

Revision as of 13:07, 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

Traditionally, math markup goes inside the XML-style tag math: <math> ... </math>. The old edit toolbar has a button for this: Mathematical formula (LaTeX).

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. Also, to produce the character "|" inside the TeX code, use {{!}}.[1]

Similar to HTML, in TeX extra spaces and newlines are ignored.


back to Help


Cite error: <ref> tags exist, but no <references/> tag was found
Personal tools
Namespaces

Variants
Actions
home
Materials
Material Models
Design
Resources
Projects
Education
Toolbox