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

Compare with Current View Page History

« Previous Version 2 Next »

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.

To test that your LaTeX code produces what you want, use this resource.

NeedCommentHow
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 instead.

\(2\) is the solution to \(x\lt\frac{5}{2}\)
3x^2 - 15x - 18 = 3(x^2 - 5 x -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 Googling a little, 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