てふ amsmath

  • パッケージを読み込んで
\usepackage{amsmath}
  • 場合分け \begin{cases} ... \text{...} \\ ... \text{...} \end{cases}
$f(x)= 
\begin{cases} 1 & \text{if x $\in$ Q},\\ 
0 &\text{otherwise.} 
\end{cases} 
$ 

f(x)= \begin{cases} 1 & \text{if x $\in$ Q},\\ 0 &\text{otherwise.} \end{cases}

  • サブアレイ \begin{subarray}{} \end{subarray}
$\displaystyle\sum_{\begin{subarray}{}
0 \le i\le m\\ 0<j<n 
\end{subarray}} 
P(i,j)$
  • 長いドット \hdotsfor[]{}
$\begin{pmatrix}
\frac{\partial f_1}{\partial x_1} & \frac{\partial f_1}{\partial x_2} & \dots & \frac{\partial f_1}{\partial x_n}\\ 
\frac{\partial f_2}{\partial x_1} & \frac{\partial f_2}{\partial x_2}& \dots & \frac{\partial f_2}{\partial x_n}\\ 
\hdotsfor[2]{4}\\ 
\frac{\partial f_m}{\partial x_1} & \frac{\partial f_m}{\partial x_2} & \dots & \frac{\partial f_m}{\partial x_n}
\end{pmatrix}$