Go to start of banner

# Math content in CCOGs

You are viewing an old version of this page. View the current version.

Version 8

If you need to write math content into a CCOG, it needs to be done in the right way to ensure that it is ADA compliant. Currently, the easiest way to do this is described in the following examples. Once you are in the CourseLeaf Editor, "code" your math content using $$ and $$ as surrounding delimiters. Or use $ and $ as surrounding delimiters to produce centered "display mode" math content.

You need to understand that the CourseLeaf editor will do nothing with the LaTeX code. Administrators and the curriculum Committee will see that raw code instead of the final product. But once the CCOG is published on the PCC web site, since TSS is loading MathJax on all CCOG pages, MathJax will intercept the LaTeX code and do all the right things with it. If you need to convince Curriculum Committee members that it will render correctly, show them using this tester (which you should also use to make sure that your LaTeX code produces what you intended).

You can produce LaTeX math commands using an editor like this one.

Math Content You NeedCommentsHow to Type It into the CourseLeaf CCOG Editor
3 is the solution to x+1=4
You could just leave this as unformatted math. But it's prettier if you enter it using LaTeX.
$$3$$ is the solution to $$x+1=4$$
2 is a solution to x<5/2

The greater-than sign and the less-than sign are used in HTML element declarations.

To be safe, rather than typing them, use \lt and \gt.

$$2$$ is the solution to $$x\lt\frac{5}{2}$$
3x^2-15x-18 = 3(x^2-5x-6)            = 3(x + 1)(x - 6)

For multi-line expressions, use the aligned environment.

The & character marks where alignment happens.

The \\ marks where rows end.

Using \left( and \right), instead of just ( and ), will make the parentheses grow to the appropriate height.

Note the extra braces around the 3 and the \left(...\right) expression. These just make the spacing nicer.

\begin{aligned}3x^2-15x-18 &={3}{\left(x^2-5x-6\right)}\\ &=3(x+1)(x-6)\end{aligned}

If you need some special math content and do not know the LaTeX commands, try using an editor like this one, and test out what you find at this tester. If you need assistance, several SAC members use LaTeX and should be able to help.

• No labels