User:SilverStar/Suggestions/TeX "cases"

Use the cases environment when appropriate
In TeX markup, the cases environment should be used to indicate a piecewise function, instead of using a large left curly brace with the matrix environment.

For example, the following TeX markup (inside math tags in Wikipedia) for a positive-ness indicator function could be: f(x)=\left\{\begin{matrix}1 & \text{for } x>0 \\ 0 & \text{otherwise}\end{matrix}\right. using the matrix environment, and rendered as:
 * $$f(x)=\left\{\begin{matrix}1 & \text{for } x>0 \\ 0 & \text{otherwise}\end{matrix}\right.$$

Or, using the cases environment, the markup could be: f(x)=\begin{cases}1 & \text{for } x>0 \\ 0 & \text{otherwise}\end{cases} and be rendered similarily (but not identically):
 * $$f(x)=\begin{cases}1 & \text{for } x>0 \\ 0 & \text{otherwise}\end{cases}$$