[Tex/LaTex] Align vdots in equation

alignmathtools

I want my vdots to fall under the expressions and not at the end as its now.

enter image description here

I found solutions online for equations by using &=, but this is not applicable for me because I don't use the equal sign. My code is

\begin{equation*}
\begin{aligned}
(U_1^{(1)},U_2^{(1)}, \dots U_k^{(1)}) \\
(U_1^{(2)},U_2^{(2)}, \dots U_k^{(2)}) \\
\vdotswithin{=} \\
(U_1^{(N)},U_2^{(N)}, \dots U_k^{(N)})
\end{aligned}
\end{equation*}

How can I change this??

Best Answer

The ampersand symbol (&) is not limited to being used in conjunction with the equals sign.

Try this:

     \begin{align*}
    (U_1^{(1)},U_2^{(1)}, &\dots U_k^{(1)}) \\
    (U_1^{(2)},U_2^{(2)}, &\dots U_k^{(2)}) \\
    & \vdots \\
    (U_1^{(N)},U_2^{(N)}, &\dots U_k^{(N)})
    \end{align*}

which produces this:

enter image description here

You can place the & symbol wherever you want the alignment to occur.

Related Question