HowToEnterMathSymbols: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
Enter mathematics formulas using TeX/LaTeX notation between jsMath delimiters. | Enter mathematics formulas using TeX/LaTeX notation between jsMath delimiters. | ||
The jsMath delimiters are | The jsMath delimiters are <code class="tex2math_ignore"><nowiki><math>...</math></nowiki></code> for inline math, and <code class="tex2math_ignore"><nowiki><dmath>...</dmath></nowiki></code> for display math. | ||
For example: | For example: | ||
Line 7: | Line 7: | ||
<tr class="tex2math_ignore"> | <tr class="tex2math_ignore"> | ||
<td valign="top"><code>Consider the expression | <td valign="top"><code>Consider the expression | ||
<nowiki><math>\int_0^\pi \frac{1}{x^2+1} \, ds</math></nowiki>.</code> | |||
</td> | </td> | ||
<td valign="top"><code>Consider the following expression: <nowiki><dmath>\int_0^\pi \frac{1}{x^2+1} \, ds</dmath></nowiki></code> | <td valign="top"><code>Consider the following expression: | ||
<nowiki><dmath>\int_0^\pi \frac{1}{x^2+1} \, ds</dmath></nowiki></code> | |||
</td> | </td> | ||
</tr> | </tr> |
Revision as of 14:45, 18 June 2008
Enter mathematics formulas using TeX/LaTeX notation between jsMath delimiters.
The jsMath delimiters are <math>...</math>
for inline math, and <dmath>...</dmath>
for display math.
For example:
<tbody> </tbody>Consider the expression
|
Consider the following expression:
|
will [math]\displaystyle{ \int_0^\pi \frac{1}{x^2+1} \, ds }[/math] in line. | will display <dmath>\int_0^\pi \frac{1}{x^2+1} \, ds</dmath> in a separate line and larger type |
To print the markup language as is surround it with: <nowiki>[math]\displaystyle{ ... }[/math]<nowiki>
to get <math>...</math> .
To cause jsMath to ignore a[math]\displaystyle{ ... }[/math]
or <dmath>...</dmath>
section, enclose the section in an HTML element with class tex2math_ignore
. This can be a <div> or a <span> or whatever you like. jsMath always ignores delimiters that occur within <pre> tags.