Wiki formatting

From GOSIA

Jump to: navigation, search
(Latex math: clean up)
(Latex math)
 
Line 40: Line 40:
</pre>
</pre>
-
Each formula is rendered into a PNG image:
+
Each formula is rendered either as HTML for simple formulas that can be typed into a single line
<math>\Delta I = ^-2</math>
<math>\Delta I = ^-2</math>
Line 46: Line 46:
<math>\xi=1.4</math>
<math>\xi=1.4</math>
-
At the moment, only simple formulas are correctly rendered by the Wiki.  The following will not render properly into an image:
+
or into a PNG image for complex formulas, e.g. involving fractions.
 +
 
 +
Formatting of complex equations has been fixed (August 2011).  The wiki will now render nearly any proper Latex formula.  Examples:
<pre>
<pre>
-
<math>y=\frac{1}{2}</math>
+
<math>
 +
\langle I_f\|E2\| I_i\rangle=\biggl[-\beta_f\langle I_f K=5\|+\alpha_f\langle I_f K=6\|\biggr]\widehat{E2}
 +
\biggl[\alpha_i\|I_i K=5\rangle+\beta_i\|I_i K=6\rangle\biggr]=
 +
</math>
 +
<math>
 +
-\alpha_i\beta_f\langle I_f K=5\| E2\| I_i K=5\rangle+\alpha_f\beta_i\langle I_f K=6\| E2\| I_i K=6\rangle
 +
</math>
 +
<math>
 +
-\beta_i\beta_f\langle I_f K=5\| E2\| I_i K=6\rangle+\alpha_i\alpha_f\langle I_f K=6\| E2\| I_i K=5\rangle
 +
</math>
</pre>
</pre>
<math>
<math>
-
y=\frac{1}{2}
+
\langle I_f\|E2\| I_i\rangle=\biggl[-\beta_f\langle I_f K=5\|+\alpha_f\langle I_f K=6\|\biggr]\widehat{E2}
 +
\biggl[\alpha_i\|I_i K=5\rangle+\beta_i\|I_i K=6\rangle\biggr]=
 +
</math>
 +
<math>
 +
-\alpha_i\beta_f\langle I_f K=5\| E2\| I_i K=5\rangle+\alpha_f\beta_i\langle I_f K=6\| E2\| I_i K=6\rangle
 +
</math>
 +
<math>
 +
-\beta_i\beta_f\langle I_f K=5\| E2\| I_i K=6\rangle+\alpha_i\alpha_f\langle I_f K=6\| E2\| I_i K=5\rangle
</math>
</math>
-
 
-
 
-
Complex equations can be entered in two ways.
 
-
 
-
Preferably, create an image file on your local system and upload it using 'Upload file' in the toolbox at the left.  This should be rendered into PNG or JPG or some other image format (not PDF).  Then include the formula using the Wiki tags for adding images:
 
<pre>
<pre>
-
[[Image:Adiabaticity definition.png |frameless|500px|x]]
+
<math>
 +
f(x)=\frac{\int_a^b e^{-x^2} dx}{\frac{x}{x+\frac{1}{x+2}}}
 +
</math>
</pre>
</pre>
-
[[Image:Adiabaticity definition.png |frameless|500px|x]]
+
<math>
-
 
+
f(x)=\frac{\int_a^b e^{-x^2} dx}{\frac{x}{x+\frac{1}{x+2}}}
-
--or--
+
</math>
-
 
+
-
Use () generously and enclose only the deepest-level pieces in <nowiki><math></math></nowiki> tags.  This is hard to read and less desirable:
+
-
 
+
-
<pre>
+
-
<math>\xi_{kn}</math> = 
+
-
((<math>Z_1 Z_2 A_1</math><math>^{1/2}</math>)/6.34977)
+
-
(1/(<math>E_p - s E_k</math>)<math>^{1/2}</math> -
+
-
1/(<math>E_p - s E_n</math>)<math>^{1/2}</math>)
+
-
</pre>
+
-
 
+
-
<math>\xi_{kn}</math> =  ((<math>Z_1 Z_2 A_1</math><math>^{1/2}</math>)/6.34977)  (1/(<math>E_p - s E_k</math>)<math>^{1/2}</math> - 1/(<math>E_p - s E_n</math>)<math>^{1/2}</math>)
+
==Footnoting==
==Footnoting==

Latest revision as of 10:54, 14 August 2011

Personal tools