# [Tex/LaTex] LaTeX \bar in table

math-modespacingtables

I'm very new to Latex. So i want to put a \bar W in a table but the bar is covered by the horizontal line of table.So it becomes invisible. I tried adding \noalign{\smallskip} after \hline but it cuts the vertical line of the table. Any suggestion?

Here is the code:

\begin{center}
\begin{tabular}{ | l |  l |}
\hline
$\bar W$ & $A$  \\ \hline  \noalign{\smallskip}
$\bar W$ & $A$  \\ \hline
... & ... \\ \hline
\end{tabular}
\end{center}


First bar is invisible and second one cuts the table.

Package array provides the length \extrarowheight that is added to each table row:

\documentclass{article}
\usepackage{array}
\setlength{\extrarowheight}{.5ex}
\begin{document}
\begin{center}
\begin{tabular}{ | l |  l |}
\hline
$\bar W$ & $A$  \\ \hline
$\bar W$ & $A$  \\ \hline
... & ... \\ \hline
\end{tabular}
\end{center}
\end{document}


The effect can also be limited to the single table by setting \extrarowheight inside the center environment.