I am trying to create a boxed vertical vector of math symbols in TikZ. My goal is to have all the terms centered in the box (vertically and horizontally) and have the box auto-sized to fit around everything with the desired sep. I was able to achieve this using a minipage combined with a gather* environment, but it seems hacky since I have to manually remove some extra space at the top and set the minipage width. I'm wondering if there is a "proper" or more elegant way of achieving this result.
\documentclass[tikz,dvipsnames]{standalone}
\standaloneconfig{border=1mm}
\usepackage{amsmath}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node[draw=black,fill=white,rounded corners,ultra thick,inner sep=2.5mm] (u) {
\begin{minipage}{8mm}
\centering
\vspace{-5mm}
\begin{gather}
u^0 \
u^1 \
\vdots \
u^{N-1}
\end{gather}
\end{minipage}
\vspace{-5mm}};
\end{tikzpicture}
\end{document}



\vdotsis, sadly, built in, and not originating withamsmath. Take a look at this question: https://tex.stackexchange.com/q/528774 – barbara beeton Jul 26 '23 at 19:24\vdots, then I will accept that, but I'm manually editing the space aboveu^0and the width of the box. I'm not sure if this can be done without aminipage, but it would be simpler if that wasn't required. – jared Jul 26 '23 at 19:29\vdotsspacing -- that's inherited from plain TeX. @David has taken care of the centering and overall dimensions; both he and I have worked on theamsmathuser documentation over the years, so I'm glad you find it understandable. – barbara beeton Jul 26 '23 at 23:19