Difference between revisions of "HowToEnterMathSymbols"

From WeBWorK_wiki
Jump to navigation Jump to search
Line 23: Line 23:
 
to get <nowiki> <math>...</math> </nowiki>.
 
to get <nowiki> <math>...</math> </nowiki>.
   
To cause jsMath to ignore a <code class="tex2math_ignore"><math>...</math></code> or <code class="tex2math_ignore"><dmath>...</dmath></code> section, enclose the section in an HTML element with class <code>tex2math_ignore</code>. This can be a &lt;div&gt; or a &lt;span&gt; or whatever you like. jsMath always ignores delimiters that occur within &lt;pre&gt; tags.</p>
+
To cause jsMath to ignore a <nowiki><code class="tex2math_ignore"><math>...</math></code></nowiki> or <code class="tex2math_ignore"><dmath>...</dmath></code> section, enclose the section in an HTML element with class <code>tex2math_ignore</code>. This can be a &lt;div&gt; or a &lt;span&gt; or whatever you like. jsMath always ignores delimiters that occur within &lt;pre&gt; tags.</p>

Revision as of 09:46, 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
<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> .

To cause jsMath to ignore a <code class="tex2math_ignore"><math>...</math></code> 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.