Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}
share|improve this question
    
See Column padding in tables. –  Werner Jun 19 '12 at 17:30

1 Answer 1

up vote 6 down vote accepted

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.

share|improve this answer
    
One of most useful posts I have seen recently. Thanks a lot for pointing out mathtools package! –  Predrag Punosevac Jun 19 '12 at 17:33
    
@PredragPunosevac Thank you! But I'm merely harvesting the other great answers. –  percusse Jun 19 '12 at 20:21

Your Answer

 
discard

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.