5

The following is my expression:

\begin{equation}
\left[
  \begin{tabular}{c|c}
       $y$ & $a_{bc}$ \\
       \hline
       $a_{ab}^T$ & $y$
  \end{tabular}
\right].
\end{equation}

Note that the part a_{ab}^T is very close to the hline. I would like to have a bit larger spacing, such that 'T' from the above example is clearly separated from the hline. I've tried using [pt], but it did not work. I'm using

\documentclass[a4paper,12pt]{book}
David Carlisle
  • 757,742
boy
  • 1,525

1 Answers1

6

Since you are in the math mode anyway, you can use the array environment to avoid the $ pairs.

\documentclass[a4paper,12pt]{book}

\begin{document}
\begin{equation}
\left[
{
\renewcommand*{\arraystretch}{1.5}
  \begin{array}{c|c}
       y & a_{bc} \\
       \hline
       a_{ab}^T & y
  \end{array}
}
\right].
\end{equation}

\end{document}

enter image description here

I would also recommend you to look at the mathtools package for more goodies regarding the matrix environments.

percusse
  • 157,807