数式の番号、条件文

2011-04-29 - kamekamekame877の日記の続き。
Discrete Calculus の本の数式をpLaTeX2eで忠実に書きたいならば、amsmath パッケージを読み込むことをお勧めする。参考:http://www.h4.dion.ne.jp/~latexcat/intro/i31-r2.html

開き中括弧で囲まれた2行以上で書かれる条件文などを書きたい場合は、数式環境の中で cases 環境を使う。

\[
\delta_{ij}=
\begin{cases}
1 & \text{if } i=j,\\
0 & \text{otherwise}
\end{cases}
\]

\delta_{ij}=\begin{cases}1 & \text{if } i=j,\\0 & \text{otherwise}\end{cases}