0

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 |}
\cline{1-2}
\overline{a} & \overline{b}    \\
\hline
\end{array}.
$$

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

2

You can use (locally) \extrarowheight.

\documentclass{article}
\usepackage{amsmath}
\usepackage{array}

\begin{document}

\[
\setlength{\extrarowheight}{2pt}
\begin{array}{| c | c |}
\hline
\bar{a} & \bar{b} \\
\hline
\end{array}
\]

\end{document}

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.

1
  • 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.