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}
\vdots
expands to a\vbox
, so the\ensuremath
is rather useless.\vdots
: Mathematical optimization problem doesn't look good