Difference between revisions of "HowToEnterMathSymbols"

From WeBWorK_wiki
Jump to navigation Jump to search
(Blanked the page)
m (Reverted edits by Aubreyja (talk) to last revision by Gage)
Line 1: Line 1:
  +
Enter mathematics formulas using TeX/LaTeX notation between jsMath delimiters.
  +
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:
  +
  +
<table border="1">
  +
<tr class="tex2math_ignore">
  +
<td valign="top"><code>Consider the expression
  +
<nowiki><math>\int_0^\pi \frac{1}{x^2+1} \, ds</math></nowiki>.</code>
  +
</td>
  +
<td valign="top"><code>Consider the following expression:
  +
<nowiki><dmath>\int_0^\pi \frac{1}{x^2+1} \, ds</dmath></nowiki></code>
  +
</td>
  +
</tr>
  +
<tr>
  +
<td valign="top">will <math>\int_0^\pi \frac{1}{x^2+1} \, ds</math> in line.
  +
</td>
  +
<td valign="top">will display <dmath>\int_0^\pi \frac{1}{x^2+1} \, ds</dmath> in a separate line and larger type
  +
</td>
  +
</tr>
  +
</table>
  +
<div class="tex2math_ignore"> To print the markup language as is surround it with: &lt;nowiki&gt;<math>...</math>&lt;nowiki&gt;
  +
to get <nowiki> <math>...</math> </nowiki>.

Revision as of 10:42, 24 July 2012

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:

Consider the expression
<math>\int_0^\pi \frac{1}{x^2+1} \, ds</math>.
Consider the following expression:
<dmath>\int_0^\pi \frac{1}{x^2+1} \, ds</dmath>
will [math]\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]...[/math]<nowiki>

to get <math>...</math> .