TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to adjust the height of \vline?

share|improve this question
up vote 8 down vote accepted

If the height and depth of a \vrule is not specified, then they are taken from the surrounding box. But it is possible to specify them explicitly:


  \vline height 1ex

  \vline height 5pt depth 3pt width 1pt


share|improve this answer
hmm I wonder if the lack of a \relax in vline allowing it to parse a following height was intentional, it's very un-latex-like: +1 anyway:-) – David Carlisle Nov 29 '12 at 17:36

\vline is designed to make a rule exactly as heigh as the surrounding box so it has no^* control over the height. The LaTeX \rule command has explicit arguments to give the height and width of the rule, so you may be looking for that.

See @Heiko's answer for a partial contradiction to this statement.

share|improve this answer
the depth of tex's \vrules was plumbed a long time ago. see the tugboat warning, on the second page toward the end. – barbara beeton Nov 29 '12 at 18:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.