HowTo's
Enter short tips on using WeBWorK and working with the WeBWorK community.
jsMath
Viewing page version #2
(Restore this version)
(Restore this version)
Modified: 29 June 2007, 12:30 PM User: Michael Gage →
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]
|
Consider the expression [math]\int_0^\pi \frac{1}{x^2+1} \, ds[/math]. | [dmath]\int_0^\pi \frac{1}{x^2+1} \, ds[/dmath] |
To cause jsMath to ignore a [math]...[/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.
(Edited by Michael">http://webwork.maa.org/moodle/user/view.php?id=3&course=1">Michael Gage - original submission Monday, 23 April 2007, 11:31 AM)