Difference between revisions of "Help:Mathematics"

From AAPG Wiki
Jump to navigation Jump to search
(basic math help)
 
(we always render PNGs)
 
Line 2: Line 2:
 
* Don’t use equation numbers
 
* Don’t use equation numbers
 
* Indent block equations with a colon (see examples below)
 
* Indent block equations with a colon (see examples below)
* The Mediawiki software will render HTML characters for short equations, and PNG images for longer ones
+
* The Mediawiki software renders PNG images for all equations
* To force image rendering, add a space at the end of the equation with a solidus (backslash) followed by a space
 
  
 
==Examples==
 
==Examples==
Example short equation: <math>E = mc^2</math>
+
Example short equation:
  
Example short equation with forced image rendering, using a space at the end of the equation:
+
<pre>
 +
: <math> E = mc^2 </math>
 +
</pre>
  
: <math> E = mc^2 \ </math>
+
renders like this:  
  
Longer equations render as images regardless; here's Ferguson & Church (2004<ref>Ferguson, R. and Church, M. (2004) A simple universal equation for grain settling velocity. Journal of Sedimentary Research 74, 933–937.</ref>) version of the [[Stokes equation]]:
+
: <math> E = mc^2 </math>
 +
 
 +
Here's Ferguson & Church (2004<ref>Ferguson, R. and Church, M. (2004) A simple universal equation for grain settling velocity. Journal of Sedimentary Research 74, 933–937.</ref>) version of the [[Stokes equation]]:
 +
 
 +
<pre>
 +
:<math>w = \frac{R g D^2}{C_1 \nu + \sqrt{0.75\,C_2\, R g D^3}}</math>
 +
</pre>
  
 
:<math>w = \frac{R g D^2}{C_1 \nu + \sqrt{0.75\,C_2\, R g D^3}}</math>
 
:<math>w = \frac{R g D^2}{C_1 \nu + \sqrt{0.75\,C_2\, R g D^3}}</math>

Latest revision as of 16:45, 9 October 2013

  • Math is handled by the LaTeX typesetting system
  • Don’t use equation numbers
  • Indent block equations with a colon (see examples below)
  • The Mediawiki software renders PNG images for all equations

Examples

Example short equation:

: <math> E = mc^2 </math>

renders like this:

Here's Ferguson & Church (2004[1]) version of the Stokes equation:

:<math>w = \frac{R g D^2}{C_1 \nu + \sqrt{0.75\,C_2\, R g D^3}}</math>

Style

  • Constants and names or label are roman (i.e. upright, not italic): VP. Use \mathrm{P} in LaTeX math.
  • Pi, e, the differential d, and lots of other symbols are usually roman
  • Variables are italic (the default character style in LaTeX math)
  • Vectors are roman and bold (use \mathbf{} — it's best to avoid \vec{}, which uses the arrow notation)
  • Use the built-in LaTeX functions for \sin, \log, etc.

External links

References

  1. Ferguson, R. and Church, M. (2004) A simple universal equation for grain settling velocity. Journal of Sedimentary Research 74, 933–937.