The following code is used to split a long in-equation.
\begin{align}
(\sum^n_{i,j=1}\frac{(S_{t})_{ij}\norm{W^T_{t+1}x_i-W^T_{t+1}x_j}_2^2}{2\norm{W^T_{t}x_i-W^T_{t}x_j}_2} - \nonumber \\
\lambda_ttr(W^T_{t+1}XX^TW_{t+1})) \leq \nonumber \\
(\sum^n_{i,j=1}\frac{(S_{t})_{ij}\norm{W^T_tx_i-W^T_tx_j}_2^2}{2\norm{W^T_tx_i-W^T_tx_j}_2}- \nonumber \\
\lambda_ttr(W^T_tXX^TW_t))
\end{align}
The screenshot of the result is attached:
I'm not satisfied with the above result. Is it possible to make the
equation center aligned:
Best Answer
Presumably you need this number of lines because of a two column document. I would not want to center the lines because of the different operators
-
and\leq
. Instead I would prefer a staggered output where each newline on the left of the equation starts further to the left than those after the\leq
and on each side the first line is further left than the subsequent ones. One way to achieve this is:Other changes introduced
\norm
via\DeclarePairedDelimiter
\tr
equation
when it is one single equation, subsequent division withsplit
Another possibility would be to use
multiline
and perhapsmulitlined
for the two sides of the equation.