help logoLON-CAPA Help


LON-CAPA renders math using LaTeX. LaTeX equations can be entered directly in the source with the text editor, within <m>$ $</m> tags. When the browser has support for Java applets, the DragMath editor can also be used to generate LaTeX. To start DragMath in the text editor, insert the cursor at the desired equation location and click on the 'Edit Math' button. At the bottom of the DragMath pop-up is a 'Render LaTeX' button that will insert the DragMath expression as LaTeX within <m>$ $</m> tags in the text.

The DragMath editor may not offer the template that you need, or the expression may not appear as you expect. The most powerful method of entering math or touching up DragMath output is to learn about the LaTeX syntax. An Internet search for "LaTeX math quick reference" will result in many resources.

To create equations in CKEditor (the WYSIWYG editor launched with the "Rich formatting" link), you can use the Σ button. It requires knowing the LaTeX syntax, but provides a real-time preview. Equations can be edited with a double-click on the rendering.

Within the <m> tag, additional tags control the display of LaTeX math. The $ open and closing syntax will create an inline equation. To create an equation in a separate paragraph, use double signs, $$. Alternative notations are also accepted, \( opening with \) closing can be used for an inline equation, and \[ opening with \] closing results in a separate paragraph. The $ and $$ methods are recommended as "LaTeX robust" and the \( and \[ methods are considered "LaTeX fragile." The robust methods should be used if the fragile methods result in unexpected behavior.

Some simple sytax from common LaTeX math:

See m tag in Output Tags Help for more information.