여기까지 내가 한 일이 있습니다. 가운데 공간을 좀 줄여줬으면 좋겠어요.
\documentclass[10pt]{article}
\usepackage{amsmath, amsthm, amssymb}
\begin{document}
\begin{align}
\Vert\mathbf{R}\Vert_F^2 & \le \Vert\mathbf{R}\Vert_F^2 +\lambda\Vert
\mathbf{B}^{'}\Vert_F^2-\sum_{k=1}^{m}\Vert \mathbf{B}^{'}\mathbf{A}\Vert_F^2 & & =
\Vert\mathbf{R}\Vert_F^2 +\lambda\Vert \mathbf{B}^{'}\Vert_F^2-\sum_{k=1}^{m}\Vert
\mathbf{b}_k\mathbf{a}_{[k]}\Vert_F^2 \nonumber \\
& = \Vert\mathbf{R}\Vert_F^2 +\lambda\sum_{k=1}^{m}\Vert \mathbf{b}_k\Vert_2^2 -
\sum_{k=1}^{m}\Vert \mathbf{W}_k\Vert_F^2 & &= \Vert\mathbf{R}\Vert_F^2 -
\sum_{k=1}^{m}\Vert \mathbf{b}_k\Vert_2^2\Vert\mathbf{a}_{[k]}\Vert_2^2 +\lambda m
\label{eq6}
\end{align}
\end{document}
답변1
\hspace*{-1em}
예를 들어 마지막 앞에 공백을 추가할 수 있습니다.=
MWE
\documentclass[10pt]{article}
\usepackage{amsmath, amsthm, amssymb}
\begin{document}
\begin{align}
\Vert\mathbf{R}\Vert_F^2 & \le \Vert\mathbf{R}\Vert_F^2 +\lambda\Vert
\mathbf{B}^{'}\Vert_F^2-\sum_{k=1}^{m}\Vert \mathbf{B}^{'}\mathbf{A}\Vert_F^2 & \hspace*{-1em} & =
\Vert\mathbf{R}\Vert_F^2 +\lambda\Vert \mathbf{B}^{'}\Vert_F^2-\sum_{k=1}^{m}\Vert
\mathbf{b}_k\mathbf{a}_{[k]}\Vert_F^2 \nonumber \\
& = \Vert\mathbf{R}\Vert_F^2 +\lambda\sum_{k=1}^{m}\Vert \mathbf{b}_k\Vert_2^2 -
\sum_{k=1}^{m}\Vert \mathbf{W}_k\Vert_F^2 & \hspace*{-1em} &= \Vert\mathbf{R}\Vert_F^2 -
\sum_{k=1}^{m}\Vert \mathbf{b}_k\Vert_2^2\Vert\mathbf{a}_{[k]}\Vert_2^2 +\lambda m
\label{eq6}
\end{align}
\end{document}
산출
어쨌든, 보시다시피 방정식은 여전히 너무 길어서 한 줄에 다 넣을 수 없습니다. 휴식 시간을 더 삽입하는 것이 좋습니다.
\documentclass[10pt]{article}
\usepackage{amsmath, amsthm, amssymb}
\begin{document}
\begin{equation}
\begin{aligned}
\Vert\mathbf{R}\Vert_F^2 & \le \Vert\mathbf{R}\Vert_F^2 +\lambda\Vert
\mathbf{B}^{'}\Vert_F^2-\sum_{k=1}^{m}\Vert \mathbf{B}^{'}\mathbf{A}\Vert_F^2 \\
& = \Vert\mathbf{R}\Vert_F^2 +\lambda\Vert \mathbf{B}^{'}\Vert_F^2-\sum_{k=1}^{m}\Vert
\mathbf{b}_k\mathbf{a}_{[k]}\Vert_F^2 \\
& = \Vert\mathbf{R}\Vert_F^2 +\lambda\sum_{k=1}^{m}\Vert \mathbf{b}_k\Vert_2^2 -
\sum_{k=1}^{m}\Vert \mathbf{W}_k\Vert_F^2 \\
& = \Vert\mathbf{R}\Vert_F^2 -\sum_{k=1}^{m}\Vert
\mathbf{b}_k\Vert_2^2\Vert\mathbf{a}_{[k]}\Vert_2^2 +\lambda m
\label{eq6}
\end{aligned}
\end{equation}
\end{document}
산출
을 사용하지 않으려면 대신 equation
및 를 사용하십시오 .aligned
align
\nonumber
답변2
내가 할 방법은 다음과 같습니다.
\documentclass{article}
\usepackage[margin = 4cm]{geometry}
\usepackage{mathtools}
\newcommand*\Vector[1]{\mathbf{#1}}
\DeclarePairedDelimiter{\norm}{\lVert}{\rVert}
\DeclarePairedDelimiter{\something}{\lbrack}{\rbrack}
\begin{document}
\noindent Either
\begin{alignat}{2}
\norm{\Vector{R}}_{F}^{2}
&\le \norm{\Vector{R}}_{F}^{2} + \lambda \norm{\Vector{B}'}_{F}^{2}
-\sum_{k = 1}^{m} \norm{\Vector{B}'{\mkern -2mu}\Vector{A}}_{F}^{2}
&&= \norm{\Vector{R}}_{F}^{2} + \lambda \norm{\Vector{B}'}_{F}^{2}
-\sum_{k = 1}^{m} \norm{\Vector{b}_{k}\Vector{a}_{\something{k}}}_{F}^{2} \nonumber \\
&= \norm{\Vector{R}}_{F}^{2} + \lambda \sum_{k = 1}^{m} \norm{\Vector{b}_{k}}_{2}^{2}
-\sum_{k = 1}^{m} \norm{\Vector{W}_{k}}_{F}^{2}
&&= \norm{\Vector{R}}_{F}^{2} - \sum_{k = 1}^{m} \norm{\Vector{b}_{k}}_{2}^{2}
\,\norm{\Vector{a}_{\something{k}}}_{2}^{2} + \lambda m
\end{alignat}
or
\begin{align}
\norm{\Vector{R}}_{F}^{2}
&\le \norm{\Vector{R}}_{F}^{2} + \lambda \norm{\Vector{B}'}_{F}^{2}
-\sum_{k = 1}^{m} \norm{\Vector{B}'{\mkern -2mu}\Vector{A}}_{F}^{2} \nonumber \\
&= \norm{\Vector{R}}_{F}^{2} + \lambda \norm{\Vector{B}'}_{F}^{2}
-\sum_{k = 1}^{m} \norm{\Vector{b}_{k}\Vector{a}_{\something{k}}}_{F}^{2} \nonumber \\
&= \norm{\Vector{R}}_{F}^{2} + \lambda \sum_{k = 1}^{m} \norm{\Vector{b}_{k}}_{2}^{2}
-\sum_{k = 1}^{m} \norm{\Vector{W}_{k}}_{F}^{2} \nonumber \\
&= \norm{\Vector{R}}_{F}^{2} - \sum_{k = 1}^{m} \norm{\Vector{b}_{k}}_{2}^{2}
\,\norm{\Vector{a}_{\something{k}}}_{2}^{2} + \lambda m
\end{align}
\end{document}
\DeclarePairedDelimiter
다음에서 의 사용을 확인하세요.mathtools
패키지.