How do I get a tight \fbox around \vdots? There is an excess vertical space as discussed in

The code below produces:

enter image description here



%% Defined in https://tex.stackexchange.com/a/412418/4301


1 Answer 1


The definition of \vdots in fontmath.ltx reads

  \vdots{\vbox{\baselineskip4\p@ \lineskiplimit\z@

(This is inherited from plain.tex with the addition of robustness.) I don't quite know the idea behind the \kern6\p@ bit, but removing it removes the excess box height


  \myvdots{\vbox{\baselineskip4\p@ \lineskiplimit\z@


p \fbox{\vdots} \fbox{\myvdots} y


enter image description here

  • 2
    Since \baselineskip is set to 4pt, the total height will be 14pt plus the height of the period. It is an example of an ad hoc macro by Knuth that was blindly copied to LaTeX.
    – egreg
    Feb 17, 2020 at 9:40
  • @egrer A-ha. I was just adding that the macro is in fact inherited by plain :-)
    – campa
    Feb 17, 2020 at 9:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .