公式排版
一:大括号上下排元素对齐
效果如下:
\begin{
equation}
w_{
ij}=
\begin{
cases}
1& \mathbf{
x}_i\in kNN(\mathbf{
x}_j)\\
0& \mathrm{
otherwise}
\end{
cases}.\label{
eq2}
\end{
equation}
使用&符号控制对齐
二:优化问题编写
效果如下:
\begin{
equation}
\begin{
aligned}
\min_{
w} \quad & \sum_{
i=1}^n\left\|\mathbf{
x}_i-\sum_{