cases

The cases extension implements the cases style package from LaTeX. It provides environments numcases and subnumcases for formulas with separately enumerated cases. See the cases CTAN page for more information and documentation.

An example of the numcases environment is:

\begin{numcases} {|x|=}
  x, & for $x \geq 0$\\
  -x, & for $x < 0$
\end{numcases}

which renders as:

This package is not autoloaded, so you must request it explicitly if you want to use it. To load the cases extension, add '[tex]/cases', '[tex]/empheq' to the load array of the loader block of your MathJax configuration, and add 'cases', 'empheq' to the packages array of the tex block. Note that the empheq package is required when you load cases.

window.MathJax = {
  loader: {load: ['[tex]/cases', '[tex]/empheq']},
  tex: {packages: {'[+]': ['cases', 'empheq']}}
};

You can configure the autoload extension to load cases via

window.MathJax = {
  tex: {
    autoload: {
      cases: [[], ['numcases', 'subnumcases']]
    }
  }
};

Alternatively, use \require{cases} in a TeX expression to load it dynamically from within the math on the page, if the require extension is loaded.


cases Commands

The cases extension implements the following macros: &

And the following environments: numcases, subnumcases