Is there a simple way to increase the gap size between the \overline and the top line, in the array? More precisely, here is an example.

An array command

\begin{array}{| c | c |}
\overline{a} & \overline{b}    \\

outputs this.

How do we make the gap size between the top line and the \overline{b} become even just slightly larger?

enter image description here

1 Answer 1


You can use (locally) \extrarowheight.



\begin{array}{| c | c |}
\bar{a} & \bar{b} \\


enter image description here

  1. Don't use $$ in LaTeX, see Why is \[ … \] preferable to $$?.

  2. \cline is for rules that aren't supposed to cover an entire row.

  3. \overline should be \bar, when a single character is to be overlined.

  • Thank you! This is very informative and educative! Perfect! +1, accepted
    – wonderich
    Mar 30 at 11:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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