How do I get a tight \fbox around \vdots? There is an excess vertical space as discussed in
- Vertical space around \vdots in xymatrix
- Wrong (too much) vertical space above \vdots in small matrix
The code below produces:
Code:
\documentclass{article}
%% Defined in https://tex.stackexchange.com/a/412418/4301
\newcommand{\myvdots}{\raisebox{.006\baselineskip}{\ensuremath{\vdots}}}
\begin{document}
p
\fboxsep=0pt\fbox{\vdots}
\fboxsep=0pt\fbox{\myvdots}
y
\end{document}


\vdotsexpands to a\vbox, so the\ensuremathis rather useless. – campa Feb 17 '20 at 09:28\vdots: Mathematical optimization problem doesn't look good – barbara beeton Feb 17 '20 at 19:23